[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] reverse localtime



On Thu, May 25, 2000 at 04:27:24PM -0400, Eric Rainey wrote:
> >
> >
> >Yes, Time::Local, which is distributed with Perl.  It provides the
> >functions timelocal() and timegm().
> >
> >You can find it in your MacPerl installation's lib folder, and read its
> >documentation with Shuck.
> 
> 
> Well, it seems that timelocal() requires all of the arguments, when 
> all I have is day of the year.  And timelocal doesn't even seem to 
> support day of year or daylight savings (according to the pod).

Oh, I see...  If you just have the day of the year, how do you know whether
it's during a leap year or not?


> It just seems that there's a function out there somewhere...but I 
> reckon I'll just have to think out the math (30 days hath 
> Semptember...)

I think there might a JulianDay module or something like that which could
do what you want...  You could search CPAN for 'Julian'.

Ronald

# ===== Want to unsubscribe from this list?
# ===== Send mail with body "unsubscribe" to macperl-request@macperl.org