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 doublegetExcelSerialDayNumber(Date date, Locale locale, TimeZone timeZone) static doublegetGregorianToJulianDay(int year, int month, int day) static DateFormatstatic Localestatic StringgetLocaleCode(Locale locale) static TimeZonegetTimeZone(String id) static Stringstatic booleanisLeapYear(int year) static TimeZoneresolveFormatTimeZone(String timeZoneId, TimeZone reportTimeZone) static DatetranslateToTimezone(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
-