Re: getting $date
- From: spam@xxxxxxxxxxx (spam)
- Date: Wed, 1 Jun 2005 20:28:16 +0200
Josef Moellers <josef.moellers@xxxxxxxxxxxxxxxxxxx> wrote:
> spam wrote:
> > 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.
>
> You need to master elemntary perl first, before trying such am ambitous
> project B-{)
Oh, I agree. :-(
--
spam
.
- Prev by Date: Re: Editors that use embedded Perl as their macro language?
- Next by Date: Re: Can I use OODoc to create a paragraph with a mix of bold and normal text?
- Previous by thread: Re: perl style: can I combine two steps into one?
- Next by thread: another matrix thingy.
- Index(es):
Relevant Pages
|