[gentoo-user] [OT] Help with Perl Datetime + Epoch

2007-08-13 Thread Ow Mun Heng
Been struggling with a new script I'm porting over from bash because perl's DBI is much more elegant than my previous usage of sqsh. I'm having trouble converting from a datetime into a unix epoch timestamp. under bash, this is done. date = -MM-DD HH:MM:SS epoch_date = date -d $date +%s

Re: [gentoo-user] [OT] Help with Perl Datetime + Epoch

2007-08-13 Thread Tim
Ow Mun Heng wrote: Been struggling with a new script I'm porting over from bash because perl's DBI is much more elegant than my previous usage of sqsh. I'm having trouble converting from a datetime into a unix epoch timestamp. under bash, this is done. date = -MM-DD HH:MM:SS epoch_date =

Re: [gentoo-user] [OT] Help with Perl Datetime + Epoch

2007-08-13 Thread Alan
On Mon, Aug 13, 2007 at 02:43:04PM +0800, Ow Mun Heng wrote: Been struggling with a new script I'm porting over from bash because perl's DBI is much more elegant than my previous usage of sqsh. I'm having trouble converting from a datetime into a unix epoch timestamp. under bash, this is

Re: [gentoo-user] [OT] Help with Perl Datetime + Epoch

2007-08-13 Thread Ow Mun Heng
On Mon, 2007-08-13 at 00:25 -0700, Alan wrote: On Mon, Aug 13, 2007 at 02:43:04PM +0800, Ow Mun Heng wrote: Been struggling with a new script I'm porting over from bash because perl's DBI is much more elegant than my previous usage of sqsh. I'm having trouble converting from a datetime