Package org.eclipse.jgit.util
Enum Class GitDateFormatter.Format
- All Implemented Interfaces:
Serializable
,Comparable<GitDateFormatter.Format>
,Constable
- Enclosing class:
- GitDateFormatter
Git and JGit formats
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionGit format: Time and original time zoneGit format: ISO 8601 plus time zoneGit format: Date and time in local time zoneLocale dependent formatting with original time zoneLocale dependent formatting in local time zoneGit format: Seconds size 1970 in UTC plus time zoneGit format: Relative time stampGit formt: RFC 2822 plus time zoneGit format: YYYY-MM-DD -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic GitDateFormatter.Format
Returns the enum constant of this class with the specified name.static GitDateFormatter.Format[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
DEFAULT
Git format: Time and original time zone -
RELATIVE
Git format: Relative time stamp -
LOCAL
Git format: Date and time in local time zone -
ISO
Git format: ISO 8601 plus time zone -
RFC
Git formt: RFC 2822 plus time zone -
SHORT
Git format: YYYY-MM-DD -
RAW
Git format: Seconds size 1970 in UTC plus time zone -
LOCALE
Locale dependent formatting with original time zone -
LOCALELOCAL
Locale dependent formatting in local time zone
-
-
Constructor Details
-
Format
private Format()
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-