Module my_calendar

Calendar library.

Copyright © 2003 - 2004 Enrique Marcote Peña

Version: 1.0, {19 Feb 2003} 12:29:46.

Authors: Enrique Marcote Peña (mpquique@users.sourceforge.net) [web site: http://www.des.udc.es/~mpquique/].

Description

Calendar library.

My own calendar functions.

Changes 0.2 -> 1.0

[12 May 2004]

Function Index

day/0Returns the day number on current year for today.
day/1Returns the day number on that Year for Date.
day/3Returns the day number on that Year for the Day of Month.
day_of_current_week_to_date/1Returns the date for a given day of current week.
expired/1Returs the atom true if the time returned by the BIF now/0 is greater than Time, false otherwise.
then/1This function adds TimeLapse microseconds to the result of the BIF now/0.
time_since/1Returns the microseconds since Time.
time_until/1Returns the microseconds until Time.
week/0Returns the week number on current year for today.
week/1Returns the week number on that Year for Date.
week/3Returns the week number on that Year for the Day of Month.

Function Details

day/0

day() -> int()

Returns the day number on current year for today.

day/1

day(X1::Date) -> int()

Returns the day number on that Year for Date.

day/3

day(Year::Year, Month::Month, Day::Day) -> int()

Returns the day number on that Year for the Day of Month.

day_of_current_week_to_date/1

day_of_current_week_to_date(DayNumber::DayNumber) -> {Year, Month, Day}

Returns the date for a given day of current week.

expired/1

expired(X1::Time) -> true | false

Returs the atom true if the time returned by the BIF now/0 is greater than Time, false otherwise.

then/1

then(TimeLapse::TimeLapse) -> {MegaSecs, Secs, MicroSecs}

This function adds TimeLapse microseconds to the result of the BIF now/0.

time_since/1

time_since(X1::Time) -> TimeLapse

Returns the microseconds since Time.

time_until/1

time_until(X1::Time) -> TimeLapse

Returns the microseconds until Time.

week/0

week() -> int()

Returns the week number on current year for today.

week/1

week(X1::Date) -> int()

Returns the week number on that Year for Date.

week/3

week(Year::Year, Month::Month, Day::Day) -> int()

Returns the week number on that Year for the Day of Month.