Timedesc.Timeexception Error_exn of errorval make :
?ns:int ->
?s_frac:float ->
hour:int ->
minute:int ->
second:int ->
unit ->
(t, error) Stdlib.resultConstructs t from specification of the time of day.
Leap second can be specified by providing 60 for second. Note that leap second informtation is lost upon translation to timestamp(s), specifically second 60 is treated as second 59.
24:00:00 is treated as 23:59:59.999_999_999.
Nanosecond used is the addition of ns and s_frac * 10^9.
Returns Error `Invalid_hour if hour < 0 || 24 < hour.
Returns Error `Invalid_hour if hour = 24 and minute <> 0 || second <> 0 || total ns <> 0.
Returns Error `Invalid_minute if minute < 0 || 59 < minute.
Returns Error `Invalid_second if second < 0 || 60 < second.
Returns Error `Invalid_ns if s_frac < 0.0.
Returns Error `Invalid_ns if ns < 0.
Returns Error `Invalid_ns if total ns >= 10^9.
val make_exn :
?ns:int ->
?s_frac:float ->
hour:int ->
minute:int ->
second:int ->
unit ->
tval hour : t -> intval minute : t -> intval second : t -> intval ns : t -> intval is_leap_second : t -> boolval pp_rfc3339 : ?frac_s:int -> unit -> Stdlib.Format.formatter -> t -> unitval pp_rfc3339_milli : Stdlib.Format.formatter -> t -> unitval pp_rfc3339_micro : Stdlib.Format.formatter -> t -> unitval pp_rfc3339_nano : Stdlib.Format.formatter -> t -> unitval to_rfc3339 : ?frac_s:int -> t -> stringval to_rfc3339_milli : t -> stringval to_rfc3339_micro : t -> stringval to_rfc3339_nano : t -> stringval of_iso8601 : string -> (t, string) Stdlib.resultval of_iso8601_exn : string -> t