开发者

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜