Constructor and Description |
---|
JsonUtils() |
Modifier and Type | Method and Description |
---|---|
static String |
formatDateRfc822(Date date)
Format a Date in RFC822 GMT.
|
static String |
formatDateRfc822(Date date,
String timeZoneId)
Format a Date in RFC822 with the given time zone.
|
public JsonUtils()
public static String formatDateRfc822(Date date, String timeZoneId)
date
- date to format.timeZoneId
- the time zone to usenull
if the date was null.
public static String formatDateRfc822(Date date)
date
- date to format.null
if the date was null.
Copyright © 2014 Apache Software Foundation. All Rights Reserved.