Changeset 10454
- Timestamp:
- 04/22/11 20:50:41 (14 years ago)
- Location:
- trunk/FACT++/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/Time.cc
r10252 r10454 159 159 // -------------------------------------------------------------------------- 160 160 // 161 // Return seconds since 1970/1/1 162 // 163 time_t Time::GetUnixTime() const 164 { 165 const time_duration unx = *this - ptime(fUnixOffset); 166 return unx.total_seconds(); 167 } 168 169 // -------------------------------------------------------------------------- 170 // 161 171 //! Returns a string with the contents of the Time object formated 162 172 //! as defined in format. … … 277 287 return in; 278 288 } 289 -
trunk/FACT++/src/Time.h
r10324 r10454 90 90 unsigned int ms() const { return time_of_day().total_milliseconds()%1000; } 91 91 unsigned int us() const { return time_of_day().total_microseconds()%1000000; } 92 93 time_t GetUnixTime() const; 94 92 95 }; 93 96
Note:
See TracChangeset
for help on using the changeset viewer.