Class DateTimeFormat

    • Nested Class Summary

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

        java.text.DateFormat.Field
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String PATTERN_CONSTANT_DATE_D_MMMM_YYYY
      The custom data format
      static java.lang.String PATTERN_CONSTANT_DATE_EEEE
      The custom data format for day of week in full form, if one exists
      static java.lang.String PATTERN_CONSTANT_DATE_MMM_YY
      The custom data format for month and years in abbreviated form
      static java.lang.String PATTERN_CONSTANT_DATE_MMMM
      The custom data format for month in full form, if one exists
      static java.lang.String PATTERN_CONSTANT_DATE_MMMM_YYYY
      The custom data format for month and years in full form
      static java.lang.String PATTERN_CONSTANT_DATE_YYYY
      The custom data format for years
      static java.lang.String PATTERN_CONSTANT_FULL
      System default format for full date and time, see DateFormat.FULL
      static java.lang.String PATTERN_CONSTANT_LONG
      System default format for long date and time, see DateFormat.LONG
      static java.lang.String PATTERN_CONSTANT_MEDIUM
      System default format for medium date and time, see DateFormat.MEDIUM
      static java.lang.String PATTERN_CONSTANT_SHORT
      System default format for short date and time, see DateFormat.SHORT
      static java.lang.String PATTERN_CONSTANT_TIME_MM
      The custom time format for minutes in abbreviated form
      static java.lang.String PATTERN_CONSTANT_TIME_SS
      The custom time format for seconds in abbreviated form
      • Fields inherited from class java.text.DateFormat

        AM_PM_FIELD, calendar, DATE_FIELD, DAY_OF_WEEK_FIELD, DAY_OF_WEEK_IN_MONTH_FIELD, DAY_OF_YEAR_FIELD, DEFAULT, ERA_FIELD, FULL, HOUR_OF_DAY0_FIELD, HOUR_OF_DAY1_FIELD, HOUR0_FIELD, HOUR1_FIELD, LONG, MEDIUM, MILLISECOND_FIELD, MINUTE_FIELD, MONTH_FIELD, numberFormat, SECOND_FIELD, SHORT, TIMEZONE_FIELD, WEEK_OF_MONTH_FIELD, WEEK_OF_YEAR_FIELD, YEAR_FIELD
    • Constructor Summary

      Constructors 
      Constructor Description
      DateTimeFormat()
      Creates a new instance of format.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      DateTimeFormat clone()
      Overrides Cloneable
      java.lang.StringBuffer format​(java.util.Date date, java.lang.StringBuffer toAppendTo, java.text.FieldPosition fieldPosition)
      java.lang.String getDatePatternConstant()
      Returns the date format pattern constant, e.g.
      protected java.lang.String getName()
      FOR INTERNAL USE ONLY Returns the XML attribute name for this dataset.
      java.lang.String getTimePatternConstant()
      Returns the time format pattern constant, e.g.
      java.util.Date parse​(java.lang.String source, java.text.ParsePosition pos)
      void readProperties​(org.w3c.dom.Element element)
      Reads the XML properties of a chart format.
      void saveProperties​(java.lang.StringBuilder buffer, int depth)
      Writes the format properties to output.
      void setDatePatternConstant​(java.lang.String patternConstant)
      Sets the date format pattern constant, e.g.
      void setFormatingProperties​(com.inet.report.chart.format.FormatingProperties properties)
      Sets the location specific formating properties, e.g. locale, time zone, first day of week.
      void setTimePatternConstant​(java.lang.String patternConstant)
      Sets the time format pattern constant, e.g.
      • Methods inherited from class java.text.DateFormat

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

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

        finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • PATTERN_CONSTANT_FULL

        public static final java.lang.String PATTERN_CONSTANT_FULL
        System default format for full date and time, see DateFormat.FULL
        See Also:
        Constant Field Values
      • PATTERN_CONSTANT_LONG

        public static final java.lang.String PATTERN_CONSTANT_LONG
        System default format for long date and time, see DateFormat.LONG
        See Also:
        Constant Field Values
      • PATTERN_CONSTANT_MEDIUM

        public static final java.lang.String PATTERN_CONSTANT_MEDIUM
        System default format for medium date and time, see DateFormat.MEDIUM
        See Also:
        Constant Field Values
      • PATTERN_CONSTANT_SHORT

        public static final java.lang.String PATTERN_CONSTANT_SHORT
        System default format for short date and time, see DateFormat.SHORT
        See Also:
        Constant Field Values
      • PATTERN_CONSTANT_DATE_D_MMMM_YYYY

        public static final java.lang.String PATTERN_CONSTANT_DATE_D_MMMM_YYYY
        The custom data format
        See Also:
        Constant Field Values
      • PATTERN_CONSTANT_DATE_YYYY

        public static final java.lang.String PATTERN_CONSTANT_DATE_YYYY
        The custom data format for years
        See Also:
        Constant Field Values
      • PATTERN_CONSTANT_DATE_MMMM_YYYY

        public static final java.lang.String PATTERN_CONSTANT_DATE_MMMM_YYYY
        The custom data format for month and years in full form
        See Also:
        Constant Field Values
      • PATTERN_CONSTANT_DATE_MMM_YY

        public static final java.lang.String PATTERN_CONSTANT_DATE_MMM_YY
        The custom data format for month and years in abbreviated form
        See Also:
        Constant Field Values
      • PATTERN_CONSTANT_DATE_MMMM

        public static final java.lang.String PATTERN_CONSTANT_DATE_MMMM
        The custom data format for month in full form, if one exists
        See Also:
        Constant Field Values
      • PATTERN_CONSTANT_DATE_EEEE

        public static final java.lang.String PATTERN_CONSTANT_DATE_EEEE
        The custom data format for day of week in full form, if one exists
        See Also:
        Constant Field Values
      • PATTERN_CONSTANT_TIME_MM

        public static final java.lang.String PATTERN_CONSTANT_TIME_MM
        The custom time format for minutes in abbreviated form
        See Also:
        Constant Field Values
      • PATTERN_CONSTANT_TIME_SS

        public static final java.lang.String PATTERN_CONSTANT_TIME_SS
        The custom time format for seconds in abbreviated form
        See Also:
        Constant Field Values
    • Constructor Detail

      • DateTimeFormat

        public DateTimeFormat()
        Creates a new instance of format. Initializes the pattern constants with system default format SHORT.
        Since:
        8.0