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 $
|
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 |
TimeUtil
public TimeUtil()
getDate
public static Date getDate(int year,
int month,
int day)
- constructs a date from the given fields
- Parameters:
year - year of the datemonth - month (1-12) of the dateday - 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)