Internet Date Service test

Richard Gaskin ambassador at fourthworld.com
Fri Sep 14 20:36:00 EDT 2018


Peter Bogdanoff wrote:

 > And… if anyone has a method that doesn’t rely on the user’s local
 > date/time I’d like to hear that…

Using "the seconds" returns a value that accounts for local GMT offset. 
with the value returned being for GMT.

So if you get the seconds and then display them on a machine set to a 
different time zone, the time zone will be taken into account when using 
the convert command to display them in any human-readable format.

FWIW "the internet date" is similarly useful for converting to other 
formats in ways that take local time zone into account.

AFAIK those are the only two built-in date formats that account for GMT 
offset, but I've used both for network services where users trade data 
across many time zones and they work quite well.

-- 
  Richard Gaskin
  Fourth World Systems
  Software Design and Development for the Desktop, Mobile, and the Web
  ____________________________________________________________________
  Ambassador at FourthWorld.com                http://www.FourthWorld.com





More information about the use-livecode mailing list