Documentation ¶
Overview ¶
Package gregorian provides utility functions for the Gregorian calendar calculations. The Gregorian calendar was officially introduced on 15th October 1582 so, strictly speaking, it only applies after that date. Some countries did not switch to the Gregorian calendar for many years after (such as Great Britain in 1782).
Extending the Gregorian calendar backwards to dates preceding its official introduction produces a proleptic calendar that should be used with some caution for historic dates because it can lead to confusion.
See https://en.wikipedia.org/wiki/Gregorian_calendar https://en.wikipedia.org/wiki/Proleptic_Gregorian_calendar
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DaysIn ¶
DaysIn gives the number of days in a given month, according to the Gregorian calendar.
func DaysInYear ¶
DaysInYear gives the number of days in a given year, according to the Gregorian calendar.
Types ¶
This section is empty.