all_byday_in_month/3 | get all occurrences of DayType in the indicated month. |
byyearday_to_date/2 | get date of Nth day. |
date_to_dayno/1 | convert date to day count. |
date_to_weekday/1 | determine weekday of Date. |
date_to_weekno/2 | determine which week DateTime belongs to Note : see RFC 3880 chapter 4.4 page 17 for details - this code uses Wkst as the starting date of the week. |
day_type_to_no/1 | maps DayType codes to numerical weekday numbers (mo -> 1, tu -> 2 ....). |
dayno_to_date/2 | determine which month the NthDay occurs (in year Year). |
dayno_to_daytype/1 | |
dayno_to_month/2 | determine which month the NthDay occurs (in year Year). |
days_in_range/2 | determine the number of days in the (inclusive) time range
Start-End, where Start =< End Note : CPU cost = O(N), N
= length of time range in months. |
days_in_year/1 | return number of days in year Year. |
diff_weekly/3 | |
get_week_no/3 | map WeekNo to the week in Year to the regular nonnegative week no. |
gregorian_weekno/2 | |
is_leap_year/1 | determine if Year a leap year. |
m_days/2 | return the number of days in month range [1,Month] in year Year. |
normalize_monthday/3 | find date of Nth day in selected Year-Month -1 = last day, -2 = day before last day ... |
normalize_yearday/2 | find day number of Nth day in selected Year. |
nth_byday_in_month/4 | get date of Nth occurrence of day DayType in month. |
nth_byday_in_year/3 | get date of Nth occurrence of weekday DayType in year Year. |
nth_bymonthday/3 | find date of Nth day in selected Year-Month. |
weekno_to_date/3 | return date of first day in week WeekNo. |
weeks_in_year/2 | determine how many weeks belong to the year Year, some may overlap into the next and previous year - ISO 8601 counts weeks as belonging to the year where the week has most of it's days. |
all_byday_in_month(Year, Month, DayType) -> [{Year, Month, Day}]
get all occurrences of DayType in the indicated month
byyearday_to_date(Year, N) -> {Year, Month, Day} | nth_day_does_not_exist
get date of Nth day. -1 = last day, -2 = day before last day ...
date_to_dayno(X1::Date) -> integer()
convert date to day count
date_to_weekday(Date) -> mo | tu | we | th | fr | sa | su
determine weekday of Date
date_to_weekno(Date, Wkst) -> {Year, WeekNo}
determine which week DateTime belongs to Note : see RFC 3880 chapter 4.4 page 17 for details - this code uses Wkst as the starting date of the week. Count weeks as belonging to the year where the week has most of it's days.
day_type_to_no(X1::DayType) -> integer()
maps DayType codes to numerical weekday numbers (mo -> 1, tu -> 2 ....)
dayno_to_date(Year, NthDay) -> {Year2, Month2, Day2} | nth_day_does_not_exist
determine which month the NthDay occurs (in year Year)
dayno_to_daytype() -> term()
dayno_to_month(Year, NthDay) -> integer()
determine which month the NthDay occurs (in year Year)
days_in_range(X1::Start, X2::End) -> integer()
determine the number of days in the (inclusive) time range
Start-End, where Start =<
End Note : CPU cost = O(N), N
= length of time range in months
days_in_year(Year) -> 365 | 366
return number of days in year Year
diff_weekly() -> term()
get_week_no(Year, Wkst, WeekNo) -> integer() | nth_week_does_not_exits
map WeekNo to the week in Year to the regular nonnegative week no. representation WeekNo
gregorian_weekno() -> term()
is_leap_year(Year) -> true | false
determine if Year a leap year
m_days(Year, X2::Month) -> integer()
return the number of days in month range [1,Month] in year Year
normalize_monthday(Year, Month, N) -> DayNo
find date of Nth day in selected Year-Month -1 = last day, -2 = day before last day ...
normalize_yearday(Year, N) -> YearDay
find day number of Nth day in selected Year. -1 = last day, -2 = day before last day ...
nth_byday_in_month(Year, Month, N, DayType) -> {Year, Month, Day} | nth_day_does_not_exist
get date of Nth occurrence of day DayType in month
nth_byday_in_year(Year, N, DayType) -> {Year, Month, Day} | nth_day_does_not_exist
get date of Nth occurrence of weekday DayType in year Year
nth_bymonthday(Year, Month, N) -> {Year, Month, Day} | nth_day_does_not_exist
find date of Nth day in selected Year-Month. XXX unused. -1 = last day, -2 = day before last day ...
weekno_to_date(Year, Wkst, WeekNo) -> {Year, Month, Day} | week_does_not_exist
return date of first day in week WeekNo
weeks_in_year(Year, Wkst) -> integer()
determine how many weeks belong to the year Year, some may overlap into the next and previous year - ISO 8601 counts weeks as belonging to the year where the week has most of it's days.
Generated by EDoc, Oct 17 2007, 16:48:06.