module TimePrinter:Time printer. The specifications which use date functionalities are not available on this printer.Swith type t = Time.t
The default format is %T.
type t
val fprint : string -> Format.formatter -> t -> unitfprint format formatter x outputs x on formatter according to
the specified format. Raise Invalid_argument if the format is
incorrect.val print : string -> t -> unitprint format is equivalent to fprint format Format.std_formatterval dprint : t -> unitprint 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 -> stringsprint 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.
The only available specifications are %%, %d, %D, %m, %M, %S,
%T, %y and %Y.
When the format has only two digits for the year number, 1900 are added
to this number (see the example).
Raise Invalid_argument if either the format is incorrect
or the string does not match the format
or the event cannot be created (e.g. if you do not specify a year for
a date).
For example from_fstring "the date is %D" "the date is 01/06/03" returns
a date equivalent to Date.make 1903 1 6.
val from_string : string -> tfrom_fstring d where d is the default format.