java.util
Class Date

java.lang.Object
  extended by java.util.Date

public class Date
extends Object

Class designed to manage Date and Time. Note: some methods are deprecated.

Author:
Juan Antonio Brenha Moral

Constructor Summary
Date()
           
 
Method Summary
 boolean after(Date when)
          Compare 2 Date objects to know if current Date object is after than parameter
 boolean before(Date when)
          Compare 2 Date objects to know if current Date object is before than parameter
 int getDay()
          Get Day
 int getHours()
          Get Hours
 int getMinutes()
          Get Minutes
 int getMonth()
          Get Month
 int getSeconds()
          Get Seconds
 int getYear()
          Get year
 void setDay(int dd)
          Set Day
 void setHours(int hh)
          Set hours
 void setMinutes(int mm)
          Set Minutes
 void setMonth(int mm)
          Set Month
 void setSeconds(int ss)
          Set Seconds
 void setYear(int yyyy)
          Set Year
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Date

public Date()
Method Detail

setYear

public void setYear(int yyyy)
Set Year


getYear

public int getYear()
Get year

Returns:
the year

setMonth

public void setMonth(int mm)
Set Month

Parameters:
mm - the month

getMonth

public int getMonth()
Get Month

Returns:
the month

setDay

public void setDay(int dd)
Set Day

Parameters:
dd - the day

getDay

public int getDay()
Get Day

Returns:
the day

setHours

public void setHours(int hh)
Set hours

Parameters:
hh - the hours

getHours

public int getHours()
Get Hours

Returns:
the hours

setMinutes

public void setMinutes(int mm)
Set Minutes

Parameters:
mm - the minutes

getMinutes

public int getMinutes()
Get Minutes

Returns:
the minutes

setSeconds

public void setSeconds(int ss)
Set Seconds

Parameters:
ss - the seconds

getSeconds

public int getSeconds()
Get Seconds

Returns:
the seconds

before

public boolean before(Date when)
Compare 2 Date objects to know if current Date object is before than parameter

Parameters:
when - the date to compare with

after

public boolean after(Date when)
Compare 2 Date objects to know if current Date object is after than parameter

Parameters:
when - the date to compare with