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