Calendrical v0.1.2 Calendrical.Calendar.Armenian View Source

Link to this section Summary

Functions

Converts a rata die into a %Date{}

Converts a year, month and day into a rata die number of days

Converts the date into a string according to the calendar

Converts the datetime (with time zone) into a string according to the calendar

Calculates the day of the week from the given year, month, and day

Define the rollover moment for the Coptic calendar

Returns how many days there are in the given year-month

Returns true if the given year is a leap year

Converts t:rata_die to the Calendar’s datetime format

Converts the given datetime (with time zone) into the t:rata_die format

Converts the datetime (without time zone) into a string according to the calendar

Converts t:day_fraction to the Calendar’s time format

Converts the given time to the t:day_fraction format

Converts the time into a string according to the calendar

Returns true if the given date describes a proper date in the calendar

Should return true if the given time describes a proper time in the calendar

Link to this section Functions

Link to this function date_from_rata_die_days(days) View Source

Converts a rata die into a %Date{}

Link to this function date_to_rata_die_days(year, month, day) View Source

Converts a year, month and day into a rata die number of days.

Link to this function date_to_string(year, month, day) View Source

Converts the date into a string according to the calendar.

Link to this function datetime_to_string(year, month, day, hour, minute, second, microsecond, time_zone, zone_abbr, utc_offset, std_offset) View Source

Converts the datetime (with time zone) into a string according to the calendar.

Link to this function day_of_week(year, month, day) View Source

Calculates the day of the week from the given year, month, and day.

Link to this function day_rollover_relative_to_midnight_utc() View Source

Define the rollover moment for the Coptic calendar.

Armenian days start at dawn.

Link to this function days_in_month(year, month) View Source

Returns how many days there are in the given year-month.

Returns true if the given year is a leap year.

Link to this function naive_datetime_from_rata_die(arg) View Source

Converts t:rata_die to the Calendar’s datetime format.

Link to this function naive_datetime_to_rata_die(year, month, day, hour, minute, second, microsecond) View Source

Converts the given datetime (with time zone) into the t:rata_die format.

Link to this function naive_datetime_to_string(year, month, day, hour, minute, second, microsecond) View Source

Converts the datetime (without time zone) into a string according to the calendar.

Link to this function time_from_day_fraction(day_fraction) View Source

Converts t:day_fraction to the Calendar’s time format.

Link to this function time_to_day_fraction(hour, minute, second, microsecond) View Source

Converts the given time to the t:day_fraction format.

Link to this function time_to_string(hour, minute, second, microsecond) View Source

Converts the time into a string according to the calendar.

Link to this function valid_date?(year, month, day) View Source

Returns true if the given date describes a proper date in the calendar.

Link to this function valid_time?(hour, minute, second, microsecond) View Source

Should return true if the given time describes a proper time in the calendar.