简体   繁体   中英

JodaTime: How do I get the human-readable name of a DateTimeZone

The method org.joda.time.getName(long instant) requires a long , I don't understand what this "instant" is and the documentation doesn't address the question.

I have a DateTimeZone that I generated from a timezone ID, and all I want now is the readable name. Why do I have to pass it a value?

The instant is the time in milliseconds from 1970-01-01T00:00:00Z to get the name for.

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM