Mercurial > hg > fxanalyse
view utils.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 | e925664b4b1b |
children |
line wrap: on
line source
#ifndef __FXANALISE_UTILS_H__ #define __FXANALISE_UTILS_H__ #ifndef FALSE #define FALSE 0 #endif #ifndef TRUE #define TRUE 1 #endif #ifndef MIN #define MIN(x, y) (x) < (y) ? (x) : (y) #endif #define streq(x, y) (strcmp((x), (y)) == 0) #define strneq(x, y, n) (strncmp((x), (y), (n)) == 0) /* format floating points numbers accordingly to fmt and asdd thousands separator */ const char * thousands(char *buffer, int size, char *fmt, double val); double Peta(double x); double Tera(double x); double Giga(double x); double Mega(double x); double kilo(double x); double milli(double x); double micro(double x); double nano(double x); double pico(double x); double femto(double x); double atto(double x); #endif