XLALTime.c File Reference

#include <math.h>
#include <lal/LALStdlib.h>
#include <lal/Date.h>
#include <lal/LALRCSID.h>

Include dependency graph for XLALTime.c:

Go to the source code of this file.

Defines

#define XLAL_BILLION_INT8   LAL_INT8_C( 1000000000 )
#define XLAL_BILLION_REAL8   1e9

Functions

 NRCSID (XLALTIMEC,"$Id: XLALTime.c,v 1.14 2008/04/29 22:03:33 kipp Exp $")
INT8 XLALGPSToINT8NS (const LIGOTimeGPS *epoch)
 Converts GPS time to nano seconds stored as an INT8.
LIGOTimeGPSXLALINT8NSToGPS (LIGOTimeGPS *epoch, INT8 ns)
 Converts nano seconds stored as an INT8 to GPS time.
LIGOTimeGPSXLALGPSSet (LIGOTimeGPS *epoch, INT4 gpssec, INT4 gpsnan)
 Sets GPS time given GPS integer seconds and residual nanoseconds.
LIGOTimeGPSXLALGPSSetREAL8 (LIGOTimeGPS *epoch, REAL8 t)
 Sets GPS time given GPS seconds as a REAL8.
REAL8 XLALGPSGetREAL8 (const LIGOTimeGPS *epoch)
 Returns GPS time as a REAL8.
LIGOTimeGPSXLALGPSAdd (LIGOTimeGPS *epoch, REAL8 dt)
 Adds dt to a GPS time.
LIGOTimeGPSXLALGPSAddGPS (LIGOTimeGPS *epoch, const LIGOTimeGPS *dt)
 Adds two GPS times.
REAL8 XLALGPSDiff (const LIGOTimeGPS *t1, const LIGOTimeGPS *t0)
 Difference between two GPS times.
int XLALGPSCmp (const LIGOTimeGPS *t0, const LIGOTimeGPS *t1)
 Compares two GPS times.
LIGOTimeGPSXLALGPSMultiply (LIGOTimeGPS *gps, REAL8 x)
 Multiply a GPS time by a REAL8.
LIGOTimeGPSXLALGPSDivide (LIGOTimeGPS *gps, REAL8 x)
 Divide a GPS time by a REAL8.


Define Documentation

#define XLAL_BILLION_INT8   LAL_INT8_C( 1000000000 )

Definition at line 31 of file XLALTime.c.

#define XLAL_BILLION_REAL8   1e9

Definition at line 32 of file XLALTime.c.


Function Documentation

NRCSID ( XLALTIMEC  ,
"$Id: XLALTime.  c,
v 1.14 2008/04/29 22:03:33 kipp Exp $"   
)

INT8 XLALGPSToINT8NS ( const LIGOTimeGPS epoch  ) 

Converts GPS time to nano seconds stored as an INT8.

Definition at line 41 of file XLALTime.c.

LIGOTimeGPS* XLALINT8NSToGPS ( LIGOTimeGPS epoch,
INT8  ns 
)

Converts nano seconds stored as an INT8 to GPS time.

Definition at line 51 of file XLALTime.c.

LIGOTimeGPS* XLALGPSSet ( LIGOTimeGPS epoch,
INT4  gpssec,
INT4  gpsnan 
)

Sets GPS time given GPS integer seconds and residual nanoseconds.

Definition at line 60 of file XLALTime.c.

LIGOTimeGPS* XLALGPSSetREAL8 ( LIGOTimeGPS epoch,
REAL8  t 
)

Sets GPS time given GPS seconds as a REAL8.

Definition at line 69 of file XLALTime.c.

REAL8 XLALGPSGetREAL8 ( const LIGOTimeGPS epoch  ) 

Returns GPS time as a REAL8.

Definition at line 76 of file XLALTime.c.

LIGOTimeGPS* XLALGPSAdd ( LIGOTimeGPS epoch,
REAL8  dt 
)

Adds dt to a GPS time.

Definition at line 88 of file XLALTime.c.

LIGOTimeGPS* XLALGPSAddGPS ( LIGOTimeGPS epoch,
const LIGOTimeGPS dt 
)

Adds two GPS times.

Definition at line 98 of file XLALTime.c.

REAL8 XLALGPSDiff ( const LIGOTimeGPS t1,
const LIGOTimeGPS t0 
)

Difference between two GPS times.

Definition at line 105 of file XLALTime.c.

int XLALGPSCmp ( const LIGOTimeGPS t0,
const LIGOTimeGPS t1 
)

Compares two GPS times.

Returns:

Definition at line 121 of file XLALTime.c.

LIGOTimeGPS* XLALGPSMultiply ( LIGOTimeGPS gps,
REAL8  x 
)

Multiply a GPS time by a REAL8.

Definition at line 137 of file XLALTime.c.

LIGOTimeGPS* XLALGPSDivide ( LIGOTimeGPS gps,
REAL8  x 
)

Divide a GPS time by a REAL8.

Definition at line 155 of file XLALTime.c.


Generated on Sun Sep 7 03:08:17 2008 for LAL by  doxygen 1.5.2