Mrmime.DateSourceType of date according RFC 822 / RFC 2822 / RFC 5322.
val make :
?day:Day.t ->
(int * Month.t * int) ->
(int * int * int option) ->
Zone.t ->
(t, [> `Msg of string ]) resultmake ?day (year, month, day) (hh, mm, ss) tz returns a date corresponding to month/day/year hh:mm:ss date-time with time zone tz. ?day (which is the day in the 7-day week) and day must correspond according of timestamp to month/day/year and time zone tz. If it's not the case, make returns an error.
(year, month, day) (hh, mm, ss) must correspond to a valid POSIX timestamp. The date-time must be in the range of 0000-01-01 00:00:00 UTC and 9999-12-31 23:59:59.99 UTC. Otherwise, make returns an error.
If ss = None, seconds are 0. If ?day = None, it will be the day in the 7-day week of POSIX timestamp corresponding to date-time (year, month, day) (hh, mm, ss) expressed in the time zone offset tz.
make relies on Ptime.of_date_time. To completely understand implication of that, you should read basics about ptime.
to_ptime t returns a POSIX timestamp Ptime.t.