On Mon, 2007-08-13 at 15:37 +0800, Sharon Lim wrote:
> Hi,
> 
> I think the following shld solve your problem.
> 
> use Time::Local;
> ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst)=localtime();
> $time=timelocal($sec,$min,$hour,$mday,$mon,$year);
> print $time;


Nope. Not the intended output..

Need to convert user supplied datetime into epoch time for parsing..

eg: User supplied Datetime = "2007-08-13 14:39:48"
I want that Datetime converted into an Epoch Format.

I was using that previously, now changed to use DateTime 

_______________________________________________
Slugnet mailing list
[email protected]
http://www.lugs.org.sg/mailman/listinfo/slugnet

Reply via email to