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

Re: [MacPerl] date functions



dfbeck@sandia.gov
Subj:	Re: [MacPerl] date functions

David Beck writes:


>I have several Perl scripts written for a unix platform that makes calls to
>'date' using various +format options. Does anyone have a module or code
>fragment suitable for use in MacPerl that could handle this call with
>suitable changes to the original code (rather than a complete rewrite using
>time(), etc.)?

There are dozens.  Check out:

 http://www.perl.com/CPAN/modules/by-category/06_Data_Type_Utilities/Time/

By the way on all platforms that support perl 5* the easiest way 
to do X-platform timestamps is:

   print(scalar(localtime()));

*allegedly on 8086 based DOS machine only perl 4.019 runs well - but a 
80286 or higher DOS box can run the djgpp port of perl 5.004_04 pretty well.


Peter Prymmer


***** Want to unsubscribe from this list?
***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch