Click or drag to resize

LeapSecondFileDownloadLeapSeconds Method (IWebProxy)

Downloads the latest leap second file (LeapSecond.dat) from an Analytical Graphics Inc. server. This method connects via FTP to STK11-Online-Ops.agi.com.

Namespace:  AGI.Foundation.Time
Assembly:  AGI.Foundation.Core (in AGI.Foundation.Core.dll) Version: 20.2.404.0 (20.2.404.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