[JSR-354] Re: Validity Dates for CurrencyValidity
- From: Greg Bakos <greg@...>
- To: jcurrency_mail@...
- Subject: [JSR-354] Re: Validity Dates for CurrencyValidity
- Date: Thu, 8 Aug 2013 07:04:57 +0100
I've tried to find it in JSR-354 specification PDF and I didn't find it.
I'd like to understand what is it exactly. Where can I find a proper
description about CurrencyValidity? I suppose the specification PDF would
be the best place for it.
On Thu, Aug 8, 2013 at 6:35 AM, Anatole Tresch <atsticks@...> wrote:
> 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 !
> *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*