When to switch the era, which is a hot topic right now "January 1, 2019" As a result of testing with
The start time in "UTC" on that day is in ISO8601 format.
2019-01-01T00:00:00+00:00
So, in epoch time (milliseconds),
```1546300800000```
have become.
This number is used for JRE
#### **`/lib/calendars.properties`**
```properties
When I set it to, I was able to switch successfully. It is a story.
* I referred to the following article.
Support the new era in Java
http://qiita.com/nishim/items/7d55324b3da315257be5
## I wondered if I would set the delimiter time of Japan time to property.
9 hours time difference
#### **`2019-01-01T00:00:00+09:00 → 1546268400000`**
I tried to set From the first day of the next era, it was "~~ January 1, 2nd year", so I almost died.
Please refer to it in an environment where Oracle update cannot be applied.
Below. https://github.com/masa-kunikata/japanese_eras_java_property
Recommended Posts