Searched defs:time_exploded (Results 1 - 13 of 13) sorted by relevance

/external/chromium/net/ftp/
H A Dftp_directory_listing_parser_windows.cc22 base::Time::Exploded time_exploded = { 0 }; local
29 if (!base::StringToInt(date_parts[0], &time_exploded.month))
31 if (!base::StringToInt(date_parts[1], &time_exploded.day_of_month))
33 if (!base::StringToInt(date_parts[2], &time_exploded.year))
35 if (time_exploded.year < 0)
39 if (time_exploded.year < 80)
40 time_exploded.year += 2000;
41 else if (time_exploded.year < 100)
42 time_exploded.year += 1900;
51 if (!base::StringToInt(time_parts[0], &time_exploded
[all...]
H A Dftp_directory_listing_parser_unittest.cc136 base::Time::Exploded time_exploded; local
137 entry.last_modified.LocalExplode(&time_exploded);
138 EXPECT_EQ(year, time_exploded.year);
139 EXPECT_EQ(month, time_exploded.month);
140 EXPECT_EQ(day_of_month, time_exploded.day_of_month);
141 EXPECT_EQ(hour, time_exploded.hour);
142 EXPECT_EQ(minute, time_exploded.minute);
H A Dftp_util_unittest.cc166 base::Time::Exploded time_exploded; local
167 time.LocalExplode(&time_exploded);
168 EXPECT_EQ(kTestCases[i].expected_year, time_exploded.year);
169 EXPECT_EQ(kTestCases[i].expected_month, time_exploded.month);
170 EXPECT_EQ(kTestCases[i].expected_day_of_month, time_exploded.day_of_month);
171 EXPECT_EQ(kTestCases[i].expected_hour, time_exploded.hour);
172 EXPECT_EQ(kTestCases[i].expected_minute, time_exploded.minute);
173 EXPECT_EQ(0, time_exploded.second);
174 EXPECT_EQ(0, time_exploded.millisecond);
H A Dftp_directory_listing_parser_unittest.h50 base::Time::Exploded time_exploded; local
51 entry.last_modified.LocalExplode(&time_exploded);
54 EXPECT_EQ(test_case.year, time_exploded.year);
55 EXPECT_EQ(test_case.month, time_exploded.month);
56 EXPECT_EQ(test_case.day_of_month, time_exploded.day_of_month);
57 EXPECT_EQ(test_case.hour, time_exploded.hour);
58 EXPECT_EQ(test_case.minute, time_exploded.minute);
H A Dftp_directory_listing_parser_vms.cc142 base::Time::Exploded time_exploded = { 0 }; local
149 if (!base::StringToInt(date_parts[0], &time_exploded.day_of_month))
152 &time_exploded.month))
154 if (!base::StringToInt(date_parts[2], &time_exploded.year))
170 if (!base::StringToInt(time_parts[0], &time_exploded.hour))
172 if (!base::StringToInt(time_parts[1], &time_exploded.minute))
176 *time = base::Time::FromLocalExploded(time_exploded);
H A Dftp_util.cc162 base::Time::Exploded time_exploded = { 0 }; local
164 if (!AbbreviatedMonthToNumber(month, &time_exploded.month))
167 if (!base::StringToInt(day, &time_exploded.day_of_month))
169 if (time_exploded.day_of_month > 31)
172 if (!base::StringToInt(rest, &time_exploded.year)) {
177 &time_exploded.hour))
182 &time_exploded.minute))
188 &time_exploded.hour))
193 &time_exploded.minute))
205 if (time_exploded
[all...]
/external/chromium_org/net/ftp/
H A Dftp_directory_listing_parser_unittest.cc97 base::Time::Exploded time_exploded; local
98 entry.last_modified.LocalExplode(&time_exploded);
99 EXPECT_EQ(year, time_exploded.year);
100 EXPECT_EQ(month, time_exploded.month);
101 EXPECT_EQ(day_of_month, time_exploded.day_of_month);
102 EXPECT_EQ(hour, time_exploded.hour);
103 EXPECT_EQ(minute, time_exploded.minute);
H A Dftp_util_unittest.cc173 base::Time::Exploded time_exploded; local
174 time.LocalExplode(&time_exploded);
175 EXPECT_EQ(kTestCases[i].expected_year, time_exploded.year);
176 EXPECT_EQ(kTestCases[i].expected_month, time_exploded.month);
177 EXPECT_EQ(kTestCases[i].expected_day_of_month, time_exploded.day_of_month);
178 EXPECT_EQ(kTestCases[i].expected_hour, time_exploded.hour);
179 EXPECT_EQ(kTestCases[i].expected_minute, time_exploded.minute);
180 EXPECT_EQ(0, time_exploded.second);
181 EXPECT_EQ(0, time_exploded.millisecond);
214 base::Time::Exploded time_exploded; local
[all...]
H A Dftp_directory_listing_parser_ls.cc22 base::Time::Exploded time_exploded = { 0 }; local
29 if (!base::StringToInt(date_parts[0], &time_exploded.year))
31 if (!base::StringToInt(date_parts[1], &time_exploded.month))
33 if (!base::StringToInt(date_parts[2], &time_exploded.day_of_month))
44 if (!base::StringToInt(time_parts[0], &time_exploded.hour))
46 if (!base::StringToInt(time_parts[1], &time_exploded.minute))
48 if (!time_exploded.HasValidValues())
52 *result = base::Time::FromLocalExploded(time_exploded);
H A Dftp_directory_listing_parser_unittest.h49 base::Time::Exploded time_exploded; local
50 entry.last_modified.LocalExplode(&time_exploded);
53 EXPECT_EQ(test_case.year, time_exploded.year);
54 EXPECT_EQ(test_case.month, time_exploded.month);
55 EXPECT_EQ(test_case.day_of_month, time_exploded.day_of_month);
56 EXPECT_EQ(test_case.hour, time_exploded.hour);
57 EXPECT_EQ(test_case.minute, time_exploded.minute);
H A Dftp_directory_listing_parser_vms.cc156 base::Time::Exploded time_exploded = { 0 }; local
163 if (!base::StringToInt(date_parts[0], &time_exploded.day_of_month))
166 &time_exploded.month))
168 if (!base::StringToInt(date_parts[2], &time_exploded.year))
184 if (!base::StringToInt(time_parts[0], &time_exploded.hour))
186 if (!base::StringToInt(time_parts[1], &time_exploded.minute))
190 *time = base::Time::FromLocalExploded(time_exploded);
H A Dftp_util.cc230 base::Time::Exploded time_exploded = { 0 }; local
232 if (!AbbreviatedMonthToNumber(month, &time_exploded.month)) {
237 &time_exploded.month)) {
242 if (!base::StringToInt(day, &time_exploded.day_of_month))
244 if (time_exploded.day_of_month > 31)
247 if (!base::StringToInt(rest, &time_exploded.year)) {
251 &time_exploded.hour)) {
256 &time_exploded.minute)) {
262 &time_exploded.hour)) {
267 &time_exploded
298 base::Time::Exploded time_exploded = { 0 }; local
[all...]
/external/chromium_org/chrome/test/logging/win/
H A Dlog_file_printer.cc142 base::Time::Exploded time_exploded = {}; local
145 base::Time::FromFileTime(event_time).LocalExplode(&time_exploded);
148 << std::setw(2) << time_exploded.month
149 << std::setw(2) << time_exploded.day_of_month
151 << std::setw(2) << time_exploded.hour
152 << std::setw(2) << time_exploded.minute
153 << std::setw(2) << time_exploded.second
155 << std::setw(3) << time_exploded.millisecond;

Completed in 154 milliseconds