calendar: since-1970 shouldn't convert to >local-time; this causes words like "gmt" to return time in local time
parent
80aa0d54c2
commit
03ae0f645c
|
@ -532,7 +532,7 @@ M: integer end-of-year 12 31 <date> ;
|
|||
dup midnight time- ;
|
||||
|
||||
: since-1970 ( duration -- timestamp )
|
||||
unix-1970 time+ >local-time ;
|
||||
unix-1970 time+ ;
|
||||
|
||||
: timestamp>unix-time ( timestamp -- seconds )
|
||||
unix-1970 time- second>> ;
|
||||
|
|
Loading…
Reference in New Issue