nl.knowledgeplaza.util
Class CalendarWrapper
java.lang.Object
nl.knowledgeplaza.util.CalendarWrapper
public class CalendarWrapper
- extends java.lang.Object
Wrap a calendar and make it easier accessible
- Version:
- $Revision: 1.2 $
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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
iCalendar
public java.util.Calendar iCalendar
CalendarWrapper
public CalendarWrapper()
CalendarWrapper
public CalendarWrapper(java.util.Locale loc)
CalendarWrapper
public CalendarWrapper(java.util.Calendar cal)
getCalendar
public java.util.Calendar getCalendar()
getDate
public java.util.Date getDate()
setDate
public void setDate(java.util.Date d)
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
getDaysFrom
public int getDaysFrom(long then)
getDaysFrom
public int getDaysFrom(java.util.Date then)
getDaysFrom
public int getDaysFrom(CalendarWrapper then)
getDaysFromNow
public int getDaysFromNow()
getHoursFrom
public int getHoursFrom(long then)
getHoursFrom
public int getHoursFrom(java.util.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()
isLeapYear
public boolean isLeapYear()
isWeekend
public boolean isWeekend()
isWeekday
public boolean isWeekday()
Copyright © 2010. All Rights Reserved.