Searched refs:dateFormat (Results 1 – 4 of 4) sorted by relevance
67 SimpleDateFormat dateFormat = new SimpleDateFormat("EEE MMM dd HH:mm:ss zzz yyyy"); in getTimestamp() local68 return dateFormat.format(new Date(time)); in getTimestamp()77 SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy.MM.dd_HH.mm.ss"); in getResultTimestamp() local78 return dateFormat.format(new Date()); in getResultTimestamp()
160 java.text.DateFormat dateFormat = DateFormat.getDateFormat(mContext); in testFormatMethods() local161 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 …]
93 SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy.MM.dd-HH.mm.ss", Locale.ENGLISH); in getReportBaseName() local94 String date = dateFormat.format(new Date()); in getReportBaseName()
390 SimpleDateFormat dateFormat = new SimpleDateFormat("EEE MMM dd HH:mm:ss zzz yyyy"); in toReadableDateString() local391 return dateFormat.format(new Date(time)); in toReadableDateString()