Skip to main content

[JSR-354] Validity Dates for CurrencyValidity

  • From: Anatole Tresch <atsticks@...>
  • To: Jsr 354 JavaMoney Public Mailinglist <jcurrency_mail@...>
  • Subject: [JSR-354] Validity Dates for CurrencyValidity
  • Date: Thu, 8 Aug 2013 07:35:04 +0200

Dear all

when trying to implement regional validity of currencies in the RI I
encounter a possible issue with our currency validity model, I think we
have to discuss. The point is that ISO, as well as CLDC sources all model
the currencies validity in form of a local date (in the sense of 310), so
without any timezone information. In our model, we currently have the UTC
from/to timestamps, which for all querying APIs may match well, and IMO
also make sense for exchange rates. But in case of the validity records for
currencies, it makes it difficult to implement the SPI, since I have to
convert each local date for each region/territory, where a currency is
valid, to an UTC timestamp. In case of big countries with multiple
timezones this even leads to potential invalid data, since the validity
record is not constraint to a specified timezone. Additionally I think that
for most use cases local dates for currency validity is sufficient and also
feel more natural, so using local dates would match the commonly used way
to model this, and with UTC we add here unnecessary complexity.

As a consequence this leads to another point:* how we should model local
dates without 310*...

So, I will stop here, and just say the discussion is open !

Regards,
Anatole

-- 
*Anatole Tresch*
Java Lead Engineer, JSR Spec Lead
Gl√§rnischweg 10
CH - 8620 Wetzikon

*Switzerland, Europe Zurich, GMT+1*
*Twitter:  @atsticks*
*Blogs: **http://javaremarkables.blogspot.ch/*
*Google: atsticks
Phone   +41-44 334 40 87
Mobile  +41-76 344 62 79*


[JSR-354] Validity Dates for CurrencyValidity

Anatole Tresch 08/08/2013

[JSR-354] Re: Validity Dates for CurrencyValidity

magesh.kasthuri 08/08/2013

[JSR-354] Re: Validity Dates for CurrencyValidity

Greg Bakos 08/08/2013

[JSR-354] Re: Validity Dates for CurrencyValidity

Anatole Tresch 08/08/2013

[JSR-354] Re: Validity Dates for CurrencyValidity

Stephen Colebourne 08/08/2013

[JSR-354] Re: Validity Dates for CurrencyValidity

Werner Keil 08/08/2013

[JSR-354] Re: Validity Dates for CurrencyValidity

Tresch Anatole (KGVA 55) 08/08/2013

[JSR-354] Re: Validity Dates for CurrencyValidity

Werner Keil 08/08/2013

[JSR-354] Re: Validity Dates for CurrencyValidity

Werner Keil 08/08/2013

[JSR-354] Re: Validity Dates for CurrencyValidity

Tresch Anatole (KGVA 55) 08/08/2013

[JSR-354] Re: Validity Dates for CurrencyValidity

Werner Keil 08/08/2013
 
 
Close
loading
Please Confirm
Close