]> gitweb.factorcode.org Git - factor.git/commitdiff
Fix unix.time to actually load
authorSlava Pestov <slava@factorcode.org>
Tue, 22 Jun 2010 19:13:07 +0000 (15:13 -0400)
committerSlava Pestov <slava@factorcode.org>
Tue, 22 Jun 2010 19:13:07 +0000 (15:13 -0400)
basis/unix/time/time.factor
basis/unix/types/types.factor

index bd3a02fcabe04a46d692f8767bf43a2a36da96f3..ad5a2d6d56380e141312957cd4d29759f993a8c8 100644 (file)
@@ -1,6 +1,6 @@
 ! Copyright (C) 2008 Doug Coleman.
 ! See http://factorcode.org/license.txt for BSD license.
-USING: accessors alien.c-types alien.syntax calendar
+USING: accessors alien.c-types alien.syntax
 classes.struct kernel math unix.types ;
 IN: unix.time
 
@@ -28,11 +28,6 @@ STRUCT: timezone
     { tz_minuteswest int }
     { tz_dsttime int } ;
 
-: timestamp>timezone ( timestamp -- timezone )
-    gmt-offset>> duration>minutes
-    1
-    \ timezone <struct-boa> ; inline
-
 STRUCT: tm
     { sec int }
     { min int }
index ec638e6f31933885128257c56c6ecdc9cbd0a9d4..c25634624f2605ca094280bd8e914ee2e89e10e0 100644 (file)
@@ -50,6 +50,4 @@ os {
     { freebsd [ "unix.types.freebsd" require ] }
     { openbsd [ "unix.types.openbsd" require ] }
     { netbsd  [ "unix.types.netbsd"  require ] }
-    { winnt [ ] }
 } case
-