Class HSSFDateUtil
java.lang.Object
org.pentaho.reporting.libraries.formula.util.HSSFDateUtil
Contains methods for dealing with Excel dates.
Modified by Cedric Pronzato
Modified by Cedric Pronzato
- Author:
- Michael Harhen, Glen Stampoultzis (glens at apache.org), Dan Sherman (dsherman at isisph.com), Hack Kampbjorn (hak at 2mba.dk)
-
Method Summary
Modifier and TypeMethodDescriptionstatic intcomputeZeroDate(String config, boolean excelBugCompatible) static BigDecimalgetExcelDate(Date date) static BigDecimalgetExcelDate(Date date, boolean excelBugCompatible, int zeroDate) static DategetJavaDate(BigDecimal date) Given a excel date, converts it into a Date.static DategetJavaDate(BigDecimal date, boolean excelBugCompatible, int zeroDate)
-
Method Details
-
computeZeroDate
-
getExcelDate
-
getExcelDate
-
getJavaDate
Given a excel date, converts it into a Date. Assumes 1900 date windowing.- Parameters:
date- the Excel Date- Returns:
- Java representation of a date (null if error)
-
getJavaDate
-