Re: perlfaq4: How do I find the week-of-the-year/day-of-the-year?

[email protected] (_brian_d_foy)
Newsgroups perl.perlfaq.workers,perl.documentation
Message-ID <270120031115382533%[email protected]>
In article <[email protected]>, Smylers
<[email protected]> wrote:

> _brian_d_foy wrote:
> 
> > +The localtime function returns the day of the week.  Without an
> > +argument localtime returns the current seconds since the epoch.
> >  
> > +    $day_of_year = (localtime)[7];

> But do epoch seconds need mentioning at all here?  Would this do:
> 
>   Without an argument localtime assumes the current time.

that sounds better.  i'll make the fix.

-- 
brian d foy, [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.