Package org.eclipse.jgit.util
Class GitDateFormatter
java.lang.Object
org.eclipse.jgit.util.GitDateFormatter
A utility for formatting dates according to the Git log.date formats plus
extensions.
The enum GitDateFormatter.Format defines the
available types.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate DateFormatprivate DateFormatprivate final GitDateFormatter.Format -
Constructor Summary
ConstructorsConstructorDescriptionCreate a new Git oriented date formatter -
Method Summary
Modifier and TypeMethodDescriptionformatDate(PersonIdent ident) Format committer, author or tagger ident according to this formatter's specification.
-
Field Details
-
dateTimeInstance
-
dateTimeInstance2
-
format
-
-
Constructor Details
-
GitDateFormatter
Create a new Git oriented date formatter- Parameters:
format- aGitDateFormatter.Formatobject.
-
-
Method Details
-
formatDate
Format committer, author or tagger ident according to this formatter's specification.- Parameters:
ident- aPersonIdentobject.- Returns:
- formatted version of date, time and time zone
-