Created
January 23, 2011 20:50
-
-
Save manveru/792430 to your computer and use it in GitHub Desktop.
Display Internet Time in Chicken Scheme.
This file contains hidden or 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
(use posix format) | |
(setenv "TZ" "UTC-1") | |
(let ((tl (seconds->local-time (current-seconds)))) | |
(format #t "@~,2F~%" (+ (* (vector-ref tl 2) (/ 1000 24)) | |
(* (vector-ref tl 1) (/ 1000 24 60)) | |
(* (vector-ref tl 0) (/ 1000 24 60 60))))) |
DerGuteMoritz
commented
Jan 23, 2011
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment