List of utility methods to do Time Now
String | currentTimeStr() current Time Str return toDateString(new Date(), DEFAULT_FORMAT_TIME); |
String | currentTimeString() current Time String return DATE_FORMAT_PART.format(Calendar.getInstance().getTime());
|
String | currentTimeString(String pattern) Formats NOW into a specific pattern. SimpleDateFormat df = new SimpleDateFormat(pattern); return df.format(new Date()); |
String | currtimeToString8() currtime To String return dateToString(new Date(), "yyyyMMdd"); |
String | get_cur_datetime() gecudatetime String DATE_FORMAT_NOW = "yyyy-MM-dd HH:mm:ss"; Calendar cal = Calendar.getInstance(); SimpleDateFormat sdf = new SimpleDateFormat(DATE_FORMAT_NOW); return sdf.format(cal.getTime()); |
String | getCurDateBefore(long time) get Cur Date Before SimpleDateFormat sdf = new SimpleDateFormat(YYYY_MM_DD_HH_MM_SS); return sdf.format(new Date().getTime() - time); |
String | getCurDateTime() get Cur Date Time return getCurDateTime(DEFAULTFORMAT);
|
String | getCurDateTIme() get Cur Date T Ime return new SimpleDateFormat("yyyyMMdd_HHmmss").format(new Date()); |
String | getCurentTimeDirsPath() Creating file structure for next format /yyyy/MM/dd/ return DATA_DIR_FORMAT.format(new Date()); |
Date | getCurrDateTime() get Curr Date Time return stringToDate(getCurrTime());
|