package calendar
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page
Module Calendar.PeriodSource
A period is the number of seconds between two calendars.
Arithmetic operations
Type of a period.
Period is an additive monoid
Periods are comparable
Constructors
make year month day hour minute second makes a period of the specified length.
Source
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.
Coercions
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.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page