The most flexible way to do this is to use the strftime() function from the POSIX module that comes with perl. You can do something like:
Obviously you will use your own value for $timeuse POSIX qw(strftime); + $time = time(); + print strftime("%m/%d/%Y %H:%M:%S",localtime($time));
/J\
In reply to Re: How can I convert epoch seconds to date format
by gellyfish
in thread How can I convert epoch seconds to date format
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |