Home | History | Annotate | Download | only in time

Lines Matching refs:exploded

128 void Time::Explode(bool is_local, Exploded* exploded) const {
129 // Time stores times with microsecond resolution, but Exploded only carries
136 int millisecond; // Exploded millisecond value (0-999).
157 exploded->year = timestruct.tm_year + 1900;
158 exploded->month = timestruct.tm_mon + 1;
159 exploded->day_of_week = timestruct.tm_wday;
160 exploded->day_of_month = timestruct.tm_mday;
161 exploded->hour = timestruct.tm_hour;
162 exploded->minute = timestruct.tm_min;
163 exploded->second = timestruct.tm_sec;
164 exploded->millisecond = millisecond;
168 bool Time::FromExploded(bool is_local, const Exploded& exploded, Time* time) {
169 CheckedNumeric<int> month = exploded.month;
171 CheckedNumeric<int> year = exploded.year;
179 timestruct.tm_sec = exploded.second;
180 timestruct.tm_min = exploded.minute;
181 timestruct.tm_hour = exploded.hour;
182 timestruct.tm_mday = exploded.day_of_month;
185 timestruct.tm_wday = exploded.day_of_week; // mktime/timegm ignore this
195 // Certain exploded dates do not really exist due to daylight saving times,
231 if (seconds == -1 && (exploded.year < 1969 || exploded.year > 1970)) {
232 // If exploded.year is 1969 or 1970, take -1 as correct, with the
239 // proper round-tripping between exploded and counter-type time
255 if (exploded.year < 1969) {
264 checked_millis += exploded.millisecond;
282 // If |exploded.day_of_month| is set to 31 on a 28-30 day month, it will
284 // compare the initial |exploded| with |utc_to_exploded| time.
285 base::Time::Exploded to_exploded;
291 if (ExplodedMostlyEquals(to_exploded, exploded)) {