Slaven Rezić > WE_Framework-0.097_03 > WE::Util::Date

Download:
WE_Framework-0.097_03.tar.gz

Dependencies

Annotate this POD

Module Version: 1.03   Source  

NAME ^

WE::Util::Date - date-specific functions

SYNOPSIS ^

    use WE::Util::Date;
    print scalar localtime isodate2epoch("2001-12-12 12:23:00");

DESCRIPTION ^

This is a helper class for date functions.

FUNCTIONS ^

isodate2epoch($isodate)

Return time in seconds since UNIX epoch for the given ISO 8601 string (YYYY-MM-DD HH:MM:SS or YYYY-MM-DD). If Date::Manip is installed, more ISO formats are allowed.

epoch2isodate($time)

Return time as ISO 8601 date from given time in seconds since UNIX epoch.

short_readable_time($epoch)

Return the short time à la "ls -al". (Not exported by default).

AUTHOR ^

Slaven Rezic - slaven@rezic.de

SEE ALSO ^

syntax highlighting: