org.eclipse.jetty.toolchain.version.util
Class DateUtil

java.lang.Object
  extended by org.eclipse.jetty.toolchain.version.util.DateUtil

public final class DateUtil
extends Object


Field Summary
static TimeZone UTC
           
 
Constructor Summary
DateUtil()
           
 
Method Summary
static SimpleDateFormat createIso8601Format()
           
static SimpleDateFormat createRfc2822Format()
           
static String formatIso8601(Date date)
          Format a date to in ISO 8601 format (as used by GIT) adjusted to UTC timezone.
static String formatRfc2822(Date date)
          Format a date to in RFC 2822 format (as used by GIT) adjusted to UTC timezone.
static Date parseIso8601(String rawstr)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

UTC

public static final TimeZone UTC
Constructor Detail

DateUtil

public DateUtil()
Method Detail

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.