On 10/29/20 4:33 PM, Graham Samuel via use-livecode wrote:
The only souci with this format is that it gives the month in alpha, presumably 
according to the nationality of the OS. But it’s easy to get the numeric month 
in other ways. Still, it is just a little bit fiddly to create a full UTC date 
of the format:

YYYY-MM-DDThh:mm:ssTZD

Here's something I use:

  put the seconds into tTime
  convert tTime to dateitems
  subtract (char 1 to -3 of last word of the internet date) from item 4 of tTime
  convert tTime to dateitems
  set the numberformat to "00"
put item 1 of tTime &"-"& (item 2 of tTime)+0 &"-"& (item 3 of tTime)+0 & "T" & (item 4 of tTime)+0 &":"& \
        (item 5 of tTime)+0 &":"& (item 6 of tTime)+0 & "Z" into tTimestamp

--
Jacqueline Landman Gay         |     jac...@hyperactivesw.com
HyperActive Software           |     http://www.hyperactivesw.com


_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to