Datafile: Fixed Datetime::daysInMonth call with args in the wrong order

This commit is contained in:
Paul Beckingham 2016-04-06 21:29:51 -04:00
parent 34079ff28e
commit 0796e0c522

View file

@ -42,7 +42,7 @@ void Datafile::initialize (const std::string& name)
// Construct two dates that // Construct two dates that
_day1 = Datetime (month, 1, year, 0 , 0, 0); _day1 = Datetime (month, 1, year, 0 , 0, 0);
_dayN = Datetime (month, Datetime::daysInMonth (year, month), year, 23, 59, 59); _dayN = Datetime (month, Datetime::daysInMonth (month, year), year, 23, 59, 59);
} }
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
@ -198,7 +198,15 @@ void Datafile::load_intervals ()
// "exc ..." // "exc ..."
else if (line[0] == 'e') else if (line[0] == 'e')
; // TODO Exclusions. {
/*
Exclusion e;
e.initialize (line);
_intervals.push_back (i);
*/
}
// ?
else else
{ {
// TODO Ignore blank lines? // TODO Ignore blank lines?