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

Re: [MacPerl] Munging dates



At 09.42 98.01.12, Jon Warbrick wrote:
>  Date::Parse from a group of routines by Graham Barr. Appears to
>  work OK, but can only handle American style dates (1/2/1998 is
>  2nd January rather than 1st February) which is a problem for me.

Why not munge the date yourself into an American style, and then pass it?

$x = '1/2/1998';
$x = join('/', @{[split(/\//, $x)]}[1,0,2]);
print $x;

--
Chris Nandor               pudge@pobox.com           http://pudge.net/
%PGPKey=('B76E72AD',[1024,'0824 090B CE73 CA10  1FF7 7F13 8180 B6B6'])
#==                    MacPerl: Power and Ease                     ==#
#==    Publishing Date: Early 1998. http://www.ptf.com/macperl/    ==#



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