Module Printer.Ftime
Ftime printer. Seconds are rounded to integers before pretty printing. Specifiers which use date functionalities are not available on this printer. Default format is %T
.
- since
- 2.0
type t
= Ftime.t
Generic type of a printer.
val fprint : string -> Stdlib.Format.formatter -> t -> unit
fprint format formatter x
outputsx
onformatter
according to the specifiedformat
.- raises Invalid_argument
if the format is incorrect.
val print : string -> t -> unit
print format
is equivalent tofprint format Format.std_formatter
val dprint : t -> unit
Same as
print d
whered
is the default format (see the printer implementations).
val sprint : string -> t -> string
sprint format date
convertsdate
to a string according toformat
.
val to_string : t -> string
Same as
sprint d
whered
is the default format (see the printer implementations).