]> gitweb.factorcode.org Git - factor.git/commitdiff
calendar: minor doc fixes
authorSlava Pestov <slava@slava-pestovs-macbook-pro.local>
Sun, 19 Sep 2010 00:41:56 +0000 (17:41 -0700)
committerSlava Pestov <slava@slava-pestovs-macbook-pro.local>
Tue, 21 Sep 2010 04:36:19 +0000 (21:36 -0700)
basis/calendar/calendar-docs.factor

index e76aace4647a74d5b18fa9f44ade55449c059f6f..c31ddca2c19493e26896112b09dc9481dd79edb9 100644 (file)
@@ -519,7 +519,7 @@ HELP: since-1970
 { $description "Adds the duration to the beginning of Unix time and returns the result as a timestamp." } ;
 
 ARTICLE: "calendar" "Calendar"
-"The two data types used throughout the calendar library:"
+"The " { $vocab-link "calendar" } " vocabulary defines two data types and a set of operations on them:"
 { $subsections
     timestamp
     duration
@@ -533,13 +533,12 @@ ARTICLE: "calendar" "Calendar"
     now
     gmt
 }
-"Converting between timestamps:"
+"Time zones:"
 { $subsections
     >local-time
     >gmt
+    convert-timezone
 }
-"Converting between timezones:"
-{ $subsections convert-timezone }
 "Timestamps relative to each other:"
 { $subsections "relative-timestamps" }
 "Operations on units of time:"
@@ -548,9 +547,10 @@ ARTICLE: "calendar" "Calendar"
     "months"
     "days"
 }
+"Both " { $link timestamp } "s and " { $link duration } "s implement the " { $link "math.order" } "."
+$nl
 "Meta-data about the calendar:"
-{ $subsections "calendar-facts" }
-;
+{ $subsections "calendar-facts" } ;
 
 ARTICLE: "timestamp-arithmetic" "Timestamp arithmetic"
 "Adding timestamps and durations, or durations and durations:"