NTPManager

Network time synchronization

#include <NTPManager.h>

Static Public Member Functions

static void init ()
 
static void init (long gmtOffsetSec, int dstOffsetSec=0)
 
static bool isTimeSet ()
 
static bool isInitialized ()
 
static String getCurrentDateTime ()
 
static String getCurrentDate ()
 
static String getCurrentTime ()
 
static void printCurrentTime ()
 
static String getCurrentDateTimeUTC ()
 
static String getCurrentDateUTC ()
 
static String getCurrentTimeUTC ()
 
static void printCurrentTimeUTC ()
 
static time_t getEpochTime ()
 
static void setTimezone (long gmtOffsetSec, int dstOffsetSec=0)
 
static void setNTPServers (const char *server1, const char *server2=nullptr, const char *server3=nullptr)
 

Member Function Documentation

◆ getCurrentDate()

String CloudMouse::Utils::NTPManager::getCurrentDate ( )
static

◆ getCurrentDateTime()

String CloudMouse::Utils::NTPManager::getCurrentDateTime ( )
static

◆ getCurrentDateTimeUTC()

String CloudMouse::Utils::NTPManager::getCurrentDateTimeUTC ( )
static

◆ getCurrentDateUTC()

String CloudMouse::Utils::NTPManager::getCurrentDateUTC ( )
static

◆ getCurrentTime()

String CloudMouse::Utils::NTPManager::getCurrentTime ( )
static

◆ getCurrentTimeUTC()

String CloudMouse::Utils::NTPManager::getCurrentTimeUTC ( )
static

◆ getEpochTime()

time_t CloudMouse::Utils::NTPManager::getEpochTime ( )
static

◆ init() [1/2]

void CloudMouse::Utils::NTPManager::init ( )
static

◆ init() [2/2]

void CloudMouse::Utils::NTPManager::init ( long  gmtOffsetSec,
int  dstOffsetSec = 0 
)
static

◆ isInitialized()

bool CloudMouse::Utils::NTPManager::isInitialized ( )
static

◆ isTimeSet()

bool CloudMouse::Utils::NTPManager::isTimeSet ( )
static

◆ printCurrentTime()

void CloudMouse::Utils::NTPManager::printCurrentTime ( )
static

◆ printCurrentTimeUTC()

void CloudMouse::Utils::NTPManager::printCurrentTimeUTC ( )
static

◆ setNTPServers()

void CloudMouse::Utils::NTPManager::setNTPServers ( const char *  server1,
const char *  server2 = nullptr,
const char *  server3 = nullptr 
)
static

◆ setTimezone()

void CloudMouse::Utils::NTPManager::setTimezone ( long  gmtOffsetSec,
int  dstOffsetSec = 0 
)
static