Java Utililty Methods Time Now

List of utility methods to do Time Now

Description

The list of methods to do Time Now are organized into topic(s).

Method

StringcurrentTime()
gets current time's string format like "HH:mm:ss"
return getTimeFormat(now());
StringcurrentTime()
current Time
SimpleDateFormat df = new SimpleDateFormat("EEE MMM dd HH:mm:ss Z yyyy", Locale.ENGLISH);
String sendtime = df.format(new Date());
return sendtime;
StringcurrentTime()
current Time
return formatTime(Calendar.getInstance());
StringcurrentTime()
current Time
return timeFormat.format(now());
StringcurrentTime()
current Time
Date date = new Date();
return seconParse.format(date);
StringcurrentTime()
current Time
return formatDate(new Date(), "yyyyMMddhhmmssSSS");
StringcurrentTime()
current Time
return reformattedTime(System.currentTimeMillis());
StringcurrentTimedDate()
Get the current date and time in sting form
Calendar cal = Calendar.getInstance();
SimpleDateFormat sdf = new SimpleDateFormat(DATE_FORMAT_NOW);
return sdf.format(cal.getTime());
longcurrentTimeMillis()
current Time Millis
return getToday().getTime();
StringcurrentTimePath(String basePath)
current Time Path
String backupTime = basePath + "/" + COMPACT_DATE_TIME_ID.format(new Date());
return backupTime;