Internet date
Sannyasin Brahmanathaswami
brahma at hindu.org
Tue Nov 1 10:56:00 EDT 2016
in a related note…
> Is the internet date in a consistent format in every country? That
> is, except for the spelling of the day and month names, is the format
> always the same?
I believe the whole rest of the IT world solved this a long time ago.. and I've had an enhancement request in for literally a decade…. to have the engine date function auto output the standard date format in the form of
YYYY-MM-DD HH:MM:SEC TZ # where TZ is picked form the local system
I'm off line at the moment so I don't have the RFC number for that standard.
Yes, I know Richard will respond "The beauty of LC is you can get this out yourself" (hehe)
but isn't it time that we have this output as a native form? of course that still requires you to convert this to date items then gets you an array you can depend on for the day and month names… you would have to look those up. And ideally "the monthnames" and "the weekdaynames" would be localized automatically by the engine if there was a "my language is" option in the LC preferences.
select: "French:
output:
Lundi
Mardi
etc.
BR
On 11/1/16, 4:24 AM, "use-livecode on behalf of Richard Gaskin" <use-livecode-bounces at lists.runrev.com on behalf of ambassador at fourthworld.com> wrote:
With the Internet date, though, the Dictionary notes that it follows RFC
2822, which IIFC only supports US English date element names, so I think
it should be unaffected by the useSystemDate.
If anyone using a non-US English system can double-check the format
after setting the useSystemDate to true it would be helpful to confirm that.
More information about the use-livecode
mailing list