public static enum DateConverter.DateFormat extends Enum<DateConverter.DateFormat>
| Enum Constant and Description |
|---|
LEGACY_1900
1900 epoch without negative value support as used in BIFF8.
|
LEGACY_1904
1904 epoch without negative value support as used by Excel for Mac.
|
OOXML_1900
1900 epoch with negative value support as used in OOXML.
|
| Modifier and Type | Method and Description |
|---|---|
protected int |
getEpochDelta() |
double |
getLowerLimit() |
double |
getUpperLimit() |
static DateConverter.DateFormat |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DateConverter.DateFormat[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DateConverter.DateFormat OOXML_1900
Lower limit: -9999/01/01 00:00:00, value -4 346 018
Epoch date: 1899/12/30 00:00:00, value 0
Upper limit: 9999/12/31 23:59:59, value 2 958 465.999 988 4
public static final DateConverter.DateFormat LEGACY_1900
Epoch date: 1899/12/31 00:00:00, value 0
Lower limit: 1900/01/01 00:00:00, value 1
Upper limit: 9999/12/31 23:59:59, value 2 958 465.999 988 4
In this system 1900 is (incorrectly) considered a leap year. Serial dates after 1900/02/28 are one higher than they otherwise should be and the value 60 is unmapped.
public static final DateConverter.DateFormat LEGACY_1904
Epoch date: 1904/01/01 00:00:00, value 0
Lower limit: 1904/01/01 00:00:00, value 0
Upper limit: 9999/12/31 23:59:59, value 2 957 003.999 988 4
public static DateConverter.DateFormat[] values()
for (DateConverter.DateFormat c : DateConverter.DateFormat.values()) System.out.println(c);
public static DateConverter.DateFormat valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullprotected int getEpochDelta()
public double getLowerLimit()
public double getUpperLimit()
Copyright © 2002–2019 Starter Inc.. All rights reserved.