BoosterSeat  0.1
A C++ library that includes common utilities that are used in other projects.
time.cpp File Reference
#include <BoosterSeat/exception.hpp>
#include <BoosterSeat/time.hpp>
#include <algorithm>
#include <chrono>
#include <time.h>
#include <iostream>
Include dependency graph for time.cpp:

Namespaces

 bst
 

Functions

std::string dateFormatString (const char delimiter)
 
std::tm getTm (const bst::time::TimeZone time_zone, time_t time)
 
uint32_t bst::getUnixTime ()
 Get the current Unix time. More...
 
std::string timeFormatString (const char delimiter)
 

Function Documentation

◆ getTm()

std::tm getTm ( const bst::time::TimeZone  time_zone,
time_t  time 
)
inline
Todo:
remove

References bst::time::LOCAL, bst::TIME_INVALID_TIMEZONE, and bst::time::UTC.

Referenced by bst::time::dateAndTimeString(), bst::time::dateString(), and bst::time::timeString().

Here is the caller graph for this function:

◆ timeFormatString()

std::string timeFormatString ( const char  delimiter)
inline

Referenced by bst::time::dateAndTimeString(), and bst::time::timeString().

Here is the caller graph for this function:

◆ dateFormatString()

std::string dateFormatString ( const char  delimiter)
inline

Referenced by bst::time::dateAndTimeString(), and bst::time::dateString().

Here is the caller graph for this function: