]> gitweb.factorcode.org Git - factor.git/blobdiff - basis/windows/time/time.factor
Merge branch 'master' of git://factorcode.org/git/factor
[factor.git] / basis / windows / time / time.factor
index 1fe3ad065cb881eefd316f1e16f8d0d5443ba889..904c85200e583509959a70edf683461f5815ed8f 100644 (file)
@@ -1,15 +1,14 @@
 ! Copyright (C) 2007 Doug Coleman.
 ! See http://factorcode.org/license.txt for BSD license.
 USING: alien alien.c-types kernel math windows.errors
-windows.kernel32 namespaces calendar math.bitwise accessors
-classes.struct ;
+windows.kernel32 windows.types namespaces calendar math.bitwise
+accessors classes.struct ;
 IN: windows.time
 
 : >64bit ( lo hi -- n )
     32 shift bitor ; inline
 
-: windows-1601 ( -- timestamp )
-    1601 1 1 0 0 0 instant <timestamp> ;
+: windows-1601 ( -- timestamp ) 1601 <year-gmt> ;
 
 : FILETIME>windows-time ( FILETIME -- n )
     [ dwLowDateTime>> ] [ dwHighDateTime>> ] bi >64bit ;