Changeset 436 for XIOS/trunk/src/duration.cpp
- Timestamp:
- 06/06/13 17:31:28 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/trunk/src/duration.cpp
r424 r436 34 34 if(duration.hour != 0.0) { testValue = false; sout << duration.hour << "h " ; } 35 35 if(duration.minute != 0.0) { testValue = false; sout << duration.minute << "mi "; } 36 if(duration.second != 0.0 || testValue) {sout << duration.second << "s " ; }36 if(duration.second != 0.0) { testValue = false; sout << duration.second << "s " ; } 37 37 if(duration.timestep != 0.0 || testValue) { sout << duration.timestep << "ts " ; } 38 38 … … 106 106 107 107 //----------------------------------------------------------------- 108 108 CDuration & CDuration::solveTimeStep(const CCalendar & c) 109 { 110 CDuration timeStep=c.getTimeStep() ; 111 second +=timeStep.second ; 112 minute +=timeStep.minute ; 113 hour +=timeStep.hour ; 114 day +=timeStep.day ; 115 month +=timeStep.month ; 116 year +=timeStep.year ; 117 timestep = 0 ; 118 return (*this); 119 } 120 121 109 122 CDuration & CDuration::resolve(const CCalendar & c) 110 123 {
Note: See TracChangeset
for help on using the changeset viewer.