Searched refs:exploded (Results 1 - 24 of 24) sorted by relevance

/external/chromium/base/
H A Dtime_mac.cc63 Time Time::FromExploded(bool is_local, const Exploded& exploded) { argument
65 date.second = exploded.second +
66 exploded.millisecond / static_cast<double>(kMillisecondsPerSecond);
67 date.minute = exploded.minute;
68 date.hour = exploded.hour;
69 date.day = exploded.day_of_month;
70 date.month = exploded.month;
71 date.year = exploded.year;
81 void Time::Explode(bool is_local, Exploded* exploded) const {
90 exploded
[all...]
H A Dtime_posix.cc76 void Time::Explode(bool is_local, Exploded* exploded) const {
90 exploded->year = timestruct.tm_year + 1900;
91 exploded->month = timestruct.tm_mon + 1;
92 exploded->day_of_week = timestruct.tm_wday;
93 exploded->day_of_month = timestruct.tm_mday;
94 exploded->hour = timestruct.tm_hour;
95 exploded->minute = timestruct.tm_min;
96 exploded->second = timestruct.tm_sec;
97 exploded->millisecond = milliseconds % kMillisecondsPerSecond;
101 Time Time::FromExploded(bool is_local, const Exploded& exploded) { argument
[all...]
H A Dtime_unittest.cc18 // C library time and exploded time.
29 Time::Exploded exploded; local
30 our_time_1.LocalExplode(&exploded);
33 EXPECT_EQ(tms.tm_year + 1900, exploded.year);
34 EXPECT_EQ(tms.tm_mon + 1, exploded.month);
35 EXPECT_EQ(tms.tm_mday, exploded.day_of_month);
36 EXPECT_EQ(tms.tm_hour, exploded.hour);
37 EXPECT_EQ(tms.tm_min, exploded.minute);
38 EXPECT_EQ(tms.tm_sec, exploded.second);
40 // Convert exploded bac
77 Time::Exploded exploded; local
90 Time::Exploded exploded; local
98 Time::Exploded exploded; local
214 Time::Exploded exploded; local
[all...]
H A Dtime_win.cc181 Time Time::FromExploded(bool is_local, const Exploded& exploded) { argument
182 // Create the system struct representing our exploded time. It will either be
185 st.wYear = exploded.year;
186 st.wMonth = exploded.month;
187 st.wDayOfWeek = exploded.day_of_week;
188 st.wDay = exploded.day_of_month;
189 st.wHour = exploded.hour;
190 st.wMinute = exploded.minute;
191 st.wSecond = exploded.second;
192 st.wMilliseconds = exploded
[all...]
H A Dtime.cc91 Exploded exploded; local
92 LocalExplode(&exploded);
93 exploded.hour = 0;
94 exploded.minute = 0;
95 exploded.second = 0;
96 exploded.millisecond = 0;
97 return FromLocalExploded(exploded);
H A Dtime.h205 // Represents an exploded time that can be formatted nicely. This is kind of
293 // Converts an exploded structure representing either the local time or UTC
295 static Time FromUTCExploded(const Exploded& exploded) { argument
296 return FromExploded(false, exploded);
298 static Time FromLocalExploded(const Exploded& exploded) { argument
299 return FromExploded(true, exploded);
325 // Fills the given exploded structure with either the local time or UTC from
327 void UTCExplode(Exploded* exploded) const {
328 return Explode(false, exploded);
330 void LocalExplode(Exploded* exploded) cons
[all...]
/external/chromium/net/base/
H A Dx509_cert_types.cc106 base::Time::Exploded exploded = {0}; local
108 exploded.year = ParseIntAndAdvance(&field, year_length, &valid);
109 exploded.month = ParseIntAndAdvance(&field, 2, &valid);
110 exploded.day_of_month = ParseIntAndAdvance(&field, 2, &valid);
111 exploded.hour = ParseIntAndAdvance(&field, 2, &valid);
112 exploded.minute = ParseIntAndAdvance(&field, 2, &valid);
113 exploded.second = ParseIntAndAdvance(&field, 2, &valid);
115 exploded.year += exploded.year < 50 ? 2000 : 1900;
117 valid &= exploded
[all...]
H A Dx509_certificate_win.cc151 void ExplodedTimeToSystemTime(const base::Time::Exploded& exploded, argument
153 system_time->wYear = exploded.year;
154 system_time->wMonth = exploded.month;
155 system_time->wDayOfWeek = exploded.day_of_week;
156 system_time->wDay = exploded.day_of_month;
157 system_time->wHour = exploded.hour;
158 system_time->wMinute = exploded.minute;
159 system_time->wSecond = exploded.second;
160 system_time->wMilliseconds = exploded.millisecond;
589 base::Time::Exploded exploded; local
[all...]
H A Dcookie_monster.cc437 Time::Exploded exploded = {0};
457 exploded.month = i + 1;
479 token.c_str(), "%2u:%2u:%2u", &exploded.hour,
480 &exploded.minute, &exploded.second) == 3) {
492 exploded.day_of_month = atoi(token.c_str());
495 exploded.year = atoi(token.c_str());
514 if (exploded.year >= 69 && exploded.year <= 99)
515 exploded
[all...]
/external/chromium/chrome/browser/ui/webui/
H A Dhistory2_ui.cc209 base::Time::Exploded exploded; local
211 static_cast<time_t>(visit_time)).LocalExplode(&exploded);
212 exploded.hour = exploded.minute = exploded.second = exploded.millisecond = 0;
213 base::Time begin_time = base::Time::FromLocalExploded(exploded);
335 base::Time::Exploded exploded; local
336 base::Time::Now().LocalMidnight().LocalExplode(&exploded);
337 exploded
[all...]
H A Dhistory_ui.cc209 base::Time::Exploded exploded; local
211 static_cast<time_t>(visit_time)).LocalExplode(&exploded);
212 exploded.hour = exploded.minute = exploded.second = exploded.millisecond = 0;
213 base::Time begin_time = base::Time::FromLocalExploded(exploded);
323 base::Time::Exploded exploded; local
324 base::Time::Now().LocalMidnight().LocalExplode(&exploded);
325 exploded
[all...]
/external/chromium/chrome/browser/history/
H A Dhistory_publisher_win.cc67 base::Time::Exploded exploded; local
68 time.UTCExplode(&exploded);
70 // Create the system time struct representing our exploded time.
72 system_time.wYear = exploded.year;
73 system_time.wMonth = exploded.month;
74 system_time.wDayOfWeek = exploded.day_of_week;
75 system_time.wDay = exploded.day_of_month;
76 system_time.wHour = exploded.hour;
77 system_time.wMinute = exploded.minute;
78 system_time.wSecond = exploded
[all...]
H A Dtext_database_manager_unittest.cc67 Time::Exploded exploded; local
68 memset(&exploded, 0, sizeof(Time::Exploded));
71 exploded.year = 2008;
72 exploded.month = 1;
73 exploded.day_of_month = 3;
77 visit_row.visit_time = Time::FromUTCExploded(exploded);
89 exploded.day_of_month++;
91 visit_row.visit_time = Time::FromUTCExploded(exploded);
98 exploded.day_of_month++;
100 visit_row.visit_time = Time::FromUTCExploded(exploded);
[all...]
H A Dtext_database_manager.cc100 Time::Exploded exploded; local
101 time.UTCExplode(&exploded);
105 return exploded.year * 100 + exploded.month;
110 Time::Exploded exploded; local
111 memset(&exploded, 0, sizeof(Time::Exploded));
112 exploded.year = id / 100;
113 exploded.month = id % 100;
114 return Time::FromUTCExploded(exploded);
H A Dexpire_history_backend.cc684 Time::Exploded exploded; local
685 Time::Now().LocalExplode(&exploded);
687 exploded.year * 12 + exploded.month - kStoreHistoryIndexesForMonths;
/external/chromium/base/metrics/
H A Dfield_trial.cc54 base::Time::Exploded exploded; local
55 exploded.year = year;
56 exploded.month = month;
57 exploded.day_of_week = 0; // Should be unused.
58 exploded.day_of_month = day_of_month;
59 exploded.hour = 0;
60 exploded.minute = 0;
61 exploded.second = 0;
62 exploded.millisecond = 0;
64 base::Time expiration_time = Time::FromLocalExploded(exploded);
[all...]
H A Dfield_trial_unittest.cc19 Time::Exploded exploded; local
22 next_year_time.LocalExplode(&exploded);
23 next_year_ = exploded.year;
26 last_year_time.LocalExplode(&exploded);
27 last_year_ = exploded.year;
/external/chromium/base/third_party/nspr/
H A Dprtime.cc96 PR_ImplodeTime(const PRExplodedTime *exploded) argument
102 // Create the system struct representing our exploded time.
107 st.wYear = exploded->tm_year;
108 st.wMonth = exploded->tm_month + 1;
109 st.wDayOfWeek = exploded->tm_wday;
110 st.wDay = exploded->tm_mday;
111 st.wHour = exploded->tm_hour;
112 st.wMinute = exploded->tm_min;
113 st.wSecond = exploded->tm_sec;
114 st.wMilliseconds = exploded
[all...]
H A Dprtime.h173 PR_ImplodeTime(const PRExplodedTime *exploded); variable
176 * Adjust exploded time to normalize field overflows after manipulation.
188 PRExplodedTime *exploded, PRTimeParamFn params);
/external/chromium/chrome/browser/extensions/
H A Dconvert_web_app_unittest.cc66 base::Time::Exploded exploded = {0}; local
67 exploded.year = year;
68 exploded.month = month;
69 exploded.day_of_month = day;
70 exploded.hour = hour;
71 exploded.minute = minute;
72 exploded.second = second;
73 exploded.millisecond = millisecond;
74 return base::Time::FromUTCExploded(exploded);
/external/chromium/chrome/browser/diagnostics/
H A Ddiagnostics_main.cc252 base::Time::Exploded exploded = {0}; local
253 base::Time::Now().UTCExplode(&exploded);
255 exploded.year, exploded.month, exploded.day_of_month,
256 exploded.hour, exploded.minute, exploded.second);
/external/chromium/chrome/browser/ui/views/
H A Dabout_ipc_dialog.cc308 base::Time::Exploded exploded; local
309 sent.LocalExplode(&exploded);
310 if (exploded.hour > 12)
311 exploded.hour -= 12;
314 exploded.hour, exploded.minute, exploded.second, exploded.millisecond);
/external/chromium/crypto/
H A Dnss_util.cc703 base::Time::Exploded exploded; local
704 exploded.year = prxtime.tm_year;
705 exploded.month = prxtime.tm_month + 1;
706 exploded.day_of_week = prxtime.tm_wday;
707 exploded.day_of_month = prxtime.tm_mday;
708 exploded.hour = prxtime.tm_hour;
709 exploded.minute = prxtime.tm_min;
710 exploded.second = prxtime.tm_sec;
711 exploded.millisecond = prxtime.tm_usec / 1000;
713 return base::Time::FromUTCExploded(exploded);
[all...]
/external/chromium/chrome/browser/chromeos/status/
H A Dclock_menu_button.cc56 base::Time::Exploded exploded; local
57 now.LocalExplode(&exploded);
61 int seconds_left = 60 - exploded.second;

Completed in 239 milliseconds