Re: getting $date
- From: spam@xxxxxxxxxxx (spam)
- Date: Tue, 31 May 2005 13:24:49 +0200
Graham Gough <graham@xxxxxxxxxxxx> wrote:
> perldoc -f localtime
That probably is what I'm looking for, but the perldoc page isn't (to
me, a newbie) very clear ..
Converts a time as returned by the time function to a 9-element
list with the time analyzed for the local time zone.
Typically
used as follows:
# 0 1 2 3 4 5 6 7 8
($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst)
= localtime(time);
OK, so in my code, I put ...
my $date = localtime ($day, $mday, $year) ;
No surprises: it doesn't work.
All other combinations (locatime inside brackets, outside brackets, with
curly brackets, with $ in front, after, in the middle ..) don't work.
Help!
--
spam
.
- Follow-Ups:
- Re: getting $date
- From: Josef Moellers
- Re: getting $date
- From: Graham Gough
- Re: getting $date
- References:
- getting $date
- From: spam
- Re: getting $date
- From: Graham Gough
- getting $date
- Prev by Date: Re: getting $date
- Next by Date: Re: getting $date
- Previous by thread: Re: getting $date
- Next by thread: Re: getting $date
- Index(es):
Relevant Pages
|