Implement gmt hook on unix

db4
Doug Coleman 2010-06-17 00:04:53 -05:00
parent e8d528ad93
commit eb3775c70f
1 changed files with 4 additions and 0 deletions

View File

@ -28,3 +28,7 @@ IN: calendar.unix
M: unix gmt-offset ( -- hours minutes seconds )
get-time gmtoff>> 3600 /mod 60 /mod ;
M: unix gmt
timeval <struct> f [ gettimeofday io-error ] 2keep drop
timeval>unix-time ;