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

Re: [MacPerl] reverse localtime



On Thu, May 25, 2000 at 02:54:09PM -0400, Eric Rainey wrote:
> Hi:
> 
> I have a value ($yday) from a localtime function.  Is there some 
> module which includes a function that'll do this for me (say, stick 
> in $yday and $year and get back a time, which can be stuck back into 
> localtime to get $month, etc) and which is ported to macperl?  If not 
> even ported to macperl, is there one that does this period?

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.

Ronald

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