public class RubyDateFormatter
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
RubyDateFormatter.Token |
Constructor and Description |
---|
RubyDateFormatter(ThreadContext context)
Constructor for RubyDateFormatter.
|
Modifier and Type | Method and Description |
---|---|
RubyString |
compileAndFormat(RubyString pattern,
boolean dateLibrary,
org.joda.time.DateTime dt,
long nsec,
IRubyObject sub_millis)
Convenience method when using no pattern caching
|
java.util.List<RubyDateFormatter.Token> |
compilePattern(org.jruby.util.ByteList pattern,
boolean dateLibrary) |
java.util.List<RubyDateFormatter.Token> |
compilePattern(RubyString format,
boolean dateLibrary) |
RubyString |
format(java.util.List<RubyDateFormatter.Token> compiledPattern,
org.joda.time.DateTime dt,
long nsec,
IRubyObject sub_millis) |
org.jruby.util.ByteList |
formatToByteList(java.util.List<RubyDateFormatter.Token> compiledPattern,
org.joda.time.DateTime dt,
long nsec,
IRubyObject sub_millis) |
static void |
main(java.lang.String[] args) |
java.util.Date |
parse(java.lang.String source,
java.text.ParsePosition pos) |
public RubyDateFormatter(ThreadContext context)
public static void main(java.lang.String[] args)
public java.util.List<RubyDateFormatter.Token> compilePattern(RubyString format, boolean dateLibrary)
public java.util.List<RubyDateFormatter.Token> compilePattern(org.jruby.util.ByteList pattern, boolean dateLibrary)
public RubyString compileAndFormat(RubyString pattern, boolean dateLibrary, org.joda.time.DateTime dt, long nsec, IRubyObject sub_millis)
public RubyString format(java.util.List<RubyDateFormatter.Token> compiledPattern, org.joda.time.DateTime dt, long nsec, IRubyObject sub_millis)
public org.jruby.util.ByteList formatToByteList(java.util.List<RubyDateFormatter.Token> compiledPattern, org.joda.time.DateTime dt, long nsec, IRubyObject sub_millis)
public java.util.Date parse(java.lang.String source, java.text.ParsePosition pos)
DateFormat.parse(String, ParsePosition)
Copyright © 2001-2017 JRuby. All Rights Reserved.