package timedesc
OCaml date time handling library
Install
Dune Dependency
Authors
Maintainers
Sources
timedesc-1.1.0.tar.gz
sha256=2be785e3a8699748d79433b655a66412642dc380391a5643f8997e6c193bbfff
doc/timedesc/Timedesc/Interval/index.html
Module Timedesc.Interval
Source
Left-closed, right-open interval, i.e. interval is * of the form [x, y)
, which includes x and excludes y
Comparison
Pretty printing
Source
val pp :
?display_using_tz:Time_zone.t ->
?format:string ->
unit ->
Format.formatter ->
t ->
unit
Pretty printing for interval.
Default format string:
[{syear} {smon:Xxx} {sday:0X} {shour:0X}:{smin:0X}:{ssec:0X}{ssec-frac:.} \ {stzoff-sign}{stzoff-hour:0X}:{stzoff-min:0X}:{stzoff-sec:0X}, {eyear} \ {emon:Xxx} {eday:0X} {ehour:0X}:{emin:0X}:{esec:0X}{esec-frac:.} \ {etzoff-sign}{etzoff-hour:0X}:{etzoff-min:0X}:{etzoff-sec:0X})
Follows same format string rules as Date_time.to_string
, but tags are prefixed with 's' for "start time", and 'e' for "end exc time", e.g. for interval (x, y)
{syear}
gives year of thex
{ehour:cX}
gives hour of they
Source
val pp_seq :
?display_using_tz:Time_zone.t ->
?format:string ->
?sep:(Format.formatter -> unit -> unit) ->
unit ->
Format.formatter ->
t Seq.t ->
unit
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page