ちょいと野暮用でocaml-calendarを使ってみたので少しメモ。日付系でaptに入っていたのがこれだけだったので。

# #use "topfind";;
- : unit = ()
Findlib has been successfully loaded. Additional directives:
  #require "package";;      to load a package
  #list;;                   to list the available packages
  #camlp4o;;                to load camlp4 (standard syntax)
  #camlp4r;;                to load camlp4 (revised syntax)
  #predicates "p,q,...";;   to set these predicates
  Topfind.reset();;         to force that packages will be reloaded
  #thread;;                 to enable threads

- : unit = ()
# #require "calendar";;
/usr/lib/ocaml/unix.cma: loaded
/usr/lib/ocaml/str.cma: loaded
/usr/lib/ocaml/calendar: added to search path
/usr/lib/ocaml/calendar/calendarLib.cma: loaded
# open CalendarLib;;
# let d = Date.make 2009 12 23;;
val d : CalendarLib.Date.t = <abstr>
# Printer.name_of_day (Date.day_of_week d);;
- : string = "Wednesday"

詳細はdate.mliとかを見れば思い出すはず > 自分