Copyright © 2009 Marc Worrell Date: 2009-11-04
Authors: Marc Worrell (marc@worrell.nl).
datetime_to_timestamp/1 | Translate a date to UNIX timestamp. |
days_in_year/1 | Return the number of days in a certain year. |
diff/2 | Return the absolute difference between two dates. |
format/3 | Format a date/time. |
month_boundaries/1 | Return the month-boundaries of a given date. |
next_day/1 | Return the date one day later. |
next_hour/1 | Return the date one hour later. |
next_minute/1 | Return the date one minute later. |
next_month/1 | Return the date one month later. |
next_second/1 | Return the date one second later. |
next_year/1 | Return the date one year later. |
prev_day/1 | Return the date one day earlier. |
prev_hour/1 | Return the date one hour earlier. |
prev_minute/1 | Return the date one minute earlier. |
prev_month/1 | Return the date one month earlier. |
prev_second/1 | Return the date one second earlier. |
prev_year/1 | Return the date one year earlier. |
timesince/2 | Show a humanized version of a relative datetime. |
timesince/3 | Show a humanized version of a period between two dates. |
timesince/4 | Show a humanized version of a period between two dates. |
timestamp_to_datetime/1 | Translate UNIX timestamp to local datetime. |
undefined_if_invalid_date/1 | Return 'undefined' if a given date is invalid. |
week_boundaries/1 | Return the week-boundaries of a given date. |
week_boundaries/2 |
datetime_to_timestamp(DT) -> any()
Translate a date to UNIX timestamp
days_in_year(Y) -> any()
Return the number of days in a certain year.
diff(Date1, Date2) -> any()
Return the absolute difference between two dates. Does not take daylight saving into account.
format(Date, FormatString, Context) -> any()
Format a date/time. Convenience function which calls erlydtl.
month_boundaries(X1) -> any()
Return the month-boundaries of a given date
next_day(Date) -> any()
Return the date one day later.
next_hour(Date) -> any()
Return the date one hour later.
next_minute(Date) -> any()
Return the date one minute later.
next_month(X1) -> any()
Return the date one month later.
next_second(Date) -> any()
Return the date one second later.
next_year(X1) -> any()
Return the date one year later.
prev_day(Date) -> any()
Return the date one day earlier.
prev_hour(Date) -> any()
Return the date one hour earlier.
prev_minute(Date) -> any()
Return the date one minute earlier.
prev_month(X1) -> any()
Return the date one month earlier.
prev_second(Date) -> any()
Return the date one second earlier.
prev_year(X1) -> any()
Return the date one year earlier.
timesince(Date, Context) -> string()
Show a humanized version of a relative datetime. Like "4 months, 3 days ago".
timesince(Date, Base::BaseDate, Context) -> string()
Show a humanized version of a period between two dates. Like "4 months, 3 days ago".
timesince(Date, Base::BaseDate, IndicatorStrings::WhenText, Context) -> string()
Show a humanized version of a period between two dates. Like "4 months, 3 days ago".
WhenText
is a string containing a maximum of three tokens. Example "ago, now, in"
timestamp_to_datetime(Seconds) -> any()
Translate UNIX timestamp to local datetime.
undefined_if_invalid_date(Date) -> any()
Return 'undefined' if a given date is invalid
week_boundaries(Date) -> any()
Return the week-boundaries of a given date. WeekStart is optional, and determines on which day a week starts.
week_boundaries(Date, WeekStart) -> any()
Generated by EDoc, Feb 25 2011, 21:14:41.