]> gitweb.factorcode.org Git - factor.git/commitdiff
calendar: use clone >gmt in a few places.
authorJohn Benediktsson <mrjbq7@gmail.com>
Wed, 16 Dec 2020 03:58:58 +0000 (19:58 -0800)
committerJohn Benediktsson <mrjbq7@gmail.com>
Wed, 16 Dec 2020 03:58:58 +0000 (19:58 -0800)
basis/editors/vim/generate-syntax/generate-syntax.factor
basis/windows/time/time.factor
extra/time/windows/windows.factor

index bbbc6c3a3184a27ba008100e5e7f354f697b08ed..8d0b58bed9ebc7fadd08887f33234160c420ee7f 100644 (file)
@@ -66,7 +66,7 @@ CONSTANT: highlighted-vocabs {
 " Language: Factor
 " Maintainer: Alex Chapman <chapman.alex@gmail.com>
 " Last Change: ]=] write
-    now >gmt { YYYY " " MONTH " " DD } formatted [=[
+    now-gmt { YYYY " " MONTH " " DD } formatted [=[
 " Minimum Version: 600
 " To regenerate: USE: editors.vim.generate-syntax generate-vim-syntax
 
index dea0e7de4001e7d32b27afc3f2fe2cc3988cd1a1..0b6250a60603e7c3bb01ef8f77d53a90d6fd956f 100644 (file)
@@ -22,14 +22,14 @@ IN: windows.time
 
 : timestamp>windows-time ( timestamp -- n )
     ! 64bit number representing # of nanoseconds since Jan 1, 1601 (UTC)
-    >gmt windows-1601 (time-) 10,000,000 * >integer ;
+    clone >gmt windows-1601 (time-) 10,000,000 * >integer ;
 
 : windows-time>FILETIME ( n -- FILETIME )
     [ FILETIME <struct> ] dip
     [ 32 bits >>dwLowDateTime ] [ -32 shift >>dwHighDateTime ] bi ;
 
 : timestamp>FILETIME ( timestamp -- FILETIME/f )
-    dup [ >gmt timestamp>windows-time windows-time>FILETIME ] when ;
+    dup [ clone >gmt timestamp>windows-time windows-time>FILETIME ] when ;
 
 : FILETIME>timestamp ( FILETIME -- timestamp/f )
     FILETIME>windows-time windows-time>timestamp ;
index efebecbd97874b9ad396ce67df15a5db64070562..0b063827726ec456d97bdbd1ef9c1afaa8c23aca 100644 (file)
@@ -5,5 +5,5 @@ windows.kernel32 kernel classes.struct calendar ;
 IN: time.windows
 
 M: windows set-system-time
-    >gmt
+    clone >gmt
     timestamp>SYSTEMTIME SetSystemTime win32-error=0/f ;