org.eclipse.jgit.util
Class GitDateFormatter

java.lang.Object
  extended by 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


Nested Class Summary
static class GitDateFormatter.Format
          Git and JGit formats
 
Constructor Summary
GitDateFormatter(GitDateFormatter.Format format)
          Create a new Git oriented date formatter
 
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
 

Constructor Detail

GitDateFormatter

public GitDateFormatter(GitDateFormatter.Format format)
Create a new Git oriented date formatter

Parameters:
format -
Method Detail

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.