Created
February 10, 2010 11:52
-
-
Save valvallow/300238 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(define date->gmt | |
(lambda (date) | |
(let ((g (lambda (ls dl) | |
(string-join | |
(map (lambda (f) | |
(format #f "~2,,,'0,@a" (f date))) ls) dl)))) | |
(let ((yyyyMMdd (g (list date-year date-month date-day) "-")) | |
(hhmmdd (format #f "T~aZ" | |
(g (list date-hour date-minute date-second) ":")))) | |
(string-append yyyyMMdd hhmmdd))))) | |
(date->gmt (current-date)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment