calendar: clone timestamps in >gmt and >local-time.

db4
John Benediktsson 2014-04-21 08:17:43 -07:00
parent d1b1eabf1e
commit 00ea6900db
1 changed files with 2 additions and 2 deletions

View File

@ -326,10 +326,10 @@ GENERIC: time- ( time1 time2 -- time3 )
] if ;
: >local-time ( timestamp -- timestamp' )
gmt-offset-duration convert-timezone ;
clone gmt-offset-duration convert-timezone ;
: >gmt ( timestamp -- timestamp' )
dup gmt-offset>> dup instant =
clone dup gmt-offset>> dup instant =
[ drop ] [
[ neg +second 0 ] change-second
[ neg +minute 0 ] change-minute