public class JavaDateUtil extends Object
| Constructor and Description |
|---|
JavaDateUtil() |
| Modifier and Type | Method and Description |
|---|---|
static TimeIndex |
fromJavaDate(Date date,
TimeDomain domain)
Convert a Java Date to a TimeIndex in a given domain.
|
static TimeIndex |
fromJavaDate(Date date,
TimeDomain domain,
Adjustment adjustment,
boolean UTC)
Convert a Java Date to a TimeIndex in a given domain, with tuning parameters.
|
static Date |
toJavaDate(TimeIndex t)
Return the Java date corresponding to the given time index.
|
public static Date toJavaDate(TimeIndex t) throws T2Exception
t - a non-null time indexT2Exceptionpublic static TimeIndex fromJavaDate(Date date, TimeDomain domain) throws T2Exception
date - a non-null Java datedomain - a non-null time domainT2Exceptionpublic static TimeIndex fromJavaDate(Date date, TimeDomain domain, Adjustment adjustment, boolean UTC) throws T2Exception
date - a non-null Java datedomain - a non-null time domainadjustment - a non-null adjustmentUTC - if true, perform the conversion in the UTC time zone, else in the local time zoneT2ExceptionCopyright © 2017. All rights reserved.