TOM::Utils::datetime
From Cyclone3 Wiki
Date and time conversions.
mail_current()
Syntax:
TOM::Utils::datetime::mail_current();
Output:
my $foo = LC_TIME="en_US.UTF-8" date "+%a, %e %b %Y %H:%M:%S %z (%Z)
datetime_collapse()
syntax:
my %foo = TOM::Utils::datetime::datetime_collapse('2010-10-12[ 18:45[:25]]');
Output:
%( 'year': 2010, 'month': 10, 'mday': 12, 'hour': 18, 'min': 45, 'sec': 25 )
Categories: TOM | TOM::Utils | Libs