List of utility methods to do SQL Time Format
String | formatTime(Time time, String format) format Time SimpleDateFormat sf = new SimpleDateFormat(format); return sf.format(time); |
String | formatTimeToFloat(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); |
String | formatToDateStr(long millis) format To Date Str return getDateFormat(DEFAULT_DATE_PATTERN).format(new Date(millis)); |