DateTimeZone MethodsNoda Time
The DateTimeZone type exposes the following members.
Methods

  NameDescription
Public methodAtLeniently
Maps the given LocalDateTime to the corresponding ZonedDateTime in a lenient manner: ambiguous values map to the later of the alternatives, and "skipped" values map to the start of the zone interval after the "gap".
Public methodAtStartOfDay
Returns the earliest valid ZonedDateTime with the given local date.
Public methodAtStrictly
Maps the given LocalDateTime to the corresponding ZonedDateTime, if and only if that mapping is unambiguous in this time zone. Otherwise, SkippedTimeException or AmbiguousTimeException is thrown, depending on whether the mapping is ambiguous or the local date/time is skipped entirely.
Public methodEquals(Object)
Determines whether the specified OnlineObject is equal to this instance.
(Overrides OnlineObject Equals(Object).)
Public methodEquals(DateTimeZone)
Determines whether the specified DateTimeZone is equal to this instance.
Protected methodEqualsImpl
Implements equality in derived classes.
Public methodStatic memberForOffset
Returns a fixed time zone with the given offset.
Public methodGetHashCode
Returns a hash code for this instance.
(Overrides OnlineObject GetHashCode .)
Public methodGetUtcOffset
Returns the offset from UTC, where a positive duration indicates that local time is later than UTC. In other words, local time = UTC + offset.
Public methodGetZoneInterval
Gets the zone interval for the given instant; the range of time around the instant in which the same Offset applies (with the same split between standard time and daylight saving time, and with the same offset).
Public methodGetZoneIntervals(Interval)
Returns all the zone intervals which occur for any instant in the given interval.
Public methodGetZoneIntervals(Instant, Instant)
Returns all the zone intervals which occur for any instant in the interval [start, end).
Public methodMapLocal
Returns complete information about how the given LocalDateTime is mapped in this time zone.
Public methodResolveLocal
Maps the given LocalDateTime to the corresponding ZonedDateTime, following the given ZoneLocalMappingResolver to handle ambiguity and skipped times.
Public methodToString
Returns the ID of this time zone.
(Overrides OnlineObject ToString .)
Back to Top
See Also