Re: getting $date
- From: Graham Gough <graham@xxxxxxxxxxxx>
- Date: 31 May 2005 14:35:27 +0100
>>>>> "ASU" == A Sinan Unur <1usa@xxxxxxxxxxxxxxxxxxx> writes:
ASU> use warnings;
ASU> my ($mday, $mon, $year) = (localtime)[3 .. 5];
ASU> printf "%2.2d/%2.2d/%4.4d\n", $mday, $mon + 1, $year + 1900;
Nothing wrong with your solution, but the one I proposed used only
information which could be gleaned from the perldoc entry for
localtime.
TMTOWTDI
Graham
.
- References:
- getting $date
- From: spam
- Re: getting $date
- From: Graham Gough
- Re: getting $date
- From: spam
- Re: getting $date
- From: Graham Gough
- Re: getting $date
- From: A. Sinan Unur
- getting $date
- Prev by Date: Re: Mail::IMAPClient via SSL
- Next by Date: Re: getting $date
- Previous by thread: Re: getting $date
- Next by thread: Re: getting $date
- Index(es):