List of utility methods to do Hour Format
String | formatWithSql92Date(Date date) format With Sql Date if (date != null) { SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd hh : mm : ss"); return "{ts '" + sdf.format(date) + "'}"; } else { return "NULL"; |
String | formatXEP0082Date(Date date) Formats a Date into a XEP-0082 - XMPP Date and Time Profiles string. synchronized (XEP_0082_UTC_FORMAT) { return XEP_0082_UTC_FORMAT.format(date); |
String | formatXsdDate(final Date date) format Xsd Date return getXsdDateFormat().format(date);
|
String | formatXsdDateTime(Date d) format Xsd Date Time return formatDate(d, XSD_DATETIME_FORMAT);
|
String | getFormattedHoursByMinutes(int minutes) get Formatted Hours By Minutes return formatDate(new DateTime(startOfToday()).plusMinutes(minutes).toDate(), "H:mm"); |
String | getHHmm() get H Hmm return simpleTimeFormat.format(new Date()); |
String | getHHMM(Date date) get HHMM return get(date, HHMM);
|
String | getHHMMSS() Returns the current hh:mm:ss time. SimpleDateFormat format = new SimpleDateFormat("hh:mm:ss"); return format.format(Calendar.getInstance().getTime()); |
DateFormat | getHHMMSS() get HHMMSS return new SimpleDateFormat("HH:mm:ss"); |
String | getHHmmSS() get H Hmm SS Date d = new Date(); SimpleDateFormat sdf = new SimpleDateFormat("HH:mm:ss"); return sdf.format(d); |