use Time::localtime; my $tm = localtime; printf "The current date is %04d-%02d-%02d\n", $tm->year+1900, ($tm->m +on)+1, $tm->mday; printf "The current time is %02d:%02d:%02d\n", $tm->hour, $tm->min, $t +m->sec;
In reply to Re: How do I find today's date?
by Melkurion
in thread How do I find today's date?
by vroom
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |