PSTime::TimeUtils Namespace Reference

Namespace containing various utility methods for date/time manipulation. More...


Functions

time_t timegm (struct tm *timeptr)
 Convert broken time to UTC time (in UTC timezone).


Detailed Description

Namespace containing various utility methods for date/time manipulation.

This software was developed for the LCLS project. If you use all or part of it, please give an appropriate acknowledgment.

Version:
$Id: TimeUtils.h 1844 2011-05-07 01:51:13Z salnikov $
Author:
Andrei Salnikov


Function Documentation

time_t PSTime::TimeUtils::timegm ( struct tm *  timeptr  ) 

Convert broken time to UTC time (in UTC timezone).

Unlike mktime this method does not normalize any members of struct tm. The members tm_isdst, tm_wday, and tm_yday are entirely ignored. No leap seconds accounted.

Definition at line 85 of file TimeUtils.cpp.

Referenced by PSTime::TimeFormat::parseTime(), printTimeDiff(), and PSTime::Time::Time().


Generated on 19 Dec 2016 for PSANAclasses by  doxygen 1.4.7