Click or drag to resize

LeapSecondFileDownloadLeapSeconds Method (IWebProxy)

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

Namespace:  AGI.Foundation.Time
Assembly:  AGI.Foundation.Core (in AGI.Foundation.Core.dll) Version: 24.2.419.0 (24.2.419.0)
Syntax
public static LeapSecondsFacet DownloadLeapSeconds(
	IWebProxy proxy
)

Parameters

proxy
Type: System.NetIWebProxy
Proxy to use when connecting. Optional, default is null.

Return Value

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