Changeset 11215
- Timestamp:
- 06/29/11 21:02:47 (13 years ago)
- Location:
- trunk/FACT++/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/Time.cc
r11208 r11215 234 234 } 235 235 236 int Time::NightAsInt() const 237 { 238 const Time tm = *this - boost::posix_time::hours(12); 239 return tm.Y()*10000 + tm.M()*100 + tm.D(); 240 } 241 236 242 // -------------------------------------------------------------------------- 237 243 // -
trunk/FACT++/src/Time.h
r11208 r11215 96 96 double UnixTime() const; 97 97 double RootTime() const; 98 99 int NightAsInt() const; 98 100 }; 99 101
Note:
See TracChangeset
for help on using the changeset viewer.