net.sf.statcvs.util
Class DateUtils

java.lang.Object
  extended bynet.sf.statcvs.util.DateUtils

public class DateUtils
extends java.lang.Object

Utility functions for date handling

Version:
$Id: DateUtils.java,v 1.10 2003/03/18 10:33:57 lukasz Exp $
Author:
Lukasz Pekacki

Constructor Summary
DateUtils()
           
 
Method Summary
static java.util.Date convertFromLogTime(java.lang.String modTime)
          Returns a date from a given modTime String of a cvs logfile
static java.lang.String currentDate()
          Method currentDate.
static java.lang.String getDateAndTime(java.util.Date date)
          Method getDateAndTime.
static java.lang.String getShortDate(java.util.Date date)
          Method getShortDate.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DateUtils

public DateUtils()
Method Detail

currentDate

public static java.lang.String currentDate()
Method currentDate.

Returns:
String of the today date

getShortDate

public static java.lang.String getShortDate(java.util.Date date)
Method getShortDate.

Parameters:
date - input
Returns:
String short representation of the given Date

getDateAndTime

public static java.lang.String getDateAndTime(java.util.Date date)
Method getDateAndTime.

Parameters:
date - input Date
Returns:
String returns date format compliant date and time string

convertFromLogTime

public static java.util.Date convertFromLogTime(java.lang.String modTime)
Returns a date from a given modTime String of a cvs logfile

Parameters:
modTime - modTime String of a cvs logfile
Returns:
Date date from a given modTime String of a cvs logfile