net.sourceforge.jpotpourri.util
Class DateUtil

java.lang.Object
  extended by net.sourceforge.jpotpourri.util.DateUtil

public class DateUtil
extends java.lang.Object

Author:
christoph_pickl@users.sourceforge.net

Constructor Summary
protected DateUtil()
           
 
Method Summary
static int compareWithoutMilliSeconds(java.util.Date d1, java.util.Date d2)
           
static int compareWithoutTime(java.util.Date d1, java.util.Date d2)
           
static java.util.Calendar getCalendarWithoutMilliSeconds(java.util.Date date)
           
static java.util.Calendar getCalendarWithoutTime(java.util.Date date)
           
static java.util.Date getCurrentDateWithoutTimeAndSubtractedDays(int daysBefore)
           
static int getCurrentYear()
           
static java.util.Date getDateWithoutMilliSeconds(java.util.Date date)
           
static java.util.Date getDateWithoutTime(java.util.Date date)
           
static java.util.Date getDateWithoutTimeAndChangedDays(java.util.Date date, int changeDays)
           
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DateUtil

protected DateUtil()
Method Detail

getCalendarWithoutTime

public static java.util.Calendar getCalendarWithoutTime(java.util.Date date)

getCalendarWithoutMilliSeconds

public static java.util.Calendar getCalendarWithoutMilliSeconds(java.util.Date date)

getDateWithoutTime

public static java.util.Date getDateWithoutTime(java.util.Date date)

getDateWithoutMilliSeconds

public static java.util.Date getDateWithoutMilliSeconds(java.util.Date date)

getDateWithoutTimeAndChangedDays

public static java.util.Date getDateWithoutTimeAndChangedDays(java.util.Date date,
                                                              int changeDays)

getCurrentDateWithoutTimeAndSubtractedDays

public static java.util.Date getCurrentDateWithoutTimeAndSubtractedDays(int daysBefore)
Parameters:
daysBefore - non negative number

getCurrentYear

public static int getCurrentYear()

compareWithoutTime

public static int compareWithoutTime(java.util.Date d1,
                                     java.util.Date d2)

compareWithoutMilliSeconds

public static int compareWithoutMilliSeconds(java.util.Date d1,
                                             java.util.Date d2)

main

public static void main(java.lang.String[] args)
                 throws java.text.ParseException
Throws:
java.text.ParseException


Copyright © 2008. All Rights Reserved.