Class: TwitterCldr::Formatters::DateTimeFormatter

Inherits:
Formatter
  • Object
show all
Defined in:
lib/twitter_cldr/formatters/calendars/date_time_formatter.rb

Constant Summary collapse

WEEKDAY_KEYS =
[:sun, :mon, :tue, :wed, :thu, :fri, :sat].freeze
METHODS =

ignoring u, l, g, j, A

{ # ignoring u, l, g, j, A
  'G' => :era,
  'y' => :year,
  'Y' => :year_of_week_of_year,
  'Q' => :quarter,
  'q' => :quarter_stand_alone,
  'M' => :month,
  'L' => :month_stand_alone,
  'w' => :week_of_year,
  'W' => :week_of_month,
  'd' => :day,
  'D' => :day_of_month,
  'F' => :day_of_week_in_month,
  'E' => :weekday,
  'e' => :weekday_local,
  'c' => :weekday_local_stand_alone,
  'a' => :period,
  'B' => :period,
  'h' => :hour,
  'H' => :hour,
  'K' => :hour,
  'k' => :hour,
  'm' => :minute,
  's' => :second,
  'S' => :second_fraction,
  'z' => :timezone,
  'Z' => :timezone,
  'O' => :timezone,
  'v' => :timezone,
  'V' => :timezone,
  'x' => :timezone,
  'X' => :timezone
}.freeze
TZ_PATTERNS =
{
  'z'     => :specific_short,
  'zz'    => :specific_short,
  'zzz'   => :specific_short,
  'zzzz'  => :specific_long,
  'Z'     => :iso_basic_local_full,
  'ZZ'    => :iso_basic_local_full,
  'ZZZ'   => :iso_basic_local_full,
  'ZZZZ'  => :long_gmt,
  'ZZZZZ' => :iso_extended_local_fixed,
  'OOOO'  => :long_gmt,
  'O'     => :short_gmt,
  'v'     => :generic_short,
  'vvvv'  => :generic_long,
  'V'     => :zone_id_short,
  'VV'    => :zone_id,
  'VVV'   => :exemplar_location,
  'VVVV'  => :generic_location,
  'X'     => :iso_basic_short,
  'XX'    => :iso_basic_fixed,
  'XXX'   => :iso_extended_fixed,
  'XXXX'  => :iso_basic_full,
  'XXXXX' => :iso_extended_full,
  'x'     => :iso_basic_local_short,
  'xx'    => :iso_basic_local_fixed,
  'xxx'   => :iso_extended_local_fixed,
  'xxxx'  => :iso_basic_local_full,
  'xxxxx' => :iso_extended_local_full
}.freeze

Instance Attribute Summary

Attributes inherited from Formatter

#data_reader

Method Summary

Methods inherited from Formatter

#format, #initialize

Constructor Details

This class inherits a constructor from TwitterCldr::Formatters::Formatter