leo_date¶
leo_date is utilities for date processing.
References
Description¶
leo_date is utilities for date processing.
Function Index¶
clock/0 | Retrieve current time with unix-time. |
date_format/0 | Format date. |
date_format/1 | Format date. |
date_format/2 | Format date. |
greg_seconds_to_unixtime/1 | Convert data from a gregorian seconds to a unixtime. |
now/0 | Retrieve the current time. |
unixtime/0 | Retrieve unixtime. |
unixtime_to_greg_seconds/1 | Convert data from a unixtime to a gregorian seconds. |
zone/0 | Retrieve current timezone. |
Function Details¶
date_format/1¶
date_format(GregorianSeconds) -> string()
- GregorianSeconds = pos_integer()
Format date
date_format/2¶
date_format(Zone, GregorianSeconds) -> string()
- Zone = utc
- GregorianSeconds = pos_integer()
Format date
greg_seconds_to_unixtime/1¶
greg_seconds_to_unixtime(GregorianSeconds::pos_integer()) -> pos_integer()
Convert data from a gregorian seconds to a unixtime
unixtime_to_greg_seconds/1¶
unixtime_to_greg_seconds(UnixTime) -> pos_integer()
- UnixTime = pos_integer()
Convert data from a unixtime to a gregorian seconds