Home | History | Annotate | Download | only in base

Lines Matching refs:Exploded

64 Time Time::FromExploded(bool is_local, const Exploded& exploded) {
66 timestruct.tm_sec = exploded.second;
67 timestruct.tm_min = exploded.minute;
68 timestruct.tm_hour = exploded.hour;
69 timestruct.tm_mday = exploded.day_of_month;
70 timestruct.tm_mon = exploded.month - 1;
71 timestruct.tm_year = exploded.year - 1900;
72 timestruct.tm_wday = exploded.day_of_week; // mktime/timegm ignore this
90 (exploded.year < 1969 || exploded.year > 1970)) {
91 // If exploded.year is 1969 or 1970, take -1 as correct, with the
98 // proper round-tripping between exploded and counter-type time
105 if (exploded.year < 1969) {
114 milliseconds = seconds * kMillisecondsPerSecond + exploded.millisecond;
122 void Time::Explode(bool is_local, Exploded* exploded) const {
123 // Time stores times with microsecond resolution, but Exploded only carries
136 exploded->year = timestruct.tm_year + 1900;
137 exploded->month = timestruct.tm_mon + 1;
138 exploded->day_of_week = timestruct.tm_wday;
139 exploded->day_of_month = timestruct.tm_mday;
140 exploded->hour = timestruct.tm_hour;
141 exploded->minute = timestruct.tm_min;
142 exploded->second = timestruct.tm_sec;
143 exploded->millisecond = milliseconds % kMillisecondsPerSecond;