Enum Class IDateTimeData.DateTimeFormat

java.lang.Object
java.lang.Enum<IDateTimeData.DateTimeFormat>
com.persequor.extension.frontend.data.IDateTimeData.DateTimeFormat
All Implemented Interfaces:
Serializable, Comparable<IDateTimeData.DateTimeFormat>, Constable
Enclosing interface:
IDateTimeData

public static enum IDateTimeData.DateTimeFormat extends Enum<IDateTimeData.DateTimeFormat>
Date formatting for rendering in the UI See: Luxon formatting
  • Enum Constant Details

    • DATE_SHORT

      public static final IDateTimeData.DateTimeFormat DATE_SHORT
      Short date

      Example: 11/2/2018 (US) or 2/11/2018 (UK)

    • DATE_MED

      public static final IDateTimeData.DateTimeFormat DATE_MED
      Abbreviated date

      Example: Nov 2, 2018

    • DATE_MED_WITH_WEEKDAY

      public static final IDateTimeData.DateTimeFormat DATE_MED_WITH_WEEKDAY
      Abbreviated date with abbreviated weekday

      Example: Fri, Nov 2, 2018

    • DATE_FULL

      public static final IDateTimeData.DateTimeFormat DATE_FULL
      Full date

      Example: November 2, 2018

    • DATE_HUGE

      public static final IDateTimeData.DateTimeFormat DATE_HUGE
      Full date with weekday

      Example: Friday, November 2, 2018

    • TIME_SIMPLE

      public static final IDateTimeData.DateTimeFormat TIME_SIMPLE
      Time

      Example: 14:30 (24-hour clock) or 2:30 PM (12-hour clock)

    • TIME_WITH_SECONDS

      public static final IDateTimeData.DateTimeFormat TIME_WITH_SECONDS
      Time with seconds

      Example: 14:30:15 (24-hour clock) or 2:30:15 PM (12-hour clock)

    • TIME_WITH_SHORT_OFFSET

      public static final IDateTimeData.DateTimeFormat TIME_WITH_SHORT_OFFSET
      Time with seconds and abbreviated named offset

      Example: 14:30:15 GMT+1

    • TIME_WITH_LONG_OFFSET

      public static final IDateTimeData.DateTimeFormat TIME_WITH_LONG_OFFSET
      Time with seconds and full named offset

      Example: 14:30:15 Central European Time

    • DATETIME_SHORT

      public static final IDateTimeData.DateTimeFormat DATETIME_SHORT
      Short date & time

      Example: 11/2/2018, 14:30 (US) or 2/11/2018, 14:30 (UK)

    • DATETIME_SHORT_WITH_SECONDS

      public static final IDateTimeData.DateTimeFormat DATETIME_SHORT_WITH_SECONDS
      Short date & time with seconds

      Example: 11/2/2018, 14:30:15 (US) or 2/11/2018, 14:30:15 (UK)

    • DATETIME_MED

      public static final IDateTimeData.DateTimeFormat DATETIME_MED
      Abbreviated date & time

      Example: Nov 2, 2018, 14:30

    • DATETIME_MED_WITH_SECONDS

      public static final IDateTimeData.DateTimeFormat DATETIME_MED_WITH_SECONDS
      Abbreviated date & time with seconds

      Example: Nov 2, 2018, 14:30:15

    • DATETIME_MED_WITH_WEEKDAY

      public static final IDateTimeData.DateTimeFormat DATETIME_MED_WITH_WEEKDAY
      Abbreviated date & time with abbreviated weekday

      Example: Fri, Nov 2, 2018, 14:30

    • DATETIME_FULL

      public static final IDateTimeData.DateTimeFormat DATETIME_FULL
      Full date and time with abbreviated named offset

      Example: November 2, 2018, 14:30 GMT+1

    • DATETIME_FULL_WITH_SECONDS

      public static final IDateTimeData.DateTimeFormat DATETIME_FULL_WITH_SECONDS
      Full date and time with abbreviated named offset with seconds

      Example: November 2, 2018, 14:30:15 GMT+1

    • DATETIME_HUGE

      public static final IDateTimeData.DateTimeFormat DATETIME_HUGE
      Full date and time with weekday and full named offset

      Example: Friday, November 2, 2018, 14:30 Central European Time

    • DATETIME_HUGE_WITH_SECONDS

      public static final IDateTimeData.DateTimeFormat DATETIME_HUGE_WITH_SECONDS
      Full date and time with weekday and full named offset with seconds

      Example: Friday, November 2, 2018, 14:30:15 Central European Time

  • Method Details

    • values

      public static IDateTimeData.DateTimeFormat[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static IDateTimeData.DateTimeFormat valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null