Click or drag to resize

LeapSecondFileDownloadLeapSeconds Method

Downloads the latest leap second file (LeapSecond.dat) from an AGI server. This method connects via HTTPS to

Namespace:  AGI.Foundation.Time
Assembly:  AGI.Foundation.Core (in AGI.Foundation.Core.dll) Version: 24.1.418.0 (24.1.418.0)
public static LeapSecondsFacet DownloadLeapSeconds()

Return Value

Type: LeapSecondsFacet
A new LeapSecondsFacet initialized with the contents of the file.
InvalidDataException Thrown when there is an error parsing the leap second data.
DataUnavailableExceptionThrown when the data cannot be retrieved from the server.
Note that an internet connection is required to use this method successfully.
See Also