artdaq_core  v1_07_04
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Pages
Functions
artdaq::TimeUtils Namespace Reference

Namespace to hold useful time-converting functions. More...

Functions

std::string convertUnixTimeToString (time_t inputUnixTime)
 Converts a Unix time to its string representation, in UTC. More...
 
std::string convertUnixTimeToString (struct timeval const &inputUnixTime)
 Converts a Unix time to its string representation, in UTC. More...
 
std::string convertUnixTimeToString (struct timespec const &inputUnixTime)
 Converts a Unix time to its string representation, in UTC. More...
 

Detailed Description

Namespace to hold useful time-converting functions.

Function Documentation

std::string artdaq::TimeUtils::convertUnixTimeToString ( time_t  inputUnixTime)

Converts a Unix time to its string representation, in UTC.

Parameters
inputUnixTimeA time_t Unix time variable
Returns
std::string representation of Unix time, in UTC

Definition at line 7 of file TimeUtils.cc.

std::string artdaq::TimeUtils::convertUnixTimeToString ( struct timeval const &  inputUnixTime)

Converts a Unix time to its string representation, in UTC.

Parameters
inputUnixTimeA struct timeval Unix time variable
Returns
std::string representation of Unix time, in UTC

Definition at line 18 of file TimeUtils.cc.

std::string artdaq::TimeUtils::convertUnixTimeToString ( struct timespec const &  inputUnixTime)

Converts a Unix time to its string representation, in UTC.

Parameters
inputUnixTimeA struct timespec Unix time variable
Returns
std::string representation of Unix time, in UTC

Definition at line 35 of file TimeUtils.cc.