[ale] PERL + SQL Dates

Geoffrey esoteric at 3times25.net
Tue Apr 27 09:16:36 EDT 2004


Chris Fowler wrote:
> Maybe I asked this before?
> 
> I'm storing my dates in MySQL as "YYYY-MM-DD HH:MM:SS"  I need to be
> able in perl to convert that time to epoch and also convert an epoch
> into that format.  Anyone have any secrets for me?

Check out the timelocal() and localtime() mods..

> 
> Thanks,
> Chris
> 
> 
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://www.ale.org/mailman/listinfo/ale
> 
> 


-- 
Until later, Geoffrey                     Registered Linux User #108567
Building secure systems in spite of Microsoft



More information about the Ale mailing list