views:

96

answers:

1

The javadoc for org.joda.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?

+1  A: 

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.

ax