[This is preliminary documentation and is subject to change.]
Time zone with a single transition between two offsets. This provides a simple way to test behaviour across a transition.

C# | Visual Basic | Visual C++ |
public sealed class SingleTransitionDateTimeZone : DateTimeZone
Public NotInheritable Class SingleTransitionDateTimeZone _ Inherits DateTimeZone
public ref class SingleTransitionDateTimeZone sealed : public DateTimeZone

All Members | Constructors | Methods | Properties | ||
Icon | Member | Description |
---|---|---|
![]() | SingleTransitionDateTimeZone(Instant, Int32, Int32) |
Creates a zone with a single transition between two offsets.
|
![]() | SingleTransitionDateTimeZone(Instant, Offset, Offset) |
Creates a zone with a single transition between two offsets.
|
![]() | SingleTransitionDateTimeZone(Instant, Offset, Offset, String) |
Creates a zone with a single transition between two offsets.
|
![]() | AtLeniently(LocalDateTime) |
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".
(Inherited from DateTimeZone.) |
![]() | AtStartOfDay(LocalDate) |
Returns the earliest valid ZonedDateTime with the given local date.
(Inherited from DateTimeZone.) |
![]() | AtStrictly(LocalDateTime) |
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.
(Inherited from DateTimeZone.) |
![]() | EarlyInterval |
The ZoneInterval for the period before the transition, starting at the beginning of time.
|
![]() | Equals(Object) |
Determines whether the specified Object is equal to this instance.
(Inherited from DateTimeZone.) |
![]() | Equals(DateTimeZone) |
Determines whether the specified DateTimeZone is equal to this instance.
(Inherited from DateTimeZone.) |
![]() | EqualsImpl(DateTimeZone) |
Implements equality in derived classes.
(Overrides DateTimeZone.EqualsImpl(DateTimeZone).) |
![]() | GetHashCode()()()() |
Returns a hash code for this instance.
(Overrides DateTimeZone.GetHashCode()()()().) |
![]() | GetUtcOffset(Instant) |
Returns the offset from UTC, where a positive duration indicates that local time is
later than UTC. In other words, local time = UTC + offset.
(Inherited from DateTimeZone.) |
![]() | GetZoneInterval(Instant) |
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).
(Overrides DateTimeZone.GetZoneInterval(Instant).) |
![]() | GetZoneIntervals(Instant, Instant) |
Returns all the zone intervals which occur for any instant in the interval [start, end).
(Inherited from DateTimeZone.) |
![]() | GetZoneIntervals(Interval) |
Returns all the zone intervals which occur for any instant in the given interval.
(Inherited from DateTimeZone.) |
![]() | Id |
The provider's ID for the time zone.
(Inherited from DateTimeZone.) |
![]() | LateInterval |
The ZoneInterval for the period after the transition, ending at the end of time.
|
![]() | MapLocal(LocalDateTime) |
Returns complete information about how the given LocalDateTime is mapped in this time zone.
(Inherited from DateTimeZone.) |
![]() | MaxOffset |
Returns the greatest (most positive) offset within this time zone, over all time.
(Inherited from DateTimeZone.) |
![]() | MinOffset |
Returns the least (most negative) offset within this time zone, over all time.
(Inherited from DateTimeZone.) |
![]() | ResolveLocal(LocalDateTime, ZoneLocalMappingResolver) |
Maps the given LocalDateTime to the corresponding ZonedDateTime, following
the given ZoneLocalMappingResolver to handle ambiguity and skipped times.
(Inherited from DateTimeZone.) |
![]() | ToString()()()() |
Returns the ID of this time zone.
(Inherited from DateTimeZone.) |
![]() | Transition |
The transition instant of the zone.
|

Object | ||
![]() | DateTimeZone | |
![]() | SingleTransitionDateTimeZone |
Assembly: NodaTime.Testing (Module: NodaTime.Testing.dll) Version: 1.2.0.0 (1.2.0)