Java Utililty Methods Hour Format

List of utility methods to do Hour Format

Description

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

Method

Stringformat(Date date)
format
return COMMON_FORMAT.get().format(date);
Stringformat(Date date)
format
return formatDate(date, _DEFAULT4);
Stringformat(Date date)
format
return getDateFormat(e).format(date);
Stringformat(Date date)
Formats a string in known date-time form from a date object, using default time zone.
return format(date, DEFAULT_TIME_ZONE);
Stringformat(Date date)
format
DateFormat format = new SimpleDateFormat(DATE_FORMAT);
format.setTimeZone(UTC);
return format.format(date);
Stringformat(Date date)
format
return format(date, true);
Stringformat(Date date)
format
return date == null ? "" : getDateFormat().format(date);
Stringformat(Date date)
format
return getDateFormat().format(date);
Stringformat(Date date)
format
return format(date, FORMAT_FULL_GENERIC);
Stringformat(Date date)
Format a Date object as a valid UTC Date String, per OAI-PMH guidelines http://www.openarchives.org/OAI/openarchivesprotocol.html#DatestampsResponses
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss'Z'");
sdf.setTimeZone(TimeZone.getTimeZone("ZULU"));
String ret = sdf.format(date);
return ret;