List of utility methods to do HTTP Date
DateFormat | GetHTTPDateFormater() Get a new date formatter compatible with HTTP headers protocol. SimpleDateFormat f = new SimpleDateFormat(HTTP_DATE_FORMAT); f.setTimeZone(GMT_TZ); return f; |
SimpleDateFormat | getHttpDateFormatter() get Http Date Formatter if (httpFormatter.get() == null) { httpFormatter.set(new SimpleDateFormat("EEE, dd MMM yyyy HH:mm:ss zzz", Locale.US)); httpFormatter.get().setTimeZone(TimeZone.getTimeZone("GMT")); return httpFormatter.get(); |
String | getHttpDateString(Date date) Formats a Date according to the HTTP specification standard date format. return HTTP_DATE_FORMAT.format(date) + " GMT"; |