Module ce_calendar

Description

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

Function Index

Exported Functions
logfile_datetime/0See logfile_datetime/1.
logfile_datetime/1Returns a date/time string which is suitable for a log file.
rfc_1123_datetime/0See rfc_1123_datetime/1.
rfc_1123_datetime/1Returns a date/time string formatted in accordance to RFC 1123.
timestamp/0See timestamp/1.
timestamp/1Returns a timestamp string which is both human-readable and unique within the node on which it is generated.

Exported Functions

logfile_datetime/0

logfile_datetime() -> string()

Equivalent to logfile_datetime(calendar:local_time()).

logfile_datetime/1

logfile_datetime({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({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({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".