Java Utililty Methods SQL Time Format

List of utility methods to do SQL Time Format

Description

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

Method

StringformatTime(Time time, String format)
format Time
SimpleDateFormat sf = new SimpleDateFormat(format);
return sf.format(time);
StringformatTimeToFloat(Time inputTime)
Method used in constructing the appointment scheduling py script input.
DateTime jodaTime = new DateTime(inputTime);
int secsTime = jodaTime.getSecondOfDay();
long beforeRound = Math.round((secsTime / 60.0d / 60.0d) * 10);
float result = beforeRound / 10;
return String.valueOf(result);
StringformatToDateStr(long millis)
format To Date Str
return getDateFormat(DEFAULT_DATE_PATTERN).format(new Date(millis));