calendar: clone timestamps in >gmt and >local-time.
parent
d1b1eabf1e
commit
00ea6900db
|
@ -326,10 +326,10 @@ GENERIC: time- ( time1 time2 -- time3 )
|
||||||
] if ;
|
] if ;
|
||||||
|
|
||||||
: >local-time ( timestamp -- timestamp' )
|
: >local-time ( timestamp -- timestamp' )
|
||||||
gmt-offset-duration convert-timezone ;
|
clone gmt-offset-duration convert-timezone ;
|
||||||
|
|
||||||
: >gmt ( timestamp -- timestamp' )
|
: >gmt ( timestamp -- timestamp' )
|
||||||
dup gmt-offset>> dup instant =
|
clone dup gmt-offset>> dup instant =
|
||||||
[ drop ] [
|
[ drop ] [
|
||||||
[ neg +second 0 ] change-second
|
[ neg +second 0 ] change-second
|
||||||
[ neg +minute 0 ] change-minute
|
[ neg +minute 0 ] change-minute
|
||||||
|
|
Loading…
Reference in New Issue