PSE 2000 Group 4

jobmatch.business.util
Class TimeUtil

java.lang.Object
  |
  +--jobmatch.business.util.TimeUtil

public class TimeUtil
extends Object

Time Utilities

Since:
May 23 2000
Version:
$Revision: 1.5 $

Constructor Summary
TimeUtil()
           
 
Method Summary
static Date getDate(int year, int month, int day)
          constructs a date from the given fields
static int getDay(Date date)
          extracts the day ot the month of the date range of month (1-31)
static int getMonth(Date date)
          extracts the month of the date range of month (1-12)
static Timestamp getTimeNow()
           
static int getYear(Date date)
          extracts the year from the date
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TimeUtil

public TimeUtil()
Method Detail

getDate

public static Date getDate(int year,
                           int month,
                           int day)
constructs a date from the given fields
Parameters:
year - year of the date
month - month (1-12) of the date
day - day (1-31) of the date

getTimeNow

public static Timestamp getTimeNow()
Returns:
Timestamp with the current system time

getYear

public static int getYear(Date date)
extracts the year from the date

getMonth

public static int getMonth(Date date)
extracts the month of the date range of month (1-12)

getDay

public static int getDay(Date date)
extracts the day ot the month of the date range of month (1-31)

PSE 2000 Group 4