None of the above.
You should either use sprintf or POSIX::strftime
/J\
In reply to Re: best way to write code by gellyfish in thread best way to write code by Anonymous Monk