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

Re: Problem in Date::Manip.pm



hi debian,
Thank u for u replay.
actualy i expect the date from 1st century.........not 21st century ie 
year 0005
month 01
date 01
it make problem....so kindly see this


similarly the following date also make problem (format is CCYYMMDD)
1.00090101(year 0009)
2.00100101(year 0010)

thank you
regards 
saravanakarthik



On 8/30/05, Brendan O'Dea <bod@debian.org> wrote:
> On Sat, Aug 27, 2005 at 03:40:48PM +0530, saravanakarthik m wrote:
> >when i was using the perl Date::Manip.pm ,i called 
> >$outdate=&UnixDate($indate,"%Y/%m/%d"); 
> >for the following indates 
> >00050101
> >00050102 
> >... 
> >the following error occur 
> >ERROR: Invalid year (4) 
> >      Date::Manip::Date_FixYear(4) called at Date/Manip.pm line 3176 
> >      Date::Manip::Date_WeekOfYear(12, 25, 4, 1) called at
> >Date/Manip.pm line 1738
> >      Date::Manip::UnixDate(00050101, '%Y/%m/%d') called at 1.pl line 17 
> >
> >how can i solve this problem. 
> 
> Perhaps you should start by defining what it is that you're trying to
> achieve.
> 
> What is $indate supposed to be?  Did you expect the output to be
> 2005/01/01?  0005/01/01?  Something else?
> 
> --bod
>



Reply to: