LeapSecondsFacet Class |
Namespace: AGI.Foundation.Time
The LeapSecondsFacet type exposes the following members.
Name | Description | |
---|---|---|
![]() | LeapSecondsFacet() |
Initializes a new instance with the list of leap seconds that was available
when the library was released.
|
![]() | LeapSecondsFacet(IEnumerable<LeapSecond>) |
Initializes a new instance with the specified list of leap seconds.
|
![]() | LeapSecondsFacet(LeapSecondsFacet, CopyContext) | Initializes a new instance as a copy of an existing instance. |
Name | Description | |
---|---|---|
![]() | IsThreadSafe |
Gets a value indicating whether the methods on this instance are safe to call from
multiple threads simultaneously.
(Overrides CalculationContextFacet.IsThreadSafe.) |
![]() | LeapSecondList |
Gets the list of leap seconds currently being used by this class.
|
Name | Description | |
---|---|---|
![]() | Clone |
Clones this object using the specified context.
(Overrides CalculationContextFacet.Clone(CopyContext).) |
![]() | DoesDayHaveLeapSecond |
Determines if a given day contains a leap second.
|
![]() | Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() ![]() | GetFromContext |
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.
|
![]() | GetHashCode | Serves as the default hash function. (Inherited from Object.) |
![]() | GetTaiMinusUtc |
Returns the difference TAI - UTC as of the given date, in seconds.
|
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
![]() | UseInCurrentContext |
Adds this instance to the calculation context, making it the official source of leap seconds
in the context.
(Overrides CalculationContextFacet.UseInCurrentContext().) |