开发者

javadoc for ISODateTimeFormat.dateTime()

开发者 https://www.devze.com 2022-12-12 05:15 出处:网络
The javadoc for org.joda开发者_JAVA百科.time.format.ISODateTimeFormat.dateTime() is: Returns a formatter that combines a full date and time, separated by a \'T\' (yyyy-MM-dd\'T\'HH:mm:ss.SSSZZ). The

The javadoc for org.joda开发者_JAVA百科.time.format.ISODateTimeFormat.dateTime() is:

Returns a formatter that combines a full date and time, separated by a 'T' (yyyy-MM-dd'T'HH:mm:ss.SSSZZ). The time zone offset is 'Z' for zero, and of the form '±HH:mm' for non-zero.

It is not clear to me where the word 'zero' is pointing at/to. Zero where or what? Is it me or is this sentence unclear?


the zero is referring to the time zone offset ZZ. ie. for a zero time zone offset (UTC), you would use the Z and write 2009-11-20T11:08:00.000Z; for +8 hours time zone offset, you would write 2009-11-20T11:08:00.000+08:00.

0

精彩评论

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