inZone method
Returns this value in ths specified time zone. This method does not expect the offset in the zone to be the same as for the current value; it simply converts this value into an Instant and finds the ZonedDateTime for that instant in the specified zone.
zone
: The time zone of the new value.
Returns: The instant represented by this value, in the specified time zone.
Implementation
ZonedDateTime inZone(DateTimeZone zone) {
Preconditions.checkNotNull(zone, 'zone');
return toInstant().inZone(zone);
}