Changeset 11393
- Timestamp:
- 07/14/11 08:56:17 (13 years ago)
- Location:
- trunk/FACT++/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/Time.cc
r11215 r11393 186 186 // -------------------------------------------------------------------------- 187 187 // 188 // @returns seconds since 1970/1/1 189 // 190 time_t Time::Time_t() const 191 { 192 return (date().modjulian_day()-40587)*24*60*60 + time_of_day().total_seconds(); 193 } 194 195 // -------------------------------------------------------------------------- 196 // 188 197 //! @returns the time in a format needed for root's TAxis 189 198 //! -
trunk/FACT++/src/Time.h
r11215 r11393 94 94 double SecondsOfDay() const; 95 95 96 time_t Time_t() const; 96 97 double UnixTime() const; 97 98 double RootTime() const;
Note:
See TracChangeset
for help on using the changeset viewer.