mirror of https://github.com/apache/poi.git
extend tests
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1892042 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
eecb44281e
commit
b864503d47
|
@ -74,10 +74,15 @@ final class TestDateValue {
|
||||||
|
|
||||||
// // EXCEL
|
// // EXCEL
|
||||||
confirmDateValue(new StringEval("8/22/2011"), 40777); // Serial number of a date entered as text.
|
confirmDateValue(new StringEval("8/22/2011"), 40777); // Serial number of a date entered as text.
|
||||||
confirmDateValue(new StringEval("8/22/2011 12:00"), 40777); // Serial number of a date entered as text.
|
|
||||||
confirmDateValue(new StringEval("22-MAY-2011"), 40685); // Serial number of a date entered as text.
|
confirmDateValue(new StringEval("22-MAY-2011"), 40685); // Serial number of a date entered as text.
|
||||||
confirmDateValue(new StringEval("2011/02/23"), 40597); // Serial number of a date entered as text.
|
confirmDateValue(new StringEval("2011/02/23"), 40597); // Serial number of a date entered as text.
|
||||||
|
|
||||||
|
//ignore time parts
|
||||||
|
confirmDateValue(new StringEval("8/22/2011 12:00"), 40777); // Serial number of a date entered as text.
|
||||||
|
confirmDateValue(new StringEval("8/22/2011 6:02:23 PM"), 40777); // Serial number of a date entered as text.
|
||||||
|
confirmDateValue(new StringEval("22-AUG-2011 6:02:23PM"), 40777); // Serial number of a date entered as text.
|
||||||
|
confirmDateValue(new StringEval("22-AUG-2011 6:02:23AM"), 40777); // Serial number of a date entered as text.
|
||||||
|
|
||||||
// LibreOffice compatibility
|
// LibreOffice compatibility
|
||||||
confirmDateValue(new StringEval("1954-07-20"), 19925);
|
confirmDateValue(new StringEval("1954-07-20"), 19925);
|
||||||
} finally {
|
} finally {
|
||||||
|
|
Loading…
Reference in New Issue