Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
type error = [
| `Invalid_year of int
| `Invalid_day of int
| `Invalid_hour of int
| `Invalid_minute of int
| `Invalid_second of int
| `Invalid_pattern_combination
| `Invalid_tz_info of string option * Timedesc.Span.t
]
exception Error_exn of error
val make :
?tz:Timedesc.Time_zone.t ->
?offset_from_utc:Timedesc.Span.t ->
?year:int ->
?month:int ->
?day:int ->
?weekday:Timedesc.weekday ->
?hour:int ->
?minute:int ->
second:int ->
unit ->
(t, error) result
Call must be exactly one of the following forms (ignoring tz
and tz_offset_s
which are optional in all cases)
make ~year:_ ~month:_ ~day:_ ~hour:_ ~minute:_ ~second:_ ()
make ~month:_ ~day:_ ~hour:_ ~minute:_ ~second:_ ()
make ~day:_ ~hour:_ ~minute:_ ~second:_ ()
make ~weekday:_ ~hour:_ ~minute:_ ~second:_ ()
make ~hour:_ ~minute:_ ~second:_ ()
make ~minute:_ ~second:_ ()
make ~second:_ ()
returns Error
otherwise
val make_exn :
?tz:Timedesc.Time_zone.t ->
?offset_from_utc:Timedesc.Span.t ->
?year:int ->
?month:int ->
?day:int ->
?weekday:Timedesc.weekday ->
?hour:int ->
?minute:int ->
second:int ->
unit ->
t