Modifier and Type | Method and Description |
---|---|
static String |
format(Date date)
Format HTTP dates.
|
static String |
format(long millis)
Format HTTP dates.
|
static String |
now() |
static Date |
parse(String httpFormatDateString)
Parse HTTP dates.
|
static String |
tomorrow() |
static String |
yesterday() |
public static String format(Date date)
date
- Date
public static String format(long millis)
millis
- Milliseconds
public static Date parse(String httpFormatDateString) throws ParseException
httpFormatDateString
- HTTP format date String
ParseException
- when the given string is not in HTTP date format
public static String now()
public static String yesterday()
public static String tomorrow()