HomeSort by relevance Sort by last modified time
    Searched refs:time_exploded (Results 1 - 7 of 7) sorted by null

  /external/chromium/net/ftp/
ftp_directory_listing_parser_windows.cc 18 base::Time::Exploded time_exploded = { 0 }; local
25 if (!StringToInt(date_parts[0], &time_exploded.month))
27 if (!StringToInt(date_parts[1], &time_exploded.day_of_month))
29 if (!StringToInt(date_parts[2], &time_exploded.year))
31 if (time_exploded.year < 0)
35 if (time_exploded.year < 80)
36 time_exploded.year += 2000;
37 else if (time_exploded.year < 100)
38 time_exploded.year += 1900;
47 if (!StringToInt(time_parts[0], &time_exploded.hour)
    [all...]
ftp_directory_listing_parser_unittest.h 41 base::Time::Exploded time_exploded; local
42 entry.last_modified.LocalExplode(&time_exploded);
43 EXPECT_EQ(test_case.year, time_exploded.year);
44 EXPECT_EQ(test_case.month, time_exploded.month);
45 EXPECT_EQ(test_case.day_of_month, time_exploded.day_of_month);
46 EXPECT_EQ(test_case.hour, time_exploded.hour);
47 EXPECT_EQ(test_case.minute, time_exploded.minute);
48 EXPECT_EQ(0, time_exploded.second);
49 EXPECT_EQ(0, time_exploded.millisecond);
ftp_util_unittest.cc 141 base::Time::Exploded time_exploded; local
142 time.LocalExplode(&time_exploded);
143 EXPECT_EQ(kTestCases[i].expected_year, time_exploded.year);
144 EXPECT_EQ(kTestCases[i].expected_month, time_exploded.month);
145 EXPECT_EQ(kTestCases[i].expected_day_of_month, time_exploded.day_of_month);
146 EXPECT_EQ(kTestCases[i].expected_hour, time_exploded.hour);
147 EXPECT_EQ(kTestCases[i].expected_minute, time_exploded.minute);
148 EXPECT_EQ(0, time_exploded.second);
149 EXPECT_EQ(0, time_exploded.millisecond);
ftp_directory_listing_parser_mlsd.cc 21 base::Time::Exploded time_exploded = { 0 }; local
28 if (!StringToInt(text.substr(0, 4), &time_exploded.year))
30 if (!StringToInt(text.substr(4, 2), &time_exploded.month))
32 if (!StringToInt(text.substr(6, 2), &time_exploded.day_of_month))
34 if (!StringToInt(text.substr(8, 2), &time_exploded.hour))
36 if (!StringToInt(text.substr(10, 2), &time_exploded.minute))
40 *time = base::Time::FromLocalExploded(time_exploded);
ftp_directory_listing_buffer_unittest.cc 116 base::Time::Exploded time_exploded; local
117 entry.last_modified.LocalExplode(&time_exploded);
118 EXPECT_EQ(year, time_exploded.year);
119 EXPECT_EQ(month, time_exploded.month);
120 EXPECT_EQ(day_of_month, time_exploded.day_of_month);
121 EXPECT_EQ(hour, time_exploded.hour);
122 EXPECT_EQ(minute, time_exploded.minute);
123 EXPECT_EQ(0, time_exploded.second);
124 EXPECT_EQ(0, time_exploded.millisecond);
ftp_util.cc 150 base::Time::Exploded time_exploded = { 0 }; local
152 if (!ThreeLetterMonthToNumber(month, &time_exploded.month))
155 if (!StringToInt(day, &time_exploded.day_of_month))
158 if (!StringToInt(rest, &time_exploded.year)) {
163 if (!StringToInt(rest.substr(0, 2), &time_exploded.hour))
166 if (!StringToInt(rest.substr(3, 2), &time_exploded.minute))
172 time_exploded.year = now_exploded.year;
176 *time = base::Time::FromLocalExploded(time_exploded);
ftp_directory_listing_parser_vms.cc 121 base::Time::Exploded time_exploded = { 0 }; local
128 if (!StringToInt(date_parts[0], &time_exploded.day_of_month))
131 &time_exploded.month))
133 if (!StringToInt(date_parts[2], &time_exploded.year))
149 if (!StringToInt(time_parts[0], &time_exploded.hour))
151 if (!StringToInt(time_parts[1], &time_exploded.minute))
155 *time = base::Time::FromLocalExploded(time_exploded);

Completed in 34 milliseconds