OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
leapsecond.c File Reference
#include <timeutils.h>
#include <stdlib.h>
#include <stdio.h>
Include dependency graph for leapsecond.c:

Go to the source code of this file.

Macros

#define LEAPSEC_DAT   "leapsec.dat"
 
#define JD_1993   2448988.5
 
#define SECONDS_IN_DAY   86400
 
#define MAX_LEAP_SECONDS   32
 
#define UNIX_TIME_AT_1993   725846400.0
 

Functions

void init_leapsecond_arrays ()
 
int leapseconds_since_1993 (double tai93time)
 
int leapseconds_since_1993_unix (double unixtime)
 

Macro Definition Documentation

◆ JD_1993

#define JD_1993   2448988.5

Definition at line 2 of file leapsecond.c.

◆ LEAPSEC_DAT

#define LEAPSEC_DAT   "leapsec.dat"

Definition at line 1 of file leapsecond.c.

◆ MAX_LEAP_SECONDS

#define MAX_LEAP_SECONDS   32

Definition at line 4 of file leapsecond.c.

◆ SECONDS_IN_DAY

#define SECONDS_IN_DAY   86400

Definition at line 3 of file leapsecond.c.

◆ UNIX_TIME_AT_1993

#define UNIX_TIME_AT_1993   725846400.0

Definition at line 5 of file leapsecond.c.

Function Documentation

◆ init_leapsecond_arrays()

void init_leapsecond_arrays ( )

Definition at line 14 of file leapsecond.c.

◆ leapseconds_since_1993()

int leapseconds_since_1993 ( double  tai93time)

Definition at line 58 of file leapsecond.c.

◆ leapseconds_since_1993_unix()

int leapseconds_since_1993_unix ( double  unixtime)

Definition at line 71 of file leapsecond.c.