[rt-users] Date.pm small query

Roy El-Hames rfh at pipex.net
Thu Jan 11 11:47:49 EST 2007


Hi there;
Is there a way to convert for example:
07 Jan 2007 13:23:23
to unix time

I tried
my $dateobj = RT::Date->new($RT::SystemUser);
$unixtime = $dateobj->Set( Format => 'unix', Value => $d );

where $d = "07 Jan 2007 13:23:23" but I don't seem to get the unix time, 
does it have to be formated as "2007-01-07 13:23:23"
any alternatives??

Roy



More information about the rt-users mailing list