net.sourceforge.cruisecontrol.util
Class CVSDateUtil

java.lang.Object
  extended bynet.sourceforge.cruisecontrol.util.CVSDateUtil

public final class CVSDateUtil
extends java.lang.Object


Method Summary
static java.lang.String formatCVSDate(java.util.Date date)
          Formats a given date to the format required by commands passed to CVS.
static java.util.Date parseCVSDate(java.lang.String text)
          Parses a text in CVS date format as a date.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

formatCVSDate

public static java.lang.String formatCVSDate(java.util.Date date)
Formats a given date to the format required by commands passed to CVS.

Parameters:
date - the date

parseCVSDate

public static java.util.Date parseCVSDate(java.lang.String text)
                                   throws java.text.ParseException
Parses a text in CVS date format as a date.

Parameters:
text - the date to parse
Returns:
a date in the default timezone
Throws:
java.text.ParseException