JodaTime: how to get user friendly name DateTimeZone

For the method org.joda.time.getName(long instant)required long, I don’t understand what this “instant” is , and the documentation does not address the issue.

I have DateTimeZoneone that I generated from the timezone id, and all I want now is a readable name. Why should I convey meaning to him?

+3
source share
1 answer

instant - This is the time in milliseconds since 1970-01-01T00: 00: 00Z to get the name.

http://joda-time.sourceforge.net/apidocs/org/joda/time/DateTimeZone.html#getName%28long%29

0
source

Source: https://habr.com/ru/post/1792427/


All Articles