Class JRDataUtils

java.lang.Object
net.sf.jasperreports.engine.util.JRDataUtils

public final class JRDataUtils extends Object
Author:
Lucian Chirita (lucianc@users.sourceforge.net)
  • Field Details

  • Method Details

    • getIsoDateFormat

      public static DateFormat getIsoDateFormat()
    • getLocaleCode

      public static String getLocaleCode(Locale locale)
    • getLocale

      public static Locale getLocale(String code)
    • getTimeZoneId

      public static String getTimeZoneId(TimeZone tz)
    • getTimeZone

      public static TimeZone getTimeZone(String id)
    • resolveFormatTimeZone

      public static TimeZone resolveFormatTimeZone(String timeZoneId, TimeZone reportTimeZone)
    • getExcelSerialDayNumber

      public static double getExcelSerialDayNumber(Date date, Locale locale, TimeZone timeZone)
    • getGregorianToJulianDay

      public static double getGregorianToJulianDay(int year, int month, int day)
    • isLeapYear

      public static boolean isLeapYear(int year)
    • translateToTimezone

      public 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.
      Parameters:
      value - the value to translate
      tz - the timezone to translate to
      Returns:
      the date translated to the specified timezone