Package net.sf.jasperreports.engine.util
Class JRDataUtils
java.lang.Object
net.sf.jasperreports.engine.util.JRDataUtils
- Author:
- Lucian Chirita (lucianc@users.sourceforge.net)
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic double
getExcelSerialDayNumber
(Date date, Locale locale, TimeZone timeZone) static double
getGregorianToJulianDay
(int year, int month, int day) static DateFormat
static Locale
static String
getLocaleCode
(Locale locale) static TimeZone
getTimeZone
(String id) static String
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.
-
Field Details
-
JULIAN_0000
public static final double JULIAN_0000- See Also:
-
JULIAN_1900
public static final double JULIAN_1900- See Also:
-
ISO_DATE_PATTERN
- See Also:
-
-
Method Details
-
getIsoDateFormat
-
getLocaleCode
-
getLocale
-
getTimeZoneId
-
getTimeZone
-
resolveFormatTimeZone
-
getExcelSerialDayNumber
-
getGregorianToJulianDay
public static double getGregorianToJulianDay(int year, int month, int day) -
isLeapYear
public static boolean isLeapYear(int year) -
translateToTimezone
Returns a translated date value that has the same fields in a specified timezone as the passed value in the default timezone.- Parameters:
value
- the value to translatetz
- the timezone to translate to- Returns:
- the date translated to the specified timezone
-