[plt-scheme] how to get GMT time?

From: paulgraham (cryptograham at gmail.com)
Date: Wed May 20 01:13:45 EDT 2009

I'd appreciate it if someone can tell me if this is the optimal way to
get a GMT time from Mzscheme:

(let ((offset (date-time-zone-offset (seconds->date (current-
  (seconds->date (- (current-seconds) offset)))

It seems ugly to have to call date twice.  Also, can I count on the
time-zone-offset to always get me back to GMT, or do I also have
to consider whether it's daylight savings time?

Thanks, --pg

Posted on the users mailing list.