Re: Extended-Range Time Type
- From: David R Tribble <david@xxxxxxxxxxx>
- Date: Wed, 30 Jan 2008 14:30:33 -0800 (PST)
David R Tribble wrote:
I've assumed that a given date within a given calender type is
unambiguous, so that differences between two dates within the
same calendric system can be calculated exactly, i.e., as if they
were first converted into longtime_t values. If there are calendric
systems where this is not the case, then the implementation will
have to make allowances for it and hopefully do the most logical
or expected thing.
Hartmut Brandt wrote:
I once worked as a programmer for one of the big german banks. I asked one
of the finance guys how many days I would have to pay for a credit that I
took on 28th of february and give back at the 1st of march. He looked very
puzzled at me (obviously nobody of them had every thought of this) and
after some days he came up with an answer that this would be something
between 1 and 4 days (they use 360 days per year). This should be fun to
standardize... :-)
Actually, I expect very little in the way of support for regional
business rules, at least from the ISO C library. It would not
surprise me to learn that there are variances even between
US banks and financial companies about what days they use
and don't use, not to mention all of the other regions.
But we might get lucky and someone will create acceptable
open source libraries to provide calendar types for the most
commonly used "standard" business calendars.
I've simply tried to provide a reasonable framework for such
things to exist in.
-drt
.
- References:
- Extended-Range Time Type
- From: Mosfet
- Re: Extended-Range Time Type
- From: cr88192
- Re: Extended-Range Time Type
- From: David R Tribble
- Re: Extended-Range Time Type
- From: cr88192
- Re: Extended-Range Time Type
- From: David R Tribble
- Re: Extended-Range Time Type
- From: Antoine Leca
- Re: Extended-Range Time Type
- From: David R Tribble
- Re: Extended-Range Time Type
- From: Hartmut Brandt
- Extended-Range Time Type
- Prev by Date: Re: Conformance
- Next by Date: Re: Conformance
- Previous by thread: Re: Extended-Range Time Type
- Next by thread: Re: Extended-Range Time Type
- Index(es):
Relevant Pages
|