Subject | RE: [ib-support] Date Format in IB |
---|---|
Author | Ann W. Harrison |
Post date | 2002-10-30T22:26:58Z |
At 08:53 AM 10/31/2002 +1100, Alan McDonald wrote:
the interface. Dates can be converted to floating
point - that's how they're indexed, as it happens.
I don't know whether it was InterBase or Delphi that
did the conversion, but the InterBase internal format
is two longwords.
conversion routines. They use the Unix/C tm structure
which is uses Jan 1 1900 as its base date. It's a
wonderful thing. Doesn't recognize anything smaller
than a second. Months are zero based. Days are one
based. So year 0, month 0, day 1 is 1 Jan 1900.
Year 0, month 0, day 0 must be one day less, so...
31 Dec 1899.
Regards,
Ann
www.ibphoenix.com
We have answers.
>Ann,No, but what we're seeing are conversions done in
>Has this changed sometime?
the interface. Dates can be converted to floating
point - that's how they're indexed, as it happens.
I don't know whether it was InterBase or Delphi that
did the conversion, but the InterBase internal format
is two longwords.
>Also I used to see "zero" dates come up in reports as 31 Dec 1899 - when didAh. Whatever you were using went through the date
>this starting point change?
conversion routines. They use the Unix/C tm structure
which is uses Jan 1 1900 as its base date. It's a
wonderful thing. Doesn't recognize anything smaller
than a second. Months are zero based. Days are one
based. So year 0, month 0, day 1 is 1 Jan 1900.
Year 0, month 0, day 0 must be one day less, so...
31 Dec 1899.
Regards,
Ann
www.ibphoenix.com
We have answers.