org.eclipse.jgit.util
Class GitDateFormatter
java.lang.Object
org.eclipse.jgit.util.GitDateFormatter
public class GitDateFormatter
- extends Object
A utility for formatting dates according to the Git log.date formats plus
extensions.
GitDateFormatter.Format
defines the available types
Method Summary |
String |
formatDate(PersonIdent ident)
Format committer, author or tagger ident according to this formatter's
specification. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GitDateFormatter
public GitDateFormatter(GitDateFormatter.Format format)
- Create a new Git oriented date formatter
- Parameters:
format
-
formatDate
public String formatDate(PersonIdent ident)
- Format committer, author or tagger ident according to this formatter's
specification.
- Parameters:
ident
-
- Returns:
- formatted version of date, time and time zone
Copyright © 2012. All Rights Reserved.