Package org.jruby.util
Enum RubyDateFormatter.Format
- All Implemented Interfaces:
Serializable,Comparable<RubyDateFormatter.Format>,java.lang.constant.Constable
- Enclosing class:
- RubyDateFormatter
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription%C%z, %:z, %::z, %:::z%d%e%w%u%j%s%H%k%I%l%p%P%Q%L%M%m%B%b, %h%Nformatter%Scomposition of other formats, or depends on libraryraw string, no formatting%A%a%V%W%U%G%g%Y%y%Z -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static voidaddToConversions(char conversion, RubyDateFormatter.Token token) private static RubyDateFormatter.TokenconversionToToken(int conversion) static RubyDateFormatter.FormatReturns the enum constant of this type with the specified name.static RubyDateFormatter.Format[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
FORMAT_STRING
raw string, no formatting -
FORMAT_OUTPUT
formatter -
FORMAT_SPECIAL
composition of other formats, or depends on library -
FORMAT_WEEK_LONG
%A -
FORMAT_WEEK_SHORT
%a -
FORMAT_MONTH_LONG
%B -
FORMAT_MONTH_SHORT
%b, %h -
FORMAT_CENTURY
%C -
FORMAT_DAY
%d -
FORMAT_DAY_S
%e -
FORMAT_WEEKYEAR
%G -
FORMAT_WEEKYEAR_SHORT
%g -
FORMAT_HOUR
%H -
FORMAT_HOUR_M
%I -
FORMAT_DAY_YEAR
%j -
FORMAT_HOUR_BLANK
%k -
FORMAT_MILLISEC
%L -
FORMAT_HOUR_S
%l -
FORMAT_MINUTES
%M -
FORMAT_MONTH
%m -
FORMAT_NANOSEC
%N -
FORMAT_MERIDIAN_LOWER_CASE
%P -
FORMAT_MERIDIAN
%p -
FORMAT_SECONDS
%S -
FORMAT_EPOCH
%s -
FORMAT_WEEK_YEAR_S
%U -
FORMAT_DAY_WEEK2
%u -
FORMAT_WEEK_WEEKYEAR
%V -
FORMAT_WEEK_YEAR_M
%W -
FORMAT_DAY_WEEK
%w -
FORMAT_YEAR_LONG
%Y -
FORMAT_YEAR_SHORT
%y -
FORMAT_COLON_ZONE_OFF
%z, %:z, %::z, %:::z -
FORMAT_ZONE_ID
%Z -
FORMAT_MICROSEC_EPOCH
%Q
-
-
Constructor Details
-
Format
private Format() -
Format
private Format(char conversion) -
Format
private Format(char conversion, char alias)
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
addToConversions
-
conversionToToken
-