org.eclipse.jetty.toolchain.version.util
Class DateUtil
java.lang.Object
org.eclipse.jetty.toolchain.version.util.DateUtil
public final class DateUtil
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UTC
public static final TimeZone UTC
DateUtil
public DateUtil()
createIso8601Format
public static SimpleDateFormat createIso8601Format()
createRfc2822Format
public static SimpleDateFormat createRfc2822Format()
formatIso8601
public static String formatIso8601(Date date)
- Format a date to in ISO 8601 format (as used by GIT) adjusted to UTC timezone.
formatRfc2822
public static String formatRfc2822(Date date)
- Format a date to in RFC 2822 format (as used by GIT) adjusted to UTC timezone.
parseIso8601
public static Date parseIso8601(String rawstr)
throws ParseException
- Throws:
ParseException
Copyright © 1995-2012 Mort Bay Consulting. All Rights Reserved.