in reply to function to add time

How did you search in perlmonks?

Super Search on the term 'time' in the title brings up changing time date format., and in this thread there is e.g. Re: changing time date format., which references Date::Calc.

Take a look at that, it might fit your needs.

--shmem

_($_=" "x(1<<5)."?\n".q·/)Oo.  G°\        /
                              /\_¯/(q    /
----------------------------  \__(m.====·.(_("always off the crowd"))."·
");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}