| CPAN Ratings (Gamma) Time-Format reviews | |
| Home | Search | About | Login |
RSS | Module Info | Add a review of Time-Format
4 out of 5 found this review helpful:
Yeah! Finally a decent date-time format handling module!..
I don't have to do this anymore:
sub timestring {
my @t = localtime( shift || time );
my $t
= sprintf( "%04d", $t[5] + 1900 ) . '-'
. sprintf( "%02d", $t[4] + 1 ) . '-'
. sprintf( "%02d", $t[3] ) . ' '
. sprintf( "%02d", $t[2] ) . ':'
. sprintf( "%02d", $t[1] ) . ':'
. sprintf( "%02d", $t[0] );
return $t;
}
I can just just use this:
$time{'yyyy-mm-dd hh:mm:ss'}
Great job!..
Topchyan - 2008-05-28 11:14:41
Was this review helpful to you?
Yes
No
exactly what i needed, thanx a lot to Mr.Eric !
Jaiber - 2003-08-20 08:36:07
Was this review helpful to you?
Yes
No
|
|
|