Calendars v0.1.4 Calendars.Gregorian View Source

Documentation for the Gregorian calendar (DR4).

Link to this section Summary

Functions

Advent Sunday.

Christmas.

Returns a Gregorian date from its parts.

Returns the English names of the weekdays as list.

Daylight Saving End.

Daylight Saving Start.

Returns the number of days in the month of _gregorian_date.

Returns the number of days in the month of _g_date.

Returns the number of days in the month of fixed date.

Returns the number of days in the quarter of g_date.

Returns the number of days in the quarter of fixed date.

Easter.

U.S. Election Day.

Returns end of the current year as a Gregorian date.

Returns end of the current week as a Gregorian date.

Returns end of the current year as a Gregorian date.

Epiphany.

Returns the epoch of the Gregorian calendar.

Converts source_calendar_date of the source_calendar into the corresponding Gregorian date.

Converts the fixed date in to the corresponding Gregorian date.

Converts the Julian Day number jd into the corresponding Gregorian date.

U.S. Independence Day.

Returns true is the given year is a Gregorian leap year.

Returns the keyword used to access data in the DR4 sample data.

U.S. Labor Day.

Returns true, if g_year is a leap year.

U.S. Memorial Day.

Returns the English names of the months as list.

Returns the name of the month from the Gregorian date _g_date.

Returns the name of the month from the fixed date.

Pentecost.

Returns the quarter of the year from the Gregorian date _g_date.

Returns the quarter of the year from the fixed date.

Returns start of the current year as a Gregorian date.

Returns start of the current week as a Gregorian date.

Returns start of the current year as a Gregorian date.

Converts gregorian_date into the corresponding date of target_calendar.

Converts gregorian_date into the corresponding fixed date.

Converts gregorian_date into the corresponding Julian Day number.

Returns the date of today.

Friday the 13th (first).

Link to this section Types

Specs

t() :: {year(), month(), day()}

Link to this section Functions

Advent Sunday.

Christmas.

Returns a Gregorian date from its parts.

Returns the English names of the weekdays as list.

Link to this function

daylight_saving_end(g_year)

View Source

Daylight Saving End.

Link to this function

daylight_saving_start(g_year)

View Source

Daylight Saving Start.

Link to this function

days_in_month(gregorian_date)

View Source

Returns the number of days in the month of _gregorian_date.

Link to this function

days_in_month_of_date(g_date)

View Source

Returns the number of days in the month of _g_date.

Link to this function

days_in_month_of_fixed(fixed)

View Source

Returns the number of days in the month of fixed date.

Link to this function

days_in_quarter_of_date(g_date)

View Source

Returns the number of days in the quarter of g_date.

Link to this function

days_in_quarter_of_fixed(fixed)

View Source

Returns the number of days in the quarter of fixed date.

Easter.

U.S. Election Day.

Link to this function

end_of_month_as_date(g_date)

View Source

Returns end of the current year as a Gregorian date.

Link to this function

end_of_week_as_date(g_date)

View Source

Returns end of the current week as a Gregorian date.

Link to this function

end_of_year_as_date(g_date)

View Source

Returns end of the current year as a Gregorian date.

Epiphany.

Returns the epoch of the Gregorian calendar.

Link to this function

from_date(source_calendar_date, source_calendar)

View Source

Converts source_calendar_date of the source_calendar into the corresponding Gregorian date.

Converts the fixed date in to the corresponding Gregorian date.

Converts the Julian Day number jd into the corresponding Gregorian date.

Link to this function

independence_day(g_year)

View Source

U.S. Independence Day.

Link to this function

is_leap?(gregorian_date)

View Source

Returns true is the given year is a Gregorian leap year.

Returns the keyword used to access data in the DR4 sample data.

U.S. Labor Day.

Returns true, if g_year is a leap year.

U.S. Memorial Day.

Returns the English names of the months as list.

Link to this function

name_of_month_from_date(g_date)

View Source

Returns the name of the month from the Gregorian date _g_date.

Link to this function

name_of_month_from_fixed(fixed)

View Source

Returns the name of the month from the fixed date.

Pentecost.

Link to this function

quarter_from_date(g_date)

View Source

Returns the quarter of the year from the Gregorian date _g_date.

Link to this function

quarter_from_fixed(fixed)

View Source

Returns the quarter of the year from the fixed date.

Link to this function

start_of_month_as_date(g_date)

View Source

Returns start of the current year as a Gregorian date.

Link to this function

start_of_week_as_date(g_date)

View Source

Returns start of the current week as a Gregorian date.

Link to this function

start_of_year_as_date(g_date)

View Source

Returns start of the current year as a Gregorian date.

Link to this function

to_date(gregorian_date, target_calendar)

View Source

Converts gregorian_date into the corresponding date of target_calendar.

Link to this function

to_fixed(gregorian_date)

View Source

Converts gregorian_date into the corresponding fixed date.

Converts gregorian_date into the corresponding Julian Day number.

Returns the date of today.

Friday the 13th (first).