B2BITS FIX Antenna HFT  1.0.13
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Enumerations | Functions
TimeUtils.h File Reference
#include "B2BITS_UTCTimeOnly.h"
#include "FE_SYS_Time.h"
#include "B2BITS_UTCTimestamp.h"
#include "B2BITS_UTCDateOnly.h"
#include "b2b_platform.h"
+ Include dependency graph for TimeUtils.h:
+ This graph shows which files directly or indirectly include this file:

Classes

class  NanosTimeConvertRecalib
 
class  NanosTimeConvertStatic
 
class  PeriodTimer
 

Enumerations

enum  PeriodTimerState { NO_CHANGE_SINCE_LAST_CHECK, WENT_INTO_TIME_PERIOD, WENT_OUT_OF_TIME_PERIOD }
 

Functions

static time_t daysDiff (const Engine::UTCTimestamp &tm2, const Engine::UTCTimestamp &tm1)
 
static time_t daysDiff (const Engine::UTCDateOnly &tm2, const Engine::UTCDateOnly &tm1)
 
static uint64_t get_currentTimeUsec1970 ()
 
static time_t getSeconds (const Engine::UTCTimestamp &ts)
 
static tm getTmUtc (const Engine::UTCTimestamp &t)
 
static time_t hoursDiff (const Engine::UTCTimestamp &tm2, const Engine::UTCTimestamp &tm1)
 
static bool isNowWithinTimePeriod (const ::Engine::UTCTimeOnly &periodStart, const ::Engine::UTCTimeOnly &periodEnd)
 
static bool isWithinTimePeriod (const Engine::UTCTimeOnly &periodStart, const Engine::UTCTimeOnly &periodEnd, const Engine::UTCTimeOnly &timeToCheck)
 
Engine::UTCTimestamp localToUTC (const Engine::UTCTimestamp &tm)
 
static Engine::UTCTimeOnly localToUTC (const Engine::UTCTimeOnly &tm)
 
static time_t minutesDiff (const Engine::UTCTimestamp &tm2, const Engine::UTCTimestamp &tm1)
 
Engine::UTCTimestamp nowLocalTimestamp ()
 
static std::string refineTimeOnlyProp (const std::string &sTimeOnly)
 
static time_t secondsDiff (const Engine::UTCTimestamp &tm2, const Engine::UTCTimestamp &tm1)
 
static Engine::UTCTimeOnly shiftTimeBack (const Engine::UTCTimeOnly &utcNow, int minutes)
 
static Engine::UTCTimeOnly shiftTimeFwd (const Engine::UTCTimeOnly &utcNow, int minutes)
 
static unsigned toMillisSinceMidnight (const Engine::UTCTimestamp &tm)
 
int utcHoursDiff ()
 
Engine::UTCTimestamp utcToLocal (const Engine::UTCTimestamp &tm)
 

Enumeration Type Documentation

Enumerator
NO_CHANGE_SINCE_LAST_CHECK 
WENT_INTO_TIME_PERIOD 
WENT_OUT_OF_TIME_PERIOD 

Function Documentation

static time_t daysDiff ( const Engine::UTCTimestamp tm2,
const Engine::UTCTimestamp tm1 
)
inlinestatic

References hoursDiff().

static time_t daysDiff ( const Engine::UTCDateOnly tm2,
const Engine::UTCDateOnly tm1 
)
inlinestatic
static uint64_t get_currentTimeUsec1970 ( )
inlinestatic
static time_t getSeconds ( const Engine::UTCTimestamp ts)
inlinestatic
static tm getTmUtc ( const Engine::UTCTimestamp t)
inlinestatic
static time_t hoursDiff ( const Engine::UTCTimestamp tm2,
const Engine::UTCTimestamp tm1 
)
inlinestatic

References minutesDiff().

Referenced by daysDiff().

static bool isNowWithinTimePeriod ( const ::Engine::UTCTimeOnly periodStart,
const ::Engine::UTCTimeOnly periodEnd 
)
inlinestatic
static bool isWithinTimePeriod ( const Engine::UTCTimeOnly periodStart,
const Engine::UTCTimeOnly periodEnd,
const Engine::UTCTimeOnly timeToCheck 
)
inlinestatic
Engine::UTCTimestamp localToUTC ( const Engine::UTCTimestamp tm)
static Engine::UTCTimeOnly localToUTC ( const Engine::UTCTimeOnly tm)
inlinestatic
static time_t minutesDiff ( const Engine::UTCTimestamp tm2,
const Engine::UTCTimestamp tm1 
)
inlinestatic

References getSeconds().

Referenced by hoursDiff().

Engine::UTCTimestamp nowLocalTimestamp ( )
static std::string refineTimeOnlyProp ( const std::string &  sTimeOnly)
inlinestatic
static time_t secondsDiff ( const Engine::UTCTimestamp tm2,
const Engine::UTCTimestamp tm1 
)
inlinestatic

References getSeconds().

static Engine::UTCTimeOnly shiftTimeBack ( const Engine::UTCTimeOnly utcNow,
int  minutes 
)
inlinestatic
static Engine::UTCTimeOnly shiftTimeFwd ( const Engine::UTCTimeOnly utcNow,
int  minutes 
)
inlinestatic
static unsigned toMillisSinceMidnight ( const Engine::UTCTimestamp tm)
inlinestatic
int utcHoursDiff ( )

Referenced by localToUTC().

Engine::UTCTimestamp utcToLocal ( const Engine::UTCTimestamp tm)