Module leo_date

leo_date is utilities for date processing.

References

Description

leo_date is utilities for date processing.

Function Index

clock/0Retrieve current time with unix-time.
date_format/0Format date.
date_format/1Format date.
date_format/2Format date.
greg_seconds_to_unixtime/1Convert data from a gregorian seconds to a unixtime.
now/0Retrieve the current time.
unixtime/0Retrieve unixtime.
unixtime_to_greg_seconds/1Convert data from a unixtime to a gregorian seconds.
zone/0Retrieve current timezone.

Function Details

clock/0

clock() -> integer()

Retrieve current time with unix-time.

date_format/0

date_format() -> any()

Format date

date_format/1

date_format(GregorianSeconds) -> string()

Format date

date_format/2

date_format(Zone, GregorianSeconds) -> string()

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

now/0

now() -> integer()

Retrieve the current time. (the number of seconds from year 0 to now)

unixtime/0

unixtime() -> pos_integer()

Retrieve unixtime

unixtime_to_greg_seconds/1

unixtime_to_greg_seconds(UnixTime) -> pos_integer()

Convert data from a unixtime to a gregorian seconds

zone/0

zone() -> string()

Retrieve current timezone


Generated by EDoc