DateTimeZone MembersNoda Time

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

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 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
Properties

  NameDescription
Public propertyId
Get the provider's ID for the time zone.
Public propertyMaxOffset
Gets the greatest (most positive) offset within this time zone, over all time.
Public propertyMinOffset
Gets 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