package lunar
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page
A very small date management library
Install
dune-project
Dependency
Authors
Maintainers
Sources
lunar-1.3.0.tbz
sha256=cc0dc0ca027423d1892392872f7be35ff2c1acc5579ddf895b60cd6c77534e4a
sha512=5a252698e6bf0eb23f41d61c5b56deee03c8e7ccc7dca11145388e9cf1a12e5046c3cb09ee3472fe67dca700387aa108616c9eb128e154faec0f6d11eaaf010a
doc/lunar/Lunar/Era/index.html
Module Lunar.EraSource
Era identifies the historical period relative to year numbering. In the Gregorian/ISO calendar there are two eras: BCE and CE. Since Lunar just support dates between the years 0000 (in an astronomic sense), BCE is probably never used.
Types
The type describing an era.
Computing Era
Relativizing from era
year y relativize the given year y from the associated era. It counts years within the era
century year returns the century inside the associated era.
year_of_century year returns the year position within the century inside the associated era.
Conversion
Comparison
clamp ~min ~max x restricts the x to the inclusive interval [min, max].
is_earlier ~than x returns true if x is (strictly) earlier than than, false otherwise.
is_later ~than x returns true if x is (strictly) later than than, false otherwise.
Map and Set
Infix operators
include module type of Infix
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page