Posted: May 23, 2013 07:47 by Anatole
Mark Davis (Google) wrote:
What we provide in ICU is a way to iterate through, for any currency, the countries where it is (or was) a valid currency, and in those countries, the time period(s) where it was valid (these are "period(s)", since they may be disjoint). With that data being present, there can also be some convenience methods, like:
java.lang.Long getValidFrom(String countryCode); // earliest point at which valid in that country java.lang.Long getValidUntil(String countryCode); // latest point at which valid in that country
although the Java doc should acknowledge that that doesn't guarantee that the period is contiguous.
So there are different types of validities at the same time, but with different UTC timstamps like
These should be reflected in the current API and may also include separating validity information from the CurrencyUnit interface. This topic should discuss about how to achieve this best.