Noda Time
BclDateTimeZone Class
NamespacesNodaTime.TimeZonesBclDateTimeZone

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

Representation of a time zone converted from a TimeZoneInfo from the Base Class Library.
Declaration Syntax
C#Visual BasicVisual C++
public sealed class BclDateTimeZone : DateTimeZone
Public NotInheritable Class BclDateTimeZone _
	Inherits DateTimeZone
public ref class BclDateTimeZone sealed : public DateTimeZone
Members
All MembersMethodsProperties



IconMemberDescription
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.)
DisplayName
Returns the display name associated with the time zone, as provided by the Base Class Library.

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).)
ForSystemDefault()()()()
Returns a time zone converted from the BCL representation of the system local time zone.

FromTimeZoneInfo(TimeZoneInfo)
Creates a new BclDateTimeZone from a TimeZoneInfo from the Base Class Library.

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.)
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.)
OriginalZone
Returns the original TimeZoneInfo from which this was created.

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.)
Remarks
Note that although this class implements IEquatable<(Of <(<'T>)>)> by virtue of extending DateTimeZone, the implementation here will always throw NotImplementedException when asked to compare two different BclDateTimeZone instances.
Thread Safety
This type is immutable reference type. See the thread safety section of the user guide for more information.
Inheritance Hierarchy
Object
DateTimeZone
 BclDateTimeZone

Assembly: NodaTime (Module: NodaTime.dll) Version: 1.2.0.0 (1.2.0)