类 DateInfo

java.lang.Object
com.grapecity.documents.excel.DateInfo

public final class DateInfo extends Object
  • 构造器详细资料

    • DateInfo

      public DateInfo()
  • 方法详细资料

    • ToOADate

      public static double ToOADate(Date date)
      Gets OADate according to Date.
      参数:
      date -
      返回:
      the value of OADate
    • ToOADate

      public static double ToOADate(Calendar calendar)
      Gets OADate according to calendar.
      参数:
      calendar -
      返回:
      the value of OADate
    • ToOADate

      public static double ToOADate(LocalDateTime localDateTime)
      Gets OADate according to LocalDateTime.
      参数:
      localDateTime -
      返回:
      the value of OADate
    • FromOADate

      @Deprecated public static Date FromOADate(double value)
      已过时。

      This member is obsolete. Use FromOADateAsLocalDateTime(double) instead.

      Gets Date according to OADate.
      参数:
      value -
      返回:
      the value of Date
    • FromOADateAsLocalDateTime

      public static LocalDateTime FromOADateAsLocalDateTime(double value)
      Gets LocalDateTime according to OADate.
      参数:
      value -
      返回:
      the value of Date