DateTimeZone MethodsNoda Time

[This is preliminary documentation and is subject to change.]

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 earlier of the alternatives, and "skipped" values are shifted forward by the duration of 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 methodStatic memberForOffset
Returns a fixed time zone with the given offset.
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 methodGetZoneIntervals(Interval, ZoneEqualityComparer Options)
Returns the zone intervals within the given interval, potentially coalescing some of the original intervals according to options.
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