List of utility methods to do Hour Format
String | format_default(Date time) formadefault return FORMATER_3.format(time);
|
String | formatAbsoluteTime(long time) format Absolute Time return formatAbsoluteTime(new Date(time)); |
String | formatAddTime(Date addTime) format Add Time Calendar calendar = Calendar.getInstance(); int curYear = calendar.get(Calendar.YEAR); int curMonth = calendar.get(Calendar.MONTH); int curDay = calendar.get(Calendar.DATE); calendar.setTime(addTime); int addYear = calendar.get(Calendar.YEAR); int addMonth = calendar.get(Calendar.MONTH); int addDay = calendar.get(Calendar.DATE); ... |
String | formatAllDate(Date date) format All Date return format(date, defaultDatePattern1);
|
String | formatAsCassandraDateTime(Date date) Formats as a date time string till mins SimpleDateFormat parser = new SimpleDateFormat(); parser.setLenient(false); parser.applyPattern(ISO8601_DATETIME_ZONE); return parser.format(date); |
String | formatAsDateAndTime(Date date) format As Date And Time if (date != null) { return sdfDateAndTime.format(date); return null; |
String | formatAsHour(long l) format As Hour return dfHour.format(new Date(l * 60 * 1000)); |
String | formatAsRoundTripDate(Date date) Formats the given date as round-trip date string SimpleDateFormat roundTripDateFormat = new SimpleDateFormat(ROUND_TRIP_DATE_FORMAT); return roundTripDateFormat.format(date); |
String | formatAsXsdDateTime(Date date) Returns a date formatted according to the xsd:dateTime data type XSD_DATE_TIME_FORMAT.setTimeZone(TimeZone.getDefault()); StringBuffer buffer = new StringBuffer(XSD_DATE_TIME_FORMAT.format(date)); buffer.insert(buffer.length() - 2, ':'); return buffer.toString(); |
String | formatCalendarForXpath(Calendar date) format Calendar For Xpath return "xs:dateTime('" + getXpathFormattedDate(date.getTime()) + 'T' + getXpathFormattedTime(date.getTime()) + getTimeZone(date.getTime()) + "')"; |