Re: DATE feature
Posted in 1994
In article <3car62$fg7@fitzherbert.pavilion.co.uk>, Wayne Allison <bodewell@pavilion.co.uk> wrote: > Can anyone confirm that when a DATE for a Leap day e.g 29/0feb has > years added to it the result is garbage, but if the addition of years > is multiples of 4 then everything is OK. What's your definition of "garbage"? If you add 2 years to 29 Feb 1993, you'll get 29 Feb 1995. But there isn't a 29th Feb in 1995, so the value is Unknown (aka NULL, aka 31 Dec 1899). Same thing happens if you add 1 month to 31 January. 31 February isn't valid, so Informix doesn't know what to do. It's up to YOU how you want to handle such events. :-( Have a happy day, Kerry S --------------------------------------,------------------------------------- Kerry Sainsbury, kerry@kcbbs.gen.nz | THE INFORMIX FAQ Quanta Systems, Auckland, New Zealand | kcbbs.gen.nz:/informix/* | mathcs.emory.edu:/pub/informix/faq/* +64 9 377-4473 (work) 276-5546 (home) | quasar.ucar.edu:/? --------------------------------------,------------------------------------- Kerry Sainsbury, kerry@kcbbs.gen.nz | THE INFORMIX FAQ Quanta Systems, Auckland, New Zealand | kcbbs.gen.nz:/informix/* | mathcs.emory.edu:/pub/informix/faq/* +64 9 377-4473 (work) 276-5546 (home) | quasar.ucar.edu:/?