• Post Reply Bookmark Topic Watch Topic
  • New Topic

Setting before ERA dates in ICU4J  RSS feed

 
john roney
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
I'm using ICU4J calendar library for converting dates between calendar systems (Gregorian, Japanese, Chinese, Jalali, Islamic,...).
I use it with normal dates (after ERA) like this :

Is it possible to set before ERA dates (e.g. year 500 BC)? How?
 
Paul Clapham
Sheriff
Posts: 22719
43
Eclipse IDE Firefox Browser MySQL Database
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't see why not. From a quick look at the API documentation for GregorianCalendar it looks like you would start with this:



However I haven't tested that.
 
john roney
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Paul Clapham wrote:I don't see why not. From a quick look at the API documentation for GregorianCalendar it looks like you would start with this:



However I haven't tested that.

It worked.
Thanks
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!