X-Git-Url: https://gitweb.factorcode.org/gitweb.cgi?p=factor.git;a=blobdiff_plain;f=basis%2Fwindows%2Ftime%2Ftime.factor;h=dea0e7de4001e7d32b27afc3f2fe2cc3988cd1a1;hp=0b6250a60603e7c3bb01ef8f77d53a90d6fd956f;hb=fdf54cf0b11978ec300be74bfdfa4c75a71252ad;hpb=f6c83c6abf3ad4845466b0da857a71e802f67fd9 diff --git a/basis/windows/time/time.factor b/basis/windows/time/time.factor index 0b6250a606..dea0e7de40 100644 --- a/basis/windows/time/time.factor +++ b/basis/windows/time/time.factor @@ -22,14 +22,14 @@ IN: windows.time : timestamp>windows-time ( timestamp -- n ) ! 64bit number representing # of nanoseconds since Jan 1, 1601 (UTC) - clone >gmt windows-1601 (time-) 10,000,000 * >integer ; + >gmt windows-1601 (time-) 10,000,000 * >integer ; : windows-time>FILETIME ( n -- FILETIME ) [ FILETIME ] dip [ 32 bits >>dwLowDateTime ] [ -32 shift >>dwHighDateTime ] bi ; : timestamp>FILETIME ( timestamp -- FILETIME/f ) - dup [ clone >gmt timestamp>windows-time windows-time>FILETIME ] when ; + dup [ >gmt timestamp>windows-time windows-time>FILETIME ] when ; : FILETIME>timestamp ( FILETIME -- timestamp/f ) FILETIME>windows-time windows-time>timestamp ;