org.eobjects.metamodel.util
Class DateUtils

java.lang.Object
  extended by org.eobjects.metamodel.util.DateUtils

public final class DateUtils
extends Object

Various utility methods pertaining to date handling

Author:
Kasper Sørensen

Field Summary
static long MILLISECONDS_PER_DAY
           
static long MILLISECONDS_PER_HOUR
           
static long MILLISECONDS_PER_MINUTE
           
static long MILLISECONDS_PER_SECOND
           
 
Method Summary
static Calendar createCalendar()
           
static DateFormat createDateFormat()
           
static DateFormat createDateFormat(String datePattern)
           
static Date get(Date date)
           
static Date get(Date originalDate, int daysDiff)
           
static Date get(int year, Month month, int dayOfMonth)
           
static int getDayOfMonth(Date date)
           
static Month getMonth(Date date)
           
static Weekday getWeekday(Date date)
           
static int getYear(Date date)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MILLISECONDS_PER_SECOND

public static final long MILLISECONDS_PER_SECOND
See Also:
Constant Field Values

MILLISECONDS_PER_MINUTE

public static final long MILLISECONDS_PER_MINUTE
See Also:
Constant Field Values

MILLISECONDS_PER_HOUR

public static final long MILLISECONDS_PER_HOUR
See Also:
Constant Field Values

MILLISECONDS_PER_DAY

public static final long MILLISECONDS_PER_DAY
See Also:
Constant Field Values
Method Detail

get

public static Date get(int year,
                       Month month,
                       int dayOfMonth)

get

public static Date get(Date date)

get

public static Date get(Date originalDate,
                       int daysDiff)

getYear

public static int getYear(Date date)

getMonth

public static Month getMonth(Date date)

getWeekday

public static Weekday getWeekday(Date date)

getDayOfMonth

public static int getDayOfMonth(Date date)

createCalendar

public static Calendar createCalendar()

createDateFormat

public static DateFormat createDateFormat()

createDateFormat

public static DateFormat createDateFormat(String datePattern)


Copyright © 2007-2013. All Rights Reserved.