public final class DateUtil extends Object
Constructor and Description |
---|
DateUtil() |
Modifier and Type | Method and Description |
---|---|
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) |
public static final TimeZone UTC
public static SimpleDateFormat createIso8601Format()
public static SimpleDateFormat createRfc2822Format()
public static String formatIso8601(Date date)
public static String formatRfc2822(Date date)
public static Date parseIso8601(String rawstr) throws ParseException
ParseException
Copyright © 1995–2022 Mort Bay Consulting. All rights reserved.