32 #ifdef HOST_IS_LSB_FIRST
35 #define swapBufIfHostLE(p, s, n) _swapBufInPlace(p, s, n)
38 #define swapFloatIfHostLE(x) swapFloat(x)
42 #define swapBufIfHostLE(p, s, n)
44 #define swapFloatIfHostLE(x) x
61 int *year,
int *month,
int *mday,
int *yday,
62 int *hour,
int *minute,
double *second);
88 int *year,
int *month,
int *mday,
int *yday,
int *hour,
int *minute,
97 void emitt (
double tt,
int *year,
int *month,
int *mday,
int *yday,
98 int *hour,
int *minute,
double *second);
104 void tnorm (
int *year,
int *month,
int *mday,
int *yday,
105 int *hour,
int *minute,
double *second);
120 void yrdy1958(
int* pYear,
int* pDoy,
int days_since_1958);
140 void ms2hms(
int* pHour,
int* pMin,
float* pSec,
double ms_of_day);
143 void fail (
const char *message);
152 int getpkt(
char *ph,
void *data,
int max);
162 int fgetpkt(FILE* fin,
char* ph,
void* data,
int max);
172 int putpkt (
const char *ph,
const void *data,
int bytes);
float swapFloat(float rIn)
Swap single floats, returns new float.
double ttime(int *year, int *month, int *mday, int *yday, int *hour, int *minute, double *second)
Convert time components to double seconds since epoch.
void yrdy1958(int *pYear, int *pDoy, int days_since_1958)
Return a year and day of year given the number of days past 1958.
int fgetpkt(FILE *fin, char *ph, void *data, int max)
Read a Tagged Das 1 packet from a file object.
void ms2hms(int *pHour, int *pMin, float *pSec, double ms_of_day)
Return the hours, minutes and seconds of a day given then number of milliseconds since the start of t...
void tnorm(int *year, int *month, int *mday, int *yday, int *hour, int *minute, double *second)
normalize date and time components NOTE: yday is OUTPUT only.
int putpkt(const char *ph, const void *data, int bytes)
Write das packet to stdout.
void _swapBufInPlace(void *pMem, size_t szEach, size_t numItems)
Swap whole buffers in place.
void emitt(double tt, int *year, int *month, int *mday, int *yday, int *hour, int *minute, double *second)
convert double seconds since epoch to time components.
int parsetime(const char *string, int *year, int *month, int *mday, int *yday, int *hour, int *minute, double *second)
Convert most human-parseable time strings to numeric components returns 0 on success and non-zero on ...
int past_1958(int year, int day)
Get the number of days since 1958-01-01 given a year and day of year.
int getpkt(char *ph, void *data, int max)
Read a Tagged Das 1 packet from stdin.