Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
org.jfree.formula.util.DateUtil
public class DateUtil
extends java.lang.Object
Method Summary | |
static Calendar |
|
static java.sql.Date |
|
static Date |
|
static Time |
|
static void |
|
static Date |
|
static Date |
|
static Number |
|
static Date |
|
static Date |
|
static Number |
|
public static java.sql.Date createDate(int year, int month, int day, LocalizationContext context)
public static Date createDateTime(int year, int month, int day, int hour, int minute, int second, LocalizationContext context)
public static Time createTime(int hour, int minute, int second, LocalizationContext context)
public static Date normalizeDate(Date fromDate, Type toType)
Converts aDate
value according to the requestedType
to the properDate
subclasses (java.sql.Time
,java.sql.Date
) if needed. If the requested type is unknown, no conversion takes place and the input date is returned.
- Parameters:
fromDate
- The date to convert.toType
- The requested type of date.
- Returns:
- The converted date.