]> gitweb.factorcode.org Git - factor.git/blobdiff - basis/windows/time/time.factor
Update actions, because Node.js 16 actions are deprecated, to Node.js 20
[factor.git] / basis / windows / time / time.factor
index dea0e7de4001e7d32b27afc3f2fe2cc3988cd1a1..7f1bd2d5bfecad1f2a51182a33cdaf155ee45c54 100644 (file)
@@ -1,5 +1,5 @@
 ! Copyright (C) 2007 Doug Coleman.
-! See http://factorcode.org/license.txt for BSD license.
+! See https://factorcode.org/license.txt for BSD license.
 USING: accessors alien alien.c-types calendar calendar.private
 classes.struct kernel math math.bitwise namespaces
 windows.errors windows.handles windows.kernel32 windows.types ;
@@ -17,7 +17,7 @@ IN: windows.time
     [ windows-1601 ] dip 10,000,000 /i +second ;
 
 : windows-time ( -- n )
-    FILETIME <struct> [ GetSystemTimeAsFileTime ] keep
+    FILETIME new [ GetSystemTimeAsFileTime ] keep
     FILETIME>windows-time ;
 
 : timestamp>windows-time ( timestamp -- n )
@@ -25,7 +25,7 @@ IN: windows.time
     >gmt windows-1601 (time-) 10,000,000 * >integer ;
 
 : windows-time>FILETIME ( n -- FILETIME )
-    [ FILETIME <struct> ] dip
+    [ FILETIME new ] dip
     [ 32 bits >>dwLowDateTime ] [ -32 shift >>dwHighDateTime ] bi ;
 
 : timestamp>FILETIME ( timestamp -- FILETIME/f )