package timedesc
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page
Module Timedesc.TimestampSource
Timestamp specific functions
Constants
Now
Re-export from Span
Conversion
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.
Accessors
Comparison
Arithmetic
Pretty printing
Source
val pp :
?display_using_tz:Time_zone.t ->
?format:string ->
unit ->
Format.formatter ->
t ->
unitPretty 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.
Parsing
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.
Sexp
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page