Quantcast
Channel: LiveCode Forums
Viewing all articles
Browse latest Browse all 713

Getting Started with LiveCode - Complete Beginners • Working with ISO 8601 Date format

$
0
0
Hi,

Is there an easy way yo work with the ISO 8601 date format.

The date is written as

2024-10-27T01:30:00Z or
2024-10-27T01:30:00+01:00

Where the date and time are separated by a letter T.

I am currently parsing the date into a comma separated string as used by the dateItems command, but am struggling with the UTC part, it is either Z for zulu (do nothing) or + or - a value for daylight savings time. I convert my string into the internet date format but it is adding an hour onto it before I even try to parse the UTC part at the end.

I would just like to convert it into seconds so I can work with it, and am getting the right time.

Statistics: Posted by andyh1234 — Mon Oct 28, 2024 11:06 pm



Viewing all articles
Browse latest Browse all 713

Trending Articles