[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ale] PERL + SQL Dates



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