nl.knowledgeplaza.util
Class CalendarWrapper

java.lang.Object
  extended by nl.knowledgeplaza.util.CalendarWrapper

public class CalendarWrapper
extends Object

Wrap a calendar and make it easier accessible

Version:
$Revision: 1.2 $

Field Summary
static long CENTURY
           
static long DAY
           
static long DECADE
           
static long HOUR
           
 Calendar iCalendar
           
static long MILLENIUM
           
static long MINUTE
           
static long MONTH
           
static long SECOND
           
static long WEEK
           
static long YEAR
           
 
Constructor Summary
CalendarWrapper()
           
CalendarWrapper(Calendar cal)
           
CalendarWrapper(Locale loc)
           
 
Method Summary
 Calendar getCalendar()
           
 Date getDate()
           
 int getDayOfMonth()
           
 int getDayOfWeek()
           
 int getDaysFrom(CalendarWrapper then)
           
 int getDaysFrom(Date then)
           
 int getDaysFrom(long then)
           
 int getDaysFromNow()
           
 int getDaysInMonth()
           
 int getHour()
           
 int getHoursFrom(CalendarWrapper then)
           
 int getHoursFrom(Date then)
           
 int getHoursFrom(long then)
           
 CalendarWrapper getMidnight()
           
 int getMillisecond()
           
 int getMinute()
           
 int getMonth()
           
 int getSecond()
           
 long getTime()
           
 int getYear()
           
 int getYearsFrom(CalendarWrapper then)
           
 int getYearsFromNow()
           
 boolean isLeapYear()
           
 boolean isWeekday()
           
 boolean isWeekend()
           
 void setDate(Date d)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

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 Calendar iCalendar
Constructor Detail

CalendarWrapper

public CalendarWrapper()

CalendarWrapper

public CalendarWrapper(Locale loc)

CalendarWrapper

public CalendarWrapper(Calendar cal)
Method Detail

getCalendar

public Calendar getCalendar()

getDate

public Date getDate()

setDate

public void setDate(Date d)

toString

public String toString()
Overrides:
toString in class Object

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()

isLeapYear

public boolean isLeapYear()

isWeekend

public boolean isWeekend()

isWeekday

public boolean isWeekday()


Copyright © 2012 KnowledgePlaza. All Rights Reserved.