public class GitDateFormatter
extends java.lang.Object
The enum GitDateFormatter.Format
defines the
available types.
Modifier and Type | Class and Description |
---|---|
static class |
GitDateFormatter.Format
Git and JGit formats
|
Modifier and Type | Field and Description |
---|---|
private java.text.DateFormat |
dateTimeInstance |
private java.text.DateFormat |
dateTimeInstance2 |
private GitDateFormatter.Format |
format |
Constructor and Description |
---|
GitDateFormatter(GitDateFormatter.Format format)
Create a new Git oriented date formatter
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
formatDate(PersonIdent ident)
Format committer, author or tagger ident according to this formatter's
specification.
|
private java.text.DateFormat dateTimeInstance
private java.text.DateFormat dateTimeInstance2
private final GitDateFormatter.Format format
public GitDateFormatter(GitDateFormatter.Format format)
format
- a GitDateFormatter.Format
object.public java.lang.String formatDate(PersonIdent ident)
ident
- a PersonIdent
object.