LeapSecondFileReadLeapSeconds Method (String) |
Reads an STK leap second file and returns a new
LeapSecondsFacet instance
initialized with the contents of the file.
Namespace:
AGI.Foundation.Time
Assembly:
AGI.Foundation.Core (in AGI.Foundation.Core.dll) Version: 25.2.423.0 (25.2.423.0)
Syntaxpublic static LeapSecondsFacet ReadLeapSeconds(
string fileName
)
Public Shared Function ReadLeapSeconds (
fileName As String
) As LeapSecondsFacet
public:
static LeapSecondsFacet^ ReadLeapSeconds(
String^ fileName
)
static member ReadLeapSeconds :
fileName : string -> LeapSecondsFacet
Parameters
- fileName
- Type: SystemString
The name of the file from which to read.
Return Value
Type:
LeapSecondsFacetA new
LeapSecondsFacet initialized with the contents of the file.
Exceptions| Exception | Condition |
|---|
| ArgumentNullException |
Thrown when fileName is .
|
| InvalidDataException |
Thrown when there is an error parsing the leap second data.
|
See Also