Module ce_calendar

Calendar library.

Description

Calendar library. This module provides functions for generating date/time strings in different formats.

Function Index

logfile_datetime/0Equivalent to logfile_datetime(calendar:local_time()).
logfile_datetime/1Returns a date/time string which is suitable for a log file.
rfc_1123_datetime/0Equivalent to rfc_1123_datetime(calendar:universal_time()).
rfc_1123_datetime/1Returns a date/time string formatted in accordance to RFC 1123.
timestamp/0Equivalent to timestamp(calendar:local_time()).
timestamp/1Returns a timestamp string which is both human-readable and unique within the node on which it is generated.

Function Details

logfile_datetime/0

logfile_datetime() -> string()

Equivalent to logfile_datetime(calendar:local_time()).

logfile_datetime/1

logfile_datetime(X1::{date(), time()}) -> string()

Returns a date/time string which is suitable for a log file. This sort of date/time looks like "2003.08.14 08:49:05".

rfc_1123_datetime/0

rfc_1123_datetime() -> string()

Equivalent to rfc_1123_datetime(calendar:universal_time()).

rfc_1123_datetime/1

rfc_1123_datetime(X1::{date(), time()}) -> string()

Returns a date/time string formatted in accordance to RFC 1123. This sort of date/time looks like "Sun, 06 Nov 1994 08:23:19 GMT".

timestamp/0

timestamp() -> string()

Equivalent to timestamp(calendar:local_time()).

timestamp/1

timestamp(X1::{date(), time()}) -> string()

Returns a timestamp string which is both human-readable and unique within the node on which it is generated. This sort of date/time looks like "20030814.184025.148330".


Generated by EDoc, Feb 18 2008, 06:47:42.