org.dasein.util
Class CalendarWrapper
java.lang.Object
org.dasein.util.CalendarWrapper
- All Implemented Interfaces:
- Serializable
public class CalendarWrapper
- extends Object
- implements Serializable
Creates sanity out of the utter crap known as the Calendar class by
wrapping common methods in bean-friendly calls.
Last modified: $Date: 2006/12/05 16:58:44 $
- Version:
- $Revision: 1.9 $
- Author:
- George Reese
- See Also:
- Serialized Form
SECOND
public static final long SECOND
- See Also:
- Constant Field Values
MINUTE
public static final long MINUTE
- See Also:
- Constant Field Values
HOUR
public static final long HOUR
- See Also:
- Constant Field Values
DAY
public static final long DAY
- See Also:
- Constant Field Values
WEEK
public static final long WEEK
- See Also:
- Constant Field Values
MONTH
public static final long MONTH
- See Also:
- Constant Field Values
YEAR
public static final long YEAR
- See Also:
- Constant Field Values
DECADE
public static final long DECADE
- See Also:
- Constant Field Values
CENTURY
public static final long CENTURY
- See Also:
- Constant Field Values
MILLENIUM
public static final long MILLENIUM
- See Also:
- Constant Field Values
calendar
public Calendar calendar
CalendarWrapper
public CalendarWrapper()
CalendarWrapper
public CalendarWrapper(Locale loc)
CalendarWrapper
public CalendarWrapper(Calendar cal)
getCalendar
public Calendar getCalendar()
getDate
public Date getDate()
getDaysFrom
public int getDaysFrom(long then)
getDaysFrom
public int getDaysFrom(Date then)
getDaysFrom
public int getDaysFrom(CalendarWrapper then)
getDaysFromNow
public int getDaysFromNow()
getHoursFrom
public int getHoursFrom(long then)
getHoursFrom
public int getHoursFrom(Date then)
getHoursFrom
public int getHoursFrom(CalendarWrapper then)
getYearsFrom
public int getYearsFrom(CalendarWrapper then)
getYearsFromNow
public int getYearsFromNow()
getDayOfMonth
public int getDayOfMonth()
getDayOfWeek
public int getDayOfWeek()
getDaysInMonth
public int getDaysInMonth()
getHour
public int getHour()
getMidnight
public CalendarWrapper getMidnight()
getMillisecond
public int getMillisecond()
getMinute
public int getMinute()
getMonth
public int getMonth()
getSecond
public int getSecond()
getTime
public long getTime()
getYear
public int getYear()
setDate
public void setDate(Date d)
isLeapYear
public boolean isLeapYear()
isWeekend
public boolean isWeekend()
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 1996-2009 enStratus Networks LLC – Available under the terms of the Artistic License 2.0.