View Single Post
Old 04-09-2025, 06:03 PM   #1483
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,476
Karma: 8025702
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by ownedbycats View Post
Thanks. Will set on local timezone, or UTC?
It is local time (actually, time naive). Example:
Code:
program:
	d = "20250421T13:42:01";
	'The date and time are ' & format_date(d, "iso")
produces the following, which is British Summer Time (+1) not UTC.
Code:
The date and time are 2025-04-21T13:42:01+01:00
This date specifies UTC.
Code:
program:
	d = "20250421T13:42:01Z";
	'The date and time are ' & format_date(d, "iso")
and returns a time one hour later (UTC).
Code:
The date and time are 2025-04-21T14:42:01+01:00
chaley is offline   Reply With Quote