03-13-2023, 06:00 PM
LOL at "SHE-IT BACKWARDS" and needing to look up a function that determines if an integer is odd or even...
There is a whole toolbox in this source code. But what are the chances that there could be at least one thing that isn't around in the code, such as "epoch to string"?
For many jobs to get a formatted date, the "strftime()" function from C library could be used. But there should be an intelligent format to cover the cryptic codes required by the C function because some people don't like typing in "%a" and "%M" and having to remember something alien to BASIC.
I don't know, something like:
which returns:
Search for three-letter codes to convert into internal percent-codes for "strftime()". Any text not recognized is left alone. Or maybe preface the search tag with "squiggle" or some other character unlikely to be used in a normal communication.
These are just ideas. I'm proposing stuff without coding anything, see if somebody else does it.
There is a whole toolbox in this source code. But what are the chances that there could be at least one thing that isn't around in the code, such as "epoch to string"?
For many jobs to get a formatted date, the "strftime()" function from C library could be used. But there should be an intelligent format to cover the cryptic codes required by the C function because some people don't like typing in "%a" and "%M" and having to remember something alien to BASIC.
I don't know, something like:
Code: (Select All)
dow, mon day, yea at h24:min zon
which returns:
Code: (Select All)
Monday, March 13, 2023 at 14:05 ESTDST
Search for three-letter codes to convert into internal percent-codes for "strftime()". Any text not recognized is left alone. Or maybe preface the search tag with "squiggle" or some other character unlikely to be used in a normal communication.
These are just ideas. I'm proposing stuff without coding anything, see if somebody else does it.