LALApps
10.1.0.1-eeff03c
LALSuite
LAL
LALFrame
LALMetaIO
LALSimulation
LALBurst
LALInspiral
LALInference
LALPulsar
LALApps
gpstime.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2007 Jolien Creighton
3
*
4
* This program is free software; you can redistribute it and/or modify
5
* it under the terms of the GNU General Public License as published by
6
* the Free Software Foundation; either version 2 of the License, or
7
* (at your option) any later version.
8
*
9
* This program is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
* GNU General Public License for more details.
13
*
14
* You should have received a copy of the GNU General Public License
15
* along with with program; see the file COPYING. If not, write to the
16
* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
17
* MA 02110-1301 USA
18
*/
19
20
#ifndef GPSTIME_H
21
#define GPSTIME_H
22
23
/*
24
*
25
* Routines to convert times between LIGOTimeGPS epochs, INT8 nanoseconds,
26
* and REAL8 seconds.
27
*
28
*/
29
30
#include <lal/LALDatatypes.h>
31
32
/* convert from LIGOTimeGPS epoch to INT8 nanoseconds */
33
INT8
epoch_to_ns
(
LIGOTimeGPS
*epoch );
34
35
/* convert from INT8 nanoseconds to LIGOTimeGPS epoch */
36
LIGOTimeGPS
*
ns_to_epoch
(
LIGOTimeGPS
*epoch,
INT8
ns );
37
38
/* convert from REAL8 seconds to INT8 nanoseconds */
39
INT8
sec_to_ns
(
REAL8
sec );
40
41
/* convert from INT8 nanoseconds to REAL8 seconds */
42
REAL8
ns_to_sec
(
INT8
ns );
43
44
#endif
/* GPSTIME_H */
sec_to_ns
INT8 sec_to_ns(REAL8 sec)
Definition:
gpstime.c:57
ns_to_epoch
LIGOTimeGPS * ns_to_epoch(LIGOTimeGPS *epoch, INT8 ns)
Definition:
gpstime.c:48
ns_to_sec
REAL8 ns_to_sec(INT8 ns)
Definition:
gpstime.c:66
epoch_to_ns
INT8 epoch_to_ns(LIGOTimeGPS *epoch)
Definition:
gpstime.c:38
REAL8
double REAL8
INT8
int64_t INT8
LIGOTimeGPS
src
ring
gpstime.h
Generated on Mon Dec 15 2025 05:33:37 for LALApps by
1.9.4