X-Git-Url: https://gitweb.factorcode.org/gitweb.cgi?p=factor.git;a=blobdiff_plain;f=basis%2Fwindows%2Ftime%2Ftime.factor;fp=basis%2Fwindows%2Ftime%2Ftime.factor;h=16663593c078f284d1137286640348d60611ab6d;hp=dea0e7de4001e7d32b27afc3f2fe2cc3988cd1a1;hb=7ec2ba15ef18bc0a2ec05e075758eb5f315c8a13;hpb=48191c249b8441268c42f1e453c8945bc81db3df diff --git a/basis/windows/time/time.factor b/basis/windows/time/time.factor index dea0e7de40..16663593c0 100644 --- a/basis/windows/time/time.factor +++ b/basis/windows/time/time.factor @@ -17,7 +17,7 @@ IN: windows.time [ windows-1601 ] dip 10,000,000 /i +second ; : windows-time ( -- n ) - FILETIME [ 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 ] dip + [ FILETIME new ] dip [ 32 bits >>dwLowDateTime ] [ -32 shift >>dwHighDateTime ] bi ; : timestamp>FILETIME ( timestamp -- FILETIME/f )