Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I found a util but it seems to require a mysql.pm. I am pulling a row from a MSSQL server which uses this format
Jan 5 2005 11:43AM
or
Jan 11 2005 11:14AM
it doesn't use a zero in front of a single digit date
and I need to convert that into epoch, so I can compare it with current time, ie determine how many seconds old that timestamp is.
is there a way to do it without special pm's ?
Thanks
Jan 5 2005 11:43AM
or
Jan 11 2005 11:14AM
it doesn't use a zero in front of a single digit date
and I need to convert that into epoch, so I can compare it with current time, ie determine how many seconds old that timestamp is.
is there a way to do it without special pm's ?
Thanks
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Date conversion to epoch w/out mysql.pm
by ptum (Priest) on Jan 05, 2006 at 16:51 UTC | |
by Anonymous Monk on Jan 05, 2006 at 17:04 UTC | |
Re: Date conversion to epoch w/out mysql.pm
by suaveant (Parson) on Jan 05, 2006 at 16:50 UTC | |
by vek (Prior) on Jan 06, 2006 at 16:11 UTC | |
Re: Date conversion to epoch w/out mysql.pm
by vek (Prior) on Jan 06, 2006 at 16:18 UTC |
Back to
Seekers of Perl Wisdom