package lunar
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=f158deac67b864f3edd7d1242b3340a0f218d4465b9e4108501a02197594d0f9
sha512=acf9a3ea508c3df2351aec6ea8299583be128f02d2d891ab82a2999ad6ba00c967962ede7d96782c27a7edcb7f78db08380293a8bf044a567a749872bbc417a8
doc/lunar/Lunar/Month/index.html
Module Lunar.MonthSource
Representation of the months of the year, using an enumeration.
Type
Type describing a month of the year.
Type listing errors that may occur when working with months.
Operation and facts
to_string m returns the string representation of a month (not capitalized).
to_short_string m returns the short string representation of a month (not capitalized), ie: "jan" for "january".
from_string str try to convert a string to a month. (Using string representation or short representation).
days_in ~year m Returns the number of days in month m for a given year year.
quarter_of m Returns the months that make up the quarter in which the given month falls.
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.