Sha256: d615a996c53e9aed57af029a4289cb501f9b9daa110c7742b8b9a2f4bca22ee2

Contents?: true

Size: 1.04 KB

Versions: 38

Compression:

Stored size: 1.04 KB

Contents

%%{

  machine date_time;

  # day_of_week
  day_name = "Mon" | "Tue" | "Wed" | "Thu" | "Fri" | "Sat" | "Sun";
  obs_day_of_week = CFWS? day_name CFWS?;
  day_of_week = (FWS? day_name) | obs_day_of_week;

  # date
  obs_day = CFWS? (DIGIT | (DIGIT DIGIT)) CFWS?;
  day = (FWS? DIGIT DIGIT? FWS) | obs_day;
  month = "Jan" | "Feb" | "Mar" | "Apr" | "May" | "Jun" | "Jul" | "Aug" | "Sep" | "Oct" | "Nov" | "Dec";
  obs_year = CFWS? (DIGIT DIGIT DIGIT*) CFWS?;
  year = FWS DIGIT DIGIT DIGIT DIGIT FWS | obs_year;
  date = day month year;

  # time
  obs_hour = CFWS? (DIGIT DIGIT) CFWS?;
  hour = DIGIT DIGIT | obs_hour;
  obs_minute = CFWS? (DIGIT DIGIT) CFWS?;
  minute = DIGIT DIGIT | obs_minute;
  obs_second = CFWS? (DIGIT DIGIT) CFWS?;
  second = DIGIT DIGIT | obs_second;
  obs_zone = "UT" | "GMT" | "EST" | "EDT" | "CST" | "CDT" | "MST" | "MDT" | "PST" | "PDT" | 0x41..0x49 | 0x4B..0x5A | 0x61..0x69 | 0x6B..0x7A;
  time_of_day = hour ":" minute (":" second)?;
  zone = FWS ((("+" | "-") DIGIT DIGIT DIGIT DIGIT) | obs_zone);
  time = time_of_day zone;

}%%

Version data entries

38 entries across 35 versions & 11 rubygems

Version Path
tdiary-5.0.6 vendor/bundle/gems/mail-2.6.6/lib/mail/parsers/ragel/date_time.rl
tdiary-5.0.5 vendor/bundle/gems/tdiary-5.0.4/vendor/bundle/gems/mail-2.6.4/lib/mail/parsers/ragel/date_time.rl
tdiary-5.0.5 vendor/bundle/gems/mail-2.6.6/lib/mail/parsers/ragel/date_time.rl
tdiary-5.0.5 vendor/bundle/gems/mail-2.6.4/lib/mail/parsers/ragel/date_time.rl
mail-2.6.6 lib/mail/parsers/ragel/date_time.rl
mail-2.6.6.rc1 lib/mail/parsers/ragel/date_time.rl
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/mail-2.6.5/lib/mail/parsers/ragel/date_time.rl
mail-2.6.5 lib/mail/parsers/ragel/date_time.rl
mail-2.6.5.rc1 lib/mail/parsers/ragel/date_time.rl
tdiary-5.0.4 vendor/bundle/gems/mail-2.6.4/lib/mail/parsers/ragel/date_time.rl
autocompl-0.2.2 test/dummy/vendor/bundle/ruby/2.3.0/gems/mail-2.6.4/lib/mail/parsers/ragel/date_time.rl
autocompl-0.2.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/mail-2.6.4/lib/mail/parsers/ragel/date_time.rl
autocompl-0.2.0 test/dummy/vendor/bundle/ruby/2.3.0/gems/mail-2.6.4/lib/mail/parsers/ragel/date_time.rl
autocompl-0.1.2 test/dummy/vendor/bundle/ruby/2.3.0/gems/mail-2.6.4/lib/mail/parsers/ragel/date_time.rl
autocompl-0.1.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/mail-2.6.4/lib/mail/parsers/ragel/date_time.rl
autocompl-0.1.0 test/dummy/vendor/bundle/ruby/2.3.0/gems/mail-2.6.4/lib/mail/parsers/ragel/date_time.rl
autocompl-0.0.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/mail-2.6.4/lib/mail/parsers/ragel/date_time.rl
abaci-0.3.0 vendor/bundle/gems/mail-2.6.4/lib/mail/parsers/ragel/date_time.rl
tdiary-5.0.2 vendor/bundle/gems/mail-2.6.4/lib/mail/parsers/ragel/date_time.rl
tdiary-5.0.1 vendor/bundle/gems/mail-2.6.4/lib/mail/parsers/ragel/date_time.rl