Calendar.PeriodSourceA period is the number of seconds between two calendars.
Type of a period.
make year month day hour minute second makes a period of the specified length.
val lmake :
?year:int ->
?month:int ->
?day:int ->
?hour:int ->
?minute:int ->
?second:second ->
unit ->
tLabelled version of make. The default value of each argument is 0.
Those functions have the same behavious as those defined in Date_sig.S.Period.
Those functions have the same behavious as those defined in Time_sig.S.Period.
Convert a date period to a calendar period.
Convert a time period to a calendar period.
Convert a calendar period to a date period. The fractional time period is ignored. @example to_date (hour 60) is equivalent to Date.Period.days 2.
= Date.Period.Not_computable.
Convert a calendar period to a date period.
Equivalent to to_time but never raises any exception.