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