1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/* $Source$
$Revision$
$Date$
$Author$ */
#ifndef DADA_TMUTIL_H
#define DADA_TMUTIL_H
//#ifndef _XOPEN_SOURCE
//#define _XOPEN_SOURCE /* glibc2 needs this for strptime */
//#endif
//#include <time.h>
#ifdef __cplusplus
extern "C" {
#endif
/*! parse a string into struct tm; return equivalent time_t */
time_t str2tm (struct tm* time, const char* str);
/*! parse a string and return equivalent time_t */
time_t str2time (const char* str);
/*! parse a UTC string and return equivalent time_t */
time_t str2utctime (const char* str);
/*! parse a UTC time string into struct tm; return equivalent time_t */
time_t str2utctm (struct tm* time, const char* str);
/*! convert a UTC MJD time into the struct tm */
time_t mjd2utctm (double mjd);
void float_sleep (float seconds);
#ifdef __cplusplus
}
#endif
#endif