Class DateUtil
java.lang.Object
org.eclipse.jetty.toolchain.version.util.DateUtil
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SimpleDateFormatstatic SimpleDateFormatstatic StringformatIso8601(Date date) Format a date to in ISO 8601 format (as used by GIT) adjusted to UTC timezone.static StringformatRfc2822(Date date) Format a date to in RFC 2822 format (as used by GIT) adjusted to UTC timezone.static DateparseIso8601(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
-