Well the current local time is returned by localtime
Formatting that time can be done in many different ways in Perl. The quickest way is probably to use the Posix strftime function.
Putting the two together gives:
use POSIX; print strftime( "%d/%y/%Y", localtime());
In reply to Re: Want to format date and time
by space_monk
in thread Want to format date and time
by joyeux
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |