[plt-scheme] gmt?

From: Doug Orleans (dougorleans at gmail.com)
Date: Thu Aug 31 15:38:08 EDT 2006

Matthew Flatt writes:
 > At 31 Aug 2006 00:07:47 -0000, Paul Graham wrote:
 > > Is there any way to get gm time from plt?  Any equiv of cl
 > > get-universal-time?
 > 
 > Although the docs claim that `current-seconds' is platform-specific,
 > it's actually always seconds since the beginning of 1970 UTC. So it's
 > like `get-universal-time', but offset by 70 years.
 > 
 > I'll change the docs, so you can rely on the current behavior.
 > 
 > Matthew

See also SRFI 19: Time Data Types and Procedures.

http://srfi.schemers.org/srfi-19/srfi-19.html

--Doug


Posted on the users mailing list.