public final class JRDataUtils extends Object
Modifier and Type | Field and Description |
---|---|
static String |
ISO_DATE_PATTERN |
static double |
JULIAN_0000 |
static double |
JULIAN_1900 |
Modifier and Type | Method and Description |
---|---|
static double |
getExcelSerialDayNumber(Date date,
Locale locale,
TimeZone timeZone) |
static double |
getGregorianToJulianDay(int year,
int month,
int day) |
static DateFormat |
getIsoDateFormat() |
static Locale |
getLocale(String code) |
static String |
getLocaleCode(Locale locale) |
static TimeZone |
getTimeZone(String id) |
static String |
getTimeZoneId(TimeZone tz) |
static boolean |
isLeapYear(int year) |
static TimeZone |
resolveFormatTimeZone(String timeZoneId,
TimeZone reportTimeZone) |
static Date |
translateToTimezone(Date value,
TimeZone tz)
Returns a translated date value that has the same fields in a specified
timezone as the passed value in the default timezone.
|
public static final double JULIAN_0000
public static final double JULIAN_1900
public static final String ISO_DATE_PATTERN
public static DateFormat getIsoDateFormat()
public static TimeZone resolveFormatTimeZone(String timeZoneId, TimeZone reportTimeZone)
public static double getExcelSerialDayNumber(Date date, Locale locale, TimeZone timeZone)
public static double getGregorianToJulianDay(int year, int month, int day)
public static boolean isLeapYear(int year)
public static Date translateToTimezone(Date value, TimeZone tz)
value
- the value to translatetz
- the timezone to translate toCopyright © 2016. All rights reserved.