package timedesc
Module Span.For_humanSource
Source
type error = [ | `Invalid_days of int| `Invalid_hours of int| `Invalid_minutes of int| `Invalid_seconds of int| `Invalid_ns of int
]Source
type error_f = [ | `Invalid_days_f of float| `Invalid_hours_f of float| `Invalid_minutes_f of float| `Invalid_seconds_f of float| `Invalid_ns of int
]Source
val make :
?sign:sign ->
?days:int ->
?hours:int ->
?minutes:int ->
?seconds:int ->
?ns:int ->
unit ->
(t, error) resultsign defaults to `Pos.
Returns Error if any of the arguments are negative.
Source
val make_exn :
?sign:sign ->
?days:int ->
?hours:int ->
?minutes:int ->
?seconds:int ->
?ns:int ->
unit ->
tSource
val make_frac :
?sign:sign ->
?days:float ->
?hours:float ->
?minutes:float ->
?seconds:float ->
?ns:int ->
unit ->
(t, error_f) resultsign defaults to `Pos.
Returns Error if any of the arguments are negative.
Source
val make_frac_exn :
?sign:sign ->
?days:float ->
?hours:float ->
?minutes:float ->
?seconds:float ->
?ns:int ->
unit ->
t