DateTimeZone MembersNoda Time

The DateTimeZone type exposes the following members.
Constructors

  NameDescription
Protected methodDateTimeZone
Initializes a new instance of the DateTimeZone class.
Back to Top
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
Properties

  NameDescription
Public propertyId
The provider's ID for the time zone.
Public propertyMaxOffset
Returns the greatest (most positive) offset within this time zone, over all time.
Public propertyMinOffset
Returns the least (most negative) offset within this time zone, over all time.
Public propertyStatic memberUtc
Gets the UTC (Coordinated Universal Time) time zone. This is a single instance which is not provider-specific; it is guaranteed to have the ID "UTC", but may or may not be the instance returned by e.g. DateTimeZoneProviders.Tzdb["UTC"].
Back to Top
See Also