Timedesc.ISO_week_date_time
type error = [
| `Does_not_exist
| `Invalid_iso_year of int
| `Invalid_iso_week of int
| `Invalid_hour of int
| `Invalid_minute of int
| `Invalid_second of int
| `Invalid_s_frac of float
| `Invalid_ns of int
| `Invalid_tz_info of string option * Span.t
]
exception Error_exn of error
val string_of_error : error -> string
val make :
?tz:Time_zone.t ->
?ns:int ->
?s_frac:float ->
year:int ->
week:int ->
weekday:weekday ->
hour:int ->
minute:int ->
second:int ->
unit ->
(t, error) Stdlib.result
val make_exn :
?tz:Time_zone.t ->
?ns:int ->
?s_frac:float ->
year:int ->
week:int ->
weekday:weekday ->
hour:int ->
minute:int ->
second:int ->
unit ->
t
val make_unambiguous :
?tz:Time_zone.t ->
?ns:int ->
?s_frac:float ->
year:int ->
week:int ->
weekday:weekday ->
hour:int ->
minute:int ->
second:int ->
offset_from_utc:Span.t ->
unit ->
(t, error) Stdlib.result
val make_unambiguous_exn :
?tz:Time_zone.t ->
?ns:int ->
?s_frac:float ->
year:int ->
week:int ->
weekday:weekday ->
hour:int ->
minute:int ->
second:int ->
offset_from_utc:Span.t ->
unit ->
t
val pp_iso8601 : ?frac_s:int -> unit -> Stdlib.Format.formatter -> t -> unit
val pp_iso8601_milli : Stdlib.Format.formatter -> t -> unit
val pp_iso8601_micro : Stdlib.Format.formatter -> t -> unit
val pp_iso8601_nano : Stdlib.Format.formatter -> t -> unit
val to_iso8601 : ?frac_s:int -> t -> string
val to_iso8601_milli : t -> string
val to_iso8601_micro : t -> string
val to_iso8601_nano : t -> string
val of_iso8601 : string -> (t, string) Stdlib.result
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.
val of_iso8601_exn : string -> t