Class DateUtil
java.lang.Object
org.eclipse.jetty.toolchain.version.util.DateUtil
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SimpleDateFormat
static SimpleDateFormat
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)
-
Field Details
-
UTC
-
-
Constructor Details
-
DateUtil
public DateUtil()
-
-
Method Details
-
createIso8601Format
-
createRfc2822Format
-
formatIso8601
Format a date to in ISO 8601 format (as used by GIT) adjusted to UTC timezone. -
formatRfc2822
Format a date to in RFC 2822 format (as used by GIT) adjusted to UTC timezone. -
parseIso8601
- Throws:
ParseException
-