Click or drag to resize

LeapSecondsFacet Class

Manages Leap Seconds.
Inheritance Hierarchy

Namespace:  AGI.Foundation.Time
Assembly:  AGI.Foundation.Core (in AGI.Foundation.Core.dll) Version: 23.2.417.0 (23.2.417.0)
public class LeapSecondsFacet : CalculationContextFacet

The LeapSecondsFacet type exposes the following members.

Public methodLeapSecondsFacet
Initializes a new instance with the list of leap seconds that was available when the library was released.
Public methodLeapSecondsFacet(IEnumerableLeapSecond)
Initializes a new instance with the specified list of leap seconds.
Protected methodLeapSecondsFacet(LeapSecondsFacet, CopyContext)
Initializes a new instance as a copy of an existing instance.
Public propertyIsThreadSafe
Gets a value indicating whether the methods on this instance are safe to call from multiple threads simultaneously.
(Overrides CalculationContextFacetIsThreadSafe.)
Public propertyLeapSecondList
Gets the list of leap seconds currently being used by this class.
Public methodClone
Clones this object using the specified context.
(Overrides CalculationContextFacetClone(CopyContext).)
Public methodDoesDayHaveLeapSecond
Determines if a given day contains a leap second.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodStatic memberGetFromContext
Gets the LeapSecondsFacet instance from the calculation context. If the context does not contain leap second data, a default instance is created containing the leap seconds that were known when the library was released and it is added to the calculation context.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetTaiMinusUtc
Returns the difference TAI - UTC as of the given date, in seconds.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodUseInCurrentContext
Adds this instance to the calculation context, making it the official source of leap seconds in the context.
(Overrides CalculationContextFacetUseInCurrentContext.)
See Also