Printer.CalendarCalendar printer. Default format is %i %T.
type t = Calendar.tGeneric type of a printer.
val fprint : string -> Stdlib.Format.formatter -> t -> unitfprint format formatter x outputs x on formatter according to the specified format.
val print : string -> t -> unitprint format is equivalent to fprint format Format.std_formatter
val dprint : t -> unitSame as print d where d is the default format (see the printer implementations).
val sprint : string -> t -> stringsprint format date converts date to a string according to format.
val to_string : t -> stringSame as sprint d where d is the default format (see the printer implementations).
val from_fstring : string -> string -> tfrom_fstring format s converts s to a date according to format.
Date padding (i.e. a special directive following '%') and specifiers %e, %k and %l are not recognized. Specifiers %a, %A, %j, %v, %w and %W are recognized but mainly ignored: only the validity of the format is checked.
In order to recognize words (used by %a, %A, %b, %B and %p), a regular expression is used which can be configured by Printer.set_word_regexp. When the format has only two digits for the year number, 1900 are added to this number (see examples).
val from_string : string -> tSame as from_fstring d where d is the default format.