diff options
author | Dominik Stadler <centic@apache.org> | 2019-10-09 19:12:59 +0000 |
---|---|---|
committer | Dominik Stadler <centic@apache.org> | 2019-10-09 19:12:59 +0000 |
commit | b10f94cc75d00d2b215f3a148dd4e79bbaf2b1b3 (patch) | |
tree | 8d81cb6b541655373493c8c1bc3d6b0f2c6b9788 /src/testcases/org/apache/poi/ss/formula/functions | |
parent | 97c21e31b10a37365cf499dbe1c5345680c872df (diff) | |
download | poi-b10f94cc75d00d2b215f3a148dd4e79bbaf2b1b3.tar.gz poi-b10f94cc75d00d2b215f3a148dd4e79bbaf2b1b3.zip |
63779 Add support for the new Java date/time API added in Java 8
Deprecate HSSFDateUtil
Closes #160 on Github
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1868198 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/testcases/org/apache/poi/ss/formula/functions')
-rw-r--r-- | src/testcases/org/apache/poi/ss/formula/functions/TestDays360.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/testcases/org/apache/poi/ss/formula/functions/TestDays360.java b/src/testcases/org/apache/poi/ss/formula/functions/TestDays360.java index 159477057e..a20f444d70 100644 --- a/src/testcases/org/apache/poi/ss/formula/functions/TestDays360.java +++ b/src/testcases/org/apache/poi/ss/formula/functions/TestDays360.java @@ -24,10 +24,10 @@ import java.util.Calendar; import java.util.Date; import java.util.Locale; -import org.apache.poi.hssf.usermodel.HSSFDateUtil; import org.apache.poi.ss.formula.eval.BoolEval; import org.apache.poi.ss.formula.eval.NumberEval; import org.apache.poi.ss.formula.eval.ValueEval; +import org.apache.poi.ss.usermodel.DateUtil; import org.apache.poi.util.LocaleUtil; import org.junit.Test; @@ -160,6 +160,6 @@ public final class TestDays360 { } private static NumberEval convert(Date d) { - return new NumberEval(HSSFDateUtil.getExcelDate(d)); + return new NumberEval(DateUtil.getExcelDate(d)); } } |