Home
last modified time | relevance | path

Searched refs:dateFormat (Results 1 – 4 of 4) sorted by relevance

/cts/tools/tradefed-host/src/com/android/cts/tradefed/result/
DTimeUtil.java67 SimpleDateFormat dateFormat = new SimpleDateFormat("EEE MMM dd HH:mm:ss zzz yyyy"); in getTimestamp() local
68 return dateFormat.format(new Date(time)); in getTimestamp()
77 SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy.MM.dd_HH.mm.ss"); in getResultTimestamp() local
78 return dateFormat.format(new Date()); in getResultTimestamp()
/cts/tests/tests/text/src/android/text/format/cts/
DDateFormatTest.java160 java.text.DateFormat dateFormat = DateFormat.getDateFormat(mContext); in testFormatMethods() local
161 assertNotNull(dateFormat); in testFormatMethods()
163 String source = dateFormat.format(date); in testFormatMethods()
164 Date parseDate = dateFormat.parse(source); in testFormatMethods()
169 dateFormat = DateFormat.getLongDateFormat(mContext); in testFormatMethods()
170 assertNotNull(dateFormat); in testFormatMethods()
171 source = dateFormat.format(date); in testFormatMethods()
173 dateFormat = DateFormat.getMediumDateFormat(mContext); in testFormatMethods()
174 assertNotNull(dateFormat); in testFormatMethods()
175 source = dateFormat.format(date); in testFormatMethods()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/
DReportExporter.java93 SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy.MM.dd-HH.mm.ss", Locale.ENGLISH); in getReportBaseName() local
94 String date = dateFormat.format(new Date()); in getReportBaseName()
/cts/common/util/src/com/android/compatibility/common/util/
DResultHandler.java390 SimpleDateFormat dateFormat = new SimpleDateFormat("EEE MMM dd HH:mm:ss zzz yyyy"); in toReadableDateString() local
391 return dateFormat.format(new Date(time)); in toReadableDateString()