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.
std::string convertUnixTimeToString (struct timeval const &inputUnixTime)
 Converts a Unix time to its string representation, in UTC.
std::string convertUnixTimeToString (struct timespec const &inputUnixTime)
 Converts a Unix time to its string representation, in UTC.

Detailed Description

Namespace to hold useful time-converting functions.


Function Documentation

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

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

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

Definition at line 35 of file TimeUtils.cc.

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

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

Parameters:
inputUnixTime A 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 ( time_t  inputUnixTime  ) 

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

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

Definition at line 7 of file TimeUtils.cc.

 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator

Generated on 8 Aug 2017 for artdaq_core by  doxygen 1.6.1