Searched refs:time_exploded (Results 1 – 6 of 6) sorted by relevance
/external/chromium/net/ftp/ |
D | ftp_directory_listing_parser_windows.cc | 22 base::Time::Exploded time_exploded = { 0 }; in WindowsDateListingToTime() local 29 if (!base::StringToInt(date_parts[0], &time_exploded.month)) in WindowsDateListingToTime() 31 if (!base::StringToInt(date_parts[1], &time_exploded.day_of_month)) in WindowsDateListingToTime() 33 if (!base::StringToInt(date_parts[2], &time_exploded.year)) in WindowsDateListingToTime() 35 if (time_exploded.year < 0) in WindowsDateListingToTime() 39 if (time_exploded.year < 80) in WindowsDateListingToTime() 40 time_exploded.year += 2000; in WindowsDateListingToTime() 41 else if (time_exploded.year < 100) in WindowsDateListingToTime() 42 time_exploded.year += 1900; in WindowsDateListingToTime() 51 if (!base::StringToInt(time_parts[0], &time_exploded.hour)) in WindowsDateListingToTime() [all …]
|
D | ftp_util.cc | 162 base::Time::Exploded time_exploded = { 0 }; in LsDateListingToTime() local 164 if (!AbbreviatedMonthToNumber(month, &time_exploded.month)) in LsDateListingToTime() 167 if (!base::StringToInt(day, &time_exploded.day_of_month)) in LsDateListingToTime() 169 if (time_exploded.day_of_month > 31) in LsDateListingToTime() 172 if (!base::StringToInt(rest, &time_exploded.year)) { in LsDateListingToTime() 177 &time_exploded.hour)) in LsDateListingToTime() 182 &time_exploded.minute)) in LsDateListingToTime() 188 &time_exploded.hour)) in LsDateListingToTime() 193 &time_exploded.minute)) in LsDateListingToTime() 205 if (time_exploded.month > current_exploded.month || in LsDateListingToTime() [all …]
|
D | ftp_util_unittest.cc | 166 base::Time::Exploded time_exploded; in TEST() local 167 time.LocalExplode(&time_exploded); in TEST() 168 EXPECT_EQ(kTestCases[i].expected_year, time_exploded.year); in TEST() 169 EXPECT_EQ(kTestCases[i].expected_month, time_exploded.month); in TEST() 170 EXPECT_EQ(kTestCases[i].expected_day_of_month, time_exploded.day_of_month); in TEST() 171 EXPECT_EQ(kTestCases[i].expected_hour, time_exploded.hour); in TEST() 172 EXPECT_EQ(kTestCases[i].expected_minute, time_exploded.minute); in TEST() 173 EXPECT_EQ(0, time_exploded.second); in TEST() 174 EXPECT_EQ(0, time_exploded.millisecond); in TEST()
|
D | ftp_directory_listing_parser_unittest.h | 50 base::Time::Exploded time_exploded; in VerifySingleLineTestCase() local 51 entry.last_modified.LocalExplode(&time_exploded); in VerifySingleLineTestCase() 54 EXPECT_EQ(test_case.year, time_exploded.year); in VerifySingleLineTestCase() 55 EXPECT_EQ(test_case.month, time_exploded.month); in VerifySingleLineTestCase() 56 EXPECT_EQ(test_case.day_of_month, time_exploded.day_of_month); in VerifySingleLineTestCase() 57 EXPECT_EQ(test_case.hour, time_exploded.hour); in VerifySingleLineTestCase() 58 EXPECT_EQ(test_case.minute, time_exploded.minute); in VerifySingleLineTestCase()
|
D | ftp_directory_listing_parser_unittest.cc | 136 base::Time::Exploded time_exploded; in TEST() local 137 entry.last_modified.LocalExplode(&time_exploded); in TEST() 138 EXPECT_EQ(year, time_exploded.year); in TEST() 139 EXPECT_EQ(month, time_exploded.month); in TEST() 140 EXPECT_EQ(day_of_month, time_exploded.day_of_month); in TEST() 141 EXPECT_EQ(hour, time_exploded.hour); in TEST() 142 EXPECT_EQ(minute, time_exploded.minute); in TEST()
|
D | ftp_directory_listing_parser_vms.cc | 142 base::Time::Exploded time_exploded = { 0 }; in VmsDateListingToTime() local 149 if (!base::StringToInt(date_parts[0], &time_exploded.day_of_month)) in VmsDateListingToTime() 152 &time_exploded.month)) in VmsDateListingToTime() 154 if (!base::StringToInt(date_parts[2], &time_exploded.year)) in VmsDateListingToTime() 170 if (!base::StringToInt(time_parts[0], &time_exploded.hour)) in VmsDateListingToTime() 172 if (!base::StringToInt(time_parts[1], &time_exploded.minute)) in VmsDateListingToTime() 176 *time = base::Time::FromLocalExploded(time_exploded); in VmsDateListingToTime()
|