Dynalib Utils
Static Public Member Functions | List of all members
TimeUtils Class Reference

#include <TimeUtils.h>

Static Public Member Functions

static system_clock::time_point getNow ()
 
static system_clock::time_point getTime (long milli)
 
static long getEpochMillis (system_clock::time_point &t1)
 
static time_t getEpochSecs (system_clock::time_point &t1)
 
static time_t mkgmtime (struct tm *tm)
 
static system_clock::time_point parseLocalTime (const char *timestr)
 
static system_clock::time_point parseTimestamp (const char *timestamp)
 
static system_clock::time_point parseLocalDate (const char *datestr)
 
static String getLocalTime (long milli, const char *format, bool addMillis=true)
 
static String getLocalTime (system_clock::time_point &t1, const char *format, bool addMillis=true)
 
static String getGmTime (long milli, const char *format, bool getMillis=true)
 
static String getGmTime (system_clock::time_point &t1, const char *format, bool getMillis=true)
 
static String getUTCTimestamp (system_clock::time_point &t1)
 

Member Function Documentation

◆ getEpochMillis()

long TimeUtils::getEpochMillis ( system_clock::time_point &  t1)
static

◆ getEpochSecs()

time_t TimeUtils::getEpochSecs ( system_clock::time_point &  t1)
static

◆ getGmTime() [1/2]

String TimeUtils::getGmTime ( long  milli,
const char *  format,
bool  getMillis = true 
)
static

◆ getGmTime() [2/2]

String TimeUtils::getGmTime ( system_clock::time_point &  t1,
const char *  format,
bool  getMillis = true 
)
static

◆ getLocalTime() [1/2]

String TimeUtils::getLocalTime ( long  milli,
const char *  format,
bool  addMillis = true 
)
static

◆ getLocalTime() [2/2]

String TimeUtils::getLocalTime ( system_clock::time_point &  t1,
const char *  format,
bool  addMillis = true 
)
static

◆ getNow()

system_clock::time_point TimeUtils::getNow ( )
static

◆ getTime()

system_clock::time_point TimeUtils::getTime ( long  milli)
static

◆ getUTCTimestamp()

String TimeUtils::getUTCTimestamp ( system_clock::time_point &  t1)
static

◆ mkgmtime()

time_t TimeUtils::mkgmtime ( struct tm *  tm)
static

◆ parseLocalDate()

system_clock::time_point TimeUtils::parseLocalDate ( const char *  datestr)
static

◆ parseLocalTime()

system_clock::time_point TimeUtils::parseLocalTime ( const char *  timestr)
static

◆ parseTimestamp()

system_clock::time_point TimeUtils::parseTimestamp ( const char *  timestamp)
static

The documentation for this class was generated from the following files: