Class GitDateFormatter


  • public class GitDateFormatter
    extends Object
    A utility for formatting dates according to the Git log.date formats plus extensions.

    The enum GitDateFormatter.Format defines the available types.

    • Method Detail

      • formatDate

        public String formatDate​(PersonIdent ident)
        Format committer, author or tagger ident according to this formatter's specification.
        Parameters:
        ident - a PersonIdent object.
        Returns:
        formatted version of date, time and time zone