org.apache.oozie.client.rest
Class JsonUtils
java.lang.Object
org.apache.oozie.client.rest.JsonUtils
public class JsonUtils
- extends Object
Json utils methods.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JsonUtils
public JsonUtils()
formatDateRfc822
public static String formatDateRfc822(Date date,
String timeZoneId)
- Format a Date in RFC822 with the given time zone.
- Parameters:
date
- date to format.timeZoneId
- the time zone to use
- Returns:
- RFC822 for the date,
null
if the date was null.
formatDateRfc822
public static String formatDateRfc822(Date date)
- Format a Date in RFC822 GMT.
- Parameters:
date
- date to format.
- Returns:
- RFC822 GMT for the date,
null
if the date was null.
Copyright © 2013 Apache Software Foundation. All Rights Reserved.