package timere

  1. Overview
  2. Docs

Module Timere.TimestampSource

Sourceval min_val : timestamp
Sourceval max_val : timestamp
Sourceval now : unit -> timestamp
Sourceval pp : ?display_using_tz:Time_zone.t -> ?format:string -> unit -> Format.formatter -> timestamp -> unit

Pretty printing for timestamp.

Follows same format string rules and default format string as Date_time.to_string.

Sourceval to_string : ?display_using_tz:Time_zone.t -> ?format:string -> timestamp -> string
Sourceval pp_rfc3339 : ?frac_s:int -> unit -> Format.formatter -> timestamp -> unit

frac_s determines the number of fractional digits to include.

Sourceval pp_rfc3339_milli : Format.formatter -> timestamp -> unit
Sourceval pp_rfc3339_micro : Format.formatter -> timestamp -> unit
Sourceval pp_rfc3339_nano : Format.formatter -> timestamp -> unit
Sourceval to_rfc3339 : ?frac_s:int -> timestamp -> string
Sourceval to_rfc3339_milli : timestamp -> string
Sourceval to_rfc3339_micro : timestamp -> string
Sourceval to_rfc3339_nano : timestamp -> string
Sourceval of_iso8601 : string -> (timestamp, string) result