Calendars v0.1.2 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.

Daylight Saving End.

Daylight Saving Start.

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.

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 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 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.

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.

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.

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_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.

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.

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.

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

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.

Friday the 13th (first).