Enum StrptimeFormat

java.lang.Object
java.lang.Enum<StrptimeFormat>
org.jruby.util.StrptimeFormat
All Implemented Interfaces:
Serializable, Comparable<StrptimeFormat>, java.lang.constant.Constable

enum StrptimeFormat extends Enum<StrptimeFormat>
This class is ported from RubyDateFormatter.Format in JRuby 9.1.5.0.
  • Enum Constant Details

    • FORMAT_STRING

      public static final StrptimeFormat FORMAT_STRING
    • FORMAT_SPECIAL

      public static final StrptimeFormat FORMAT_SPECIAL
    • FORMAT_WEEK_LONG

      public static final StrptimeFormat FORMAT_WEEK_LONG
    • FORMAT_WEEK_SHORT

      public static final StrptimeFormat FORMAT_WEEK_SHORT
    • FORMAT_MONTH_LONG

      public static final StrptimeFormat FORMAT_MONTH_LONG
    • FORMAT_MONTH_SHORT

      public static final StrptimeFormat FORMAT_MONTH_SHORT
    • FORMAT_CENTURY

      public static final StrptimeFormat FORMAT_CENTURY
    • FORMAT_DAY

      public static final StrptimeFormat FORMAT_DAY
    • FORMAT_DAY_S

      public static final StrptimeFormat FORMAT_DAY_S
    • FORMAT_WEEKYEAR

      public static final StrptimeFormat FORMAT_WEEKYEAR
    • FORMAT_WEEKYEAR_SHORT

      public static final StrptimeFormat FORMAT_WEEKYEAR_SHORT
    • FORMAT_HOUR

      public static final StrptimeFormat FORMAT_HOUR
    • FORMAT_HOUR_M

      public static final StrptimeFormat FORMAT_HOUR_M
    • FORMAT_DAY_YEAR

      public static final StrptimeFormat FORMAT_DAY_YEAR
    • FORMAT_HOUR_BLANK

      public static final StrptimeFormat FORMAT_HOUR_BLANK
    • FORMAT_MILLISEC

      public static final StrptimeFormat FORMAT_MILLISEC
    • FORMAT_HOUR_S

      public static final StrptimeFormat FORMAT_HOUR_S
    • FORMAT_MINUTES

      public static final StrptimeFormat FORMAT_MINUTES
    • FORMAT_MONTH

      public static final StrptimeFormat FORMAT_MONTH
    • FORMAT_NANOSEC

      public static final StrptimeFormat FORMAT_NANOSEC
    • FORMAT_MERIDIAN_LOWER_CASE

      public static final StrptimeFormat FORMAT_MERIDIAN_LOWER_CASE
    • FORMAT_MERIDIAN

      public static final StrptimeFormat FORMAT_MERIDIAN
    • FORMAT_MICROSEC_EPOCH

      public static final StrptimeFormat FORMAT_MICROSEC_EPOCH
    • FORMAT_SECONDS

      public static final StrptimeFormat FORMAT_SECONDS
    • FORMAT_EPOCH

      public static final StrptimeFormat FORMAT_EPOCH
    • FORMAT_WEEK_YEAR_S

      public static final StrptimeFormat FORMAT_WEEK_YEAR_S
    • FORMAT_DAY_WEEK2

      public static final StrptimeFormat FORMAT_DAY_WEEK2
    • FORMAT_WEEK_WEEKYEAR

      public static final StrptimeFormat FORMAT_WEEK_WEEKYEAR
    • FORMAT_WEEK_YEAR_M

      public static final StrptimeFormat FORMAT_WEEK_YEAR_M
    • FORMAT_DAY_WEEK

      public static final StrptimeFormat FORMAT_DAY_WEEK
    • FORMAT_YEAR_LONG

      public static final StrptimeFormat FORMAT_YEAR_LONG
    • FORMAT_YEAR_SHORT

      public static final StrptimeFormat FORMAT_YEAR_SHORT
    • FORMAT_COLON_ZONE_OFF

      public static final StrptimeFormat FORMAT_COLON_ZONE_OFF
    • FORMAT_ZONE_ID

      public static final StrptimeFormat FORMAT_ZONE_ID
  • Constructor Details

    • StrptimeFormat

      private StrptimeFormat()
  • Method Details

    • values

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

      public static StrptimeFormat valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
      NullPointerException - if the argument is null