Home | History | Annotate | Download | only in time

Lines Matching refs:exploded

158 void Time::Explode(bool is_local, Exploded* exploded) const {
159 // Time stores times with microsecond resolution, but Exploded only carries
166 int millisecond; // Exploded millisecond value (0-999).
187 exploded->year = timestruct.tm_year + 1900;
188 exploded->month = timestruct.tm_mon + 1;
189 exploded->day_of_week = timestruct.tm_wday;
190 exploded->day_of_month = timestruct.tm_mday;
191 exploded->hour = timestruct.tm_hour;
192 exploded->minute = timestruct.tm_min;
193 exploded->second = timestruct.tm_sec;
194 exploded->millisecond = millisecond;
198 Time Time::FromExploded(bool is_local, const Exploded& exploded) {
200 timestruct.tm_sec = exploded.second;
201 timestruct.tm_min = exploded.minute;
202 timestruct.tm_hour = exploded.hour;
203 timestruct.tm_mday = exploded.day_of_month;
204 timestruct.tm_mon = exploded.month - 1;
205 timestruct.tm_year = exploded.year - 1900;
206 timestruct.tm_wday = exploded.day_of_week; // mktime/timegm ignore this
218 // Certain exploded dates do not really exist due to daylight saving times,
254 (exploded.year < 1969 || exploded.year > 1970)) {
255 // If exploded.year is 1969 or 1970, take -1 as correct, with the
262 // proper round-tripping between exploded and counter-type time
278 if (exploded.year < 1969) {
285 milliseconds = seconds * kMillisecondsPerSecond + exploded.millisecond;