bug in datestr.m with yyyy and dd

Benjamin Lindner lindnerben at gmx.net
Fri Jan 30 11:46:44 CST 2009


Hello,

in the current development sources, I believe there is a bug in 
datestr.m with regard to the format strings used.

I see that a 4-digit year (YYYY) is changed to "%C%y" and the 2-digit 
day to "%e".
Consulting my C Programming Language Reference Manual, strftime's format 
strings would be

   %Y  Year with century
   %d  Day of the month (01-31)

datestr's test currently fails under mingw32, with the attached 
changeset, all tests succeed.

benjamin
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: datestr-YYYY-dd.patch
Url: https://www-old.cae.wisc.edu/pipermail/bug-octave/attachments/20090130/4c97c9f7/attachment.ksh 


More information about the Bug-octave mailing list