Class StrptimeParser

java.lang.Object
org.jruby.util.StrptimeParser

public class StrptimeParser extends Object
This is Java implementation of ext/date/date_strptime.c in Ruby 2.3.1. see https://github.com/ruby/ruby/blob/394fa89c67722d35bdda89f10c7de5c304a5efb1/ext/date/date_strptime.c
  • Constructor Details

    • StrptimeParser

      public StrptimeParser()
  • Method Details

    • compilePattern

      public List<StrptimeToken> compilePattern(String pattern)
      Ported from RubyDateFormatter#compilePattern in JRuby 9.1.5.0. see https://github.com/jruby/jruby/blob/036ce39f0476d4bd718e23e64caff36bb50b8dbc/core/src/main/java/org/jruby/util/RubyDateFormatter.java
    • parse

      public StrptimeParser.FormatBag parse(List<StrptimeToken> compiledPattern, String text)