You want to be careful with strftime format strings if you want your code to be portable. Only a minimal set is truely portable. Anyway, here is what I would and do use.
sub iso_time { require POSIX; POSIX::strftime("%Y-%m-%d %H:%M:%S", localtime( shift( @_ ) || time ) ); }
In reply to Re: How to get quick i nice date format?
by demerphq
in thread How to get quick i nice date format?
by uksza
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |