Skip to content

Commit

Permalink
add some doc
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1923767 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
pjfanning committed Feb 12, 2025
1 parent bff0b98 commit d6d4033
Showing 1 changed file with 20 additions and 18 deletions.
38 changes: 20 additions & 18 deletions poi/src/main/java/org/apache/poi/ss/usermodel/DateUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -719,24 +719,26 @@ public static boolean isADateFormat(int formatIndex, String formatString) {
* @see #isADateFormat(int, java.lang.String)
*/
public static boolean isInternalDateFormat(int format) {
switch(format) {
// Internal Date Formats as described on page 427 in
// Microsoft Excel Dev's Kit...
case 0x0e:
case 0x0f:
case 0x10:
case 0x11:
case 0x12:
case 0x13:
case 0x14:
case 0x15:
case 0x16:
case 0x2d:
case 0x2e:
case 0x2f:
return true;
}
return false;
switch(format) {
// Internal Date Formats as described on page 427 in
// Microsoft Excel Dev's Kit...
// see also javadoc in org.apache.poi.ss.usermodel.BuiltinFormats
case 0x0e:
case 0x0f:
case 0x10:
case 0x11:
case 0x12:
case 0x13:
case 0x14:
case 0x15:
case 0x16:
// the 0x2d to 0x2f formats are time (only) formats
case 0x2d:
case 0x2e:
case 0x2f:
return true;
}
return false;
}

/**
Expand Down

0 comments on commit d6d4033

Please sign in to comment.