Page
Library
Module
Module type
Parameter
Class
Class type
Source
Timedesc.Timestamp
SourceTimestamp specific functions
Returns span in seconds, fraction represents subsecond span.
Representation is the same as result from Unix.gettimeofday
.
Convert from span in seconds, fraction represents subsecond span
Representation is the same as result from Unix.gettimeofday
.
val pp :
?display_using_tz:Time_zone.t ->
?format:string ->
unit ->
Format.formatter ->
t ->
unit
Pretty printing for timestamp.
Follows same format string rules and default format string as pp
.
Pretty prints according to RFC3339, e.g. 2020-01-20T13:00:00.0001+10
.
frac_s
determines the number of fractional digits to include.
Alias to pp_rfc3339
Warning: Subsecond value is truncated
Alias to pp_rfc9110
Parses a subset of ISO8601, up to 9 fractional digits for second (nanosecond precision).
If more than 9 fractional digits are provided, then only the first 9 digits are used, i.e. no rounding.
See of_rfc9110