Implement gmt hook on unix
parent
e8d528ad93
commit
eb3775c70f
|
@ -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 ;
|
||||
|
|
Loading…
Reference in New Issue