Skip to content

Commit d6d4033

Browse files
committed
add some doc
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1923767 13f79535-47bb-0310-9956-ffa450edef68
1 parent bff0b98 commit d6d4033

File tree

1 file changed

+20
-18
lines changed

1 file changed

+20
-18
lines changed

poi/src/main/java/org/apache/poi/ss/usermodel/DateUtil.java

Lines changed: 20 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -719,24 +719,26 @@ public static boolean isADateFormat(int formatIndex, String formatString) {
719719
* @see #isADateFormat(int, java.lang.String)
720720
*/
721721
public static boolean isInternalDateFormat(int format) {
722-
switch(format) {
723-
// Internal Date Formats as described on page 427 in
724-
// Microsoft Excel Dev's Kit...
725-
case 0x0e:
726-
case 0x0f:
727-
case 0x10:
728-
case 0x11:
729-
case 0x12:
730-
case 0x13:
731-
case 0x14:
732-
case 0x15:
733-
case 0x16:
734-
case 0x2d:
735-
case 0x2e:
736-
case 0x2f:
737-
return true;
738-
}
739-
return false;
722+
switch(format) {
723+
// Internal Date Formats as described on page 427 in
724+
// Microsoft Excel Dev's Kit...
725+
// see also javadoc in org.apache.poi.ss.usermodel.BuiltinFormats
726+
case 0x0e:
727+
case 0x0f:
728+
case 0x10:
729+
case 0x11:
730+
case 0x12:
731+
case 0x13:
732+
case 0x14:
733+
case 0x15:
734+
case 0x16:
735+
// the 0x2d to 0x2f formats are time (only) formats
736+
case 0x2d:
737+
case 0x2e:
738+
case 0x2f:
739+
return true;
740+
}
741+
return false;
740742
}
741743

742744
/**

0 commit comments

Comments
 (0)