package timere

  1. Overview
  2. Docs

Module Timere.PointsSource

Sourcetype t
Sourcetype error = [
  1. | `Invalid_year of int
  2. | `Invalid_day of int
  3. | `Invalid_hour of int
  4. | `Invalid_minute of int
  5. | `Invalid_second of int
  6. | `Invalid_pattern_combination
  7. | `Invalid_tz_info of string option * Timedesc.Span.t
]
Sourceexception Error_exn of error
Sourceval 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

Sourceval 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