Documentation of 'org.apache.poi.ss.usermodel.ExcelStyleDateFormatter' Java class
ExcelStyleDateFormatter
org.apache.poi.ss.usermodel

Class ExcelStyleDateFormatter

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable


    public class ExcelStyleDateFormatter
    extends java.text.SimpleDateFormat
    A wrapper around a SimpleDateFormat instance, which handles a few Excel-style extensions that are not supported by SimpleDateFormat. Currently, the extensions are around the handling of elapsed time, eg rendering 1 day 2 hours as 26 hours.
    See Also:
    Serialized Form
    • Nested Class Summary

      • Nested classes/interfaces inherited from class java.text.DateFormat

        java.text.DateFormat.Field
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      java.lang.StringBuffer format(java.util.Date date, java.lang.StringBuffer paramStringBuffer, java.text.FieldPosition paramFieldPosition) 
      void setDateToBeFormatted(double date)
      Used to let us know what the date being formatted is, in Excel terms, which we may wish to use when handling elapsed times.
      • Methods inherited from class java.text.SimpleDateFormat

        applyLocalizedPattern, applyPattern, clone, equals, formatToCharacterIterator, get2DigitYearStart, getDateFormatSymbols, hashCode, parse, set2DigitYearStart, setDateFormatSymbols, toLocalizedPattern, toPattern
      • Methods inherited from class java.text.DateFormat

        format, format, getAvailableLocales, getCalendar, getDateInstance, getDateInstance, getDateInstance, getDateTimeInstance, getDateTimeInstance, getDateTimeInstance, getInstance, getNumberFormat, getTimeInstance, getTimeInstance, getTimeInstance, getTimeZone, isLenient, parse, parseObject, setCalendar, setLenient, setNumberFormat, setTimeZone
      • Methods inherited from class java.text.Format

        format, parseObject
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ExcelStyleDateFormatter

        public ExcelStyleDateFormatter()
      • ExcelStyleDateFormatter

        public ExcelStyleDateFormatter(java.lang.String pattern)
      • ExcelStyleDateFormatter

        public ExcelStyleDateFormatter(java.lang.String pattern,
                                       java.text.DateFormatSymbols formatSymbols)
      • ExcelStyleDateFormatter

        public ExcelStyleDateFormatter(java.lang.String pattern,
                                       java.util.Locale locale)
    • Method Detail

      • setDateToBeFormatted

        public void setDateToBeFormatted(double date)
        Used to let us know what the date being formatted is, in Excel terms, which we may wish to use when handling elapsed times.
      • format

        public java.lang.StringBuffer format(java.util.Date date,
                                             java.lang.StringBuffer paramStringBuffer,
                                             java.text.FieldPosition paramFieldPosition)
        Overrides:
        format in class java.text.SimpleDateFormat

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.