]> gitweb.factorcode.org Git - factor.git/commitdiff
fix docs
authorDoug Coleman <doug.coleman@gmail.com>
Sun, 31 Aug 2008 20:58:12 +0000 (15:58 -0500)
committerDoug Coleman <doug.coleman@gmail.com>
Sun, 31 Aug 2008 20:58:12 +0000 (15:58 -0500)
basis/calendar/calendar-docs.factor

index 4adf635d9983744f506e0569734df04726db7221..5ff3ef6cc123c442ba5b722cd7bcc1745561feb9 100644 (file)
@@ -1,11 +1,11 @@
 ! Copyright (C) 2008 Doug Coleman.
 ! See http://factorcode.org/license.txt for BSD license.
 USING: arrays kernel math strings help.markup help.syntax
-calendar.backend ;
+calendar.backend math.order ;
 IN: calendar
 
 HELP: duration
-{ $description "A duration is a period of time years, months, days, hours, minutes, and seconds.  All duration slots can store " { $link real } " numbers." } ;
+{ $description "A duration is a period of time years, months, days, hours, minutes, and seconds.  All duration slots can store " { $link real } " numbers. Compare two timestamps with the " { $link <=> } " word." } ;
 
 HELP: timestamp
 { $description "A timestamp is a date and a time with a timezone offset.  Timestamp slots must store integers except for " { $snippet "seconds" } ", which stores reals, and " { $snippet "gmt-offset" } ", which stores a " { $link duration } ". Compare two timestamps with the " { $link <=> } " word." } ;
@@ -195,8 +195,8 @@ HELP: time+
                "10 months 2 months time+ 1 year <=> ."
                "+eq+"
     }
-    { $example "USING: calendar math.order prettyprint ;"
-               "2010 1 1 <date> 3 days time+ days>> ."
+    { $example "USING: accessors calendar math.order prettyprint ;"
+               "2010 1 1 <date> 3 days time+ day>> ."
                "4"
     }
 } ;