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