Refactor WeekFlags processing into UseEffectiveWeekDayFlags()

Use the new GetFirstWeekDay() function rather than GetCountry() == USA
to determine the first weekday.
This commit is contained in:
Lauri Nurmi
2017-09-02 16:53:31 +03:00
parent 94c35b2cdd
commit 378851a283
2 changed files with 16 additions and 12 deletions

View File

@@ -1145,6 +1145,9 @@ private:
// functions
inline bool IsInStdRange() const;
// assign the preferred first day of a week to flags, if necessary
void UseEffectiveWeekDayFlags(WeekFlags &flags) const;
// the internal representation of the time is the amount of milliseconds
// elapsed since the origin which is set by convention to the UNIX/C epoch
// value: the midnight of January 1, 1970 (UTC)