Routines (alphabetical) > Routines: C > CDF Routines > CDF_LEAPSECONDS_INFO

# CDF_LEAPSECONDS_INFO

The CDF_LEAPSECONDS_INFO function returns a structure containing information about the leap seconds used by CDF.

## Example

info = CDF_LEAPSECONDS_INFO()

help, info, /struct

print, info

## Syntax

Result = CDF_LEAPSECONDS_INFO( )

## Return Value

The returned structure has the form:

{ USE_FILE: 1, CDF_LEAPSECONDSTABLE:"...", $

LASTUPDATED:LONARR(...), LEAPSECONDS: DOUBLEARR(...)}

Structure Tag | Description
--- | ---
USE_FILE | 0 - The leap seconds are based on the hard-coded table in the CDF library, which may not have the latest leap second(s) if the library is not up-to-date. 1 - The leap seconds are read from a file.
CDF_LEAPSECONDSTABLE | This field contains the value of the CDF_LEAPSECONDSTABLE environment variable, if it is defined. Its value should be the file name of the leap seconds table. Data contents for the leap seconds should be properly formatted to be valid for use.
LASTUPDATED | This field is an array of integers that shows the last date, in year, month and day, that the leap seconds table is updated, which can show whether the table is up-to-date.
LEAPSECONDS | This field contains the contents of the leap seconds table that is used by CDF library.

## Arguments

None

## Keywords

None

## Version History

CDF 3.4.0 | Introduced