public class DateGenerator extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
__01Jan1970 |
| Constructor and Description |
|---|
DateGenerator() |
| Modifier and Type | Method and Description |
|---|---|
void |
doFormatCookieDate(StringBuilder buf,
long date)
Format "EEE, dd-MMM-yy HH:mm:ss 'GMT'" for cookies
|
String |
doFormatDate(long date)
Format HTTP date "EEE, dd MMM yyyy HH:mm:ss 'GMT'"
|
static String |
formatCookieDate(long date)
Format "EEE, dd-MMM-yyyy HH:mm:ss 'GMT'" for cookies
|
static void |
formatCookieDate(StringBuilder buf,
long date)
Format "EEE, dd-MMM-yyyy HH:mm:ss 'GMT'" for cookies
|
static String |
formatDate(long date)
Format HTTP date "EEE, dd MMM yyyy HH:mm:ss 'GMT'"
|
public static final String __01Jan1970
public static String formatDate(long date)
date - the date in millisecondspublic static void formatCookieDate(StringBuilder buf, long date)
buf - the buffer to put the formatted date intodate - the date in millisecondspublic static String formatCookieDate(long date)
date - the date in millisecondspublic String doFormatDate(long date)
date - the date in millisecondspublic void doFormatCookieDate(StringBuilder buf, long date)
buf - the buffer to format the date intodate - the date in millisecondsCopyright © 1995-2016 Webtide. All Rights Reserved.