Class RubyDateParser

java.lang.Object
org.jruby.util.RubyDateParser

public class RubyDateParser extends Object
This class has StrptimeParser and provides methods that are calls from JRuby.
  • Constructor Details

    • RubyDateParser

      public RubyDateParser()
  • Method Details

    • parse

      public IRubyObject parse(ThreadContext context, RubyString format, RubyString text)
      Date._strptime method in JRuby 9.1.5.0's lib/ruby/stdlib/date/format.rb is replaced with this method. This is Java implementation of date__strptime method in MRI 2.3.1's ext/date/date_strptime.c. See: https://github.com/jruby/jruby/blob/036ce39f0476d4bd718e23e64caff36bb50b8dbc/lib/ruby/stdlib/date/format.rb https://github.com/ruby/ruby/blob/394fa89c67722d35bdda89f10c7de5c304a5efb1/ext/date/date_strptime.c
    • parse

      public IRubyObject parse(ThreadContext context, String format, RubyString text)