Package org.jruby.util
Enum Class RubyDateFormatter.Format
- All Implemented Interfaces:
Serializable
,Comparable<RubyDateFormatter.Format>
,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 -
Method Summary
Modifier and TypeMethodDescriptionstatic RubyDateFormatter.Format
Returns the enum constant of this class with the specified name.static RubyDateFormatter.Format[]
values()
Returns an array containing the constants of this enum class, 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
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-