Searched refs:dateFormat (Results 1 – 3 of 3) 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()
156 java.text.DateFormat dateFormat = DateFormat.getDateFormat(mContext); in testFormatMethods() local157 assertNotNull(dateFormat); in testFormatMethods()159 String source = dateFormat.format(date); in testFormatMethods()160 Date parseDate = dateFormat.parse(source); in testFormatMethods()165 dateFormat = DateFormat.getLongDateFormat(mContext); in testFormatMethods()166 assertNotNull(dateFormat); in testFormatMethods()167 source = dateFormat.format(date); in testFormatMethods()169 dateFormat = DateFormat.getMediumDateFormat(mContext); in testFormatMethods()170 assertNotNull(dateFormat); in testFormatMethods()171 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()