Subject | Re: [ib-support] Re: [IBO] Date Question |
---|---|
Author | Nando Dessena |
Post date | 2001-08-10T09:41:20Z |
Jason,
Another is calculate if the year is a leap year in advance and correct
the day before encoding the date.
I am used to avoid using exceptions to cater for foreseeable cases,
because of both style and performance (in Delphi).
Don't know if the performance hit of WHEN in InterBase SP code is
significant, perhaps not much.
Ciao
--
____
_/\/ando
> No, is all he needs to do is catch the exception on the case where he is onthat's an approach.
> a leap year day and the next year doesn't have an equivalent month/day
> combination. In which case he should just subtract one from the day and then
> it will be fine.
Another is calculate if the year is a leap year in advance and correct
the day before encoding the date.
I am used to avoid using exceptions to cater for foreseeable cases,
because of both style and performance (in Delphi).
Don't know if the performance hit of WHEN in InterBase SP code is
significant, perhaps not much.
Ciao
--
____
_/\/ando