Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^2: Epoch time conversion in CSV

by hokey (Initiate)
on Sep 26, 2012 at 02:36 UTC ( #995676=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use POSIX qw/strftime/;
    print strftime('%Y-%m-%d %H:%M:%S',gmtime);
    
  2. or download this
    print strftime('%Y-%m-%d %H:%M:%S',localtime);