Mercurial > hg > fxanalyse
view future.h @ 254:67c8ace9d5f6
Save time strings in UTC time and rotate datafiles at midnight UTC
Time strings '05/06/2015 00:00:00.014' in datafiles were reported in
Paris local time and the data files were rotated at midnight Paris
time. Switch to use UTC time for both.
author | Daniele Nicolodi <daniele@grinta.net> |
---|---|
date | Fri, 05 Jun 2015 18:06:12 +0200 |
parents | 4db8746bd575 |
children |
line wrap: on
line source
#ifndef __FUTURE_H__ #define __FUTURE_H__ #define strdup(s) StrDup(s) #define NaN NotANumber() #define isnan(v) IsNotANumber(v) /* required for time_t definition */ #include <time.h> #define PTR_TO_INT(p) ((int) ((intptr_t)(p))) #define INT_TO_PTR(u) ((void *) ((intptr_t)(u))) double round(double x); /* struct timeval is defined in `WinSock2.h` but we cannot safely include * this header because it includes `Windows.h` and CVI does not like to * have that included after his includes. resort to this ugly hack to * avoid to include windows headers and to avoid name clashes */ struct __timeval { time_t tv_sec; long tv_usec; }; #define timeval __timeval /* we never use struct timezone so leave it as on opaque struct */ struct timezone; int gettimeofday(struct timeval *tp, struct timezone *tzp); #endif