Home
last modified time | relevance | path

Searched refs:yearString (Results 1 – 2 of 2) sorted by relevance

/external/apache-http/android/src/android/net/http/
DLegacyHttpDateTime.java180 private static int getYear(String yearString) { in getYear() argument
181 if (yearString.length() == 2) { in getYear()
182 int year = (yearString.charAt(0) - '0') * 10 in getYear()
183 + (yearString.charAt(1) - '0'); in getYear()
189 } else if (yearString.length() == 3) { in getYear()
191 int year = (yearString.charAt(0) - '0') * 100 in getYear()
192 + (yearString.charAt(1) - '0') * 10 in getYear()
193 + (yearString.charAt(2) - '0'); in getYear()
195 } else if (yearString.length() == 4) { in getYear()
196 return (yearString.charAt(0) - '0') * 1000 in getYear()
[all …]
/external/apache-commons-compress/src/test/java/org/apache/commons/compress/archivers/zip/
DX5455_ExtendedTimestampTest.java133 final String yearString = name.substring(x + 1); in testSampleFile() local
136 year = Integer.parseInt(yearString); in testSampleFile()