List of utility methods to do Time to String
String | timeToString(long time) time To String double timeSec = time / 1000.0; double timeMin = timeSec / 60.0; return "" + time + " ms, " + _doubleFormatter.format(timeSec) + " sec, " + _doubleFormatter.format(timeMin) + " min"; |
String | toString(Calendar modifiedTime, String pattern) to String SimpleDateFormat formatter = new SimpleDateFormat(pattern); formatter.setTimeZone(IST); return formatter.format(modifiedTime.getTime()); |
String | toString(Date d, boolean includeTime) to String if (d != null) { return new SimpleDateFormat(includeTime ? DATETIME_PATTERN : DATE_PATTERN).format(d); return null; |
String | toString(Date time) to String return getDateString(time, "yyyy-MM-dd HH:mm:ss"); |
String | toString(long time) to String return toIsoString(time);
|