public class RubyDateFormatter extends 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
|
List<RubyDateFormatter.Token> |
compilePattern(org.jruby.util.ByteList pattern,
boolean dateLibrary) |
List<RubyDateFormatter.Token> |
compilePattern(RubyString format,
boolean dateLibrary) |
RubyString |
format(List<RubyDateFormatter.Token> compiledPattern,
org.joda.time.DateTime dt,
long nsec,
IRubyObject sub_millis) |
org.jruby.util.ByteList |
formatToByteList(List<RubyDateFormatter.Token> compiledPattern,
org.joda.time.DateTime dt,
long nsec,
IRubyObject sub_millis) |
static void |
main(String[] args) |
Date |
parse(String source,
ParsePosition pos) |
public RubyDateFormatter(ThreadContext context)
public static void main(String[] args)
public List<RubyDateFormatter.Token> compilePattern(RubyString format, boolean dateLibrary)
public 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(List<RubyDateFormatter.Token> compiledPattern, org.joda.time.DateTime dt, long nsec, IRubyObject sub_millis)
public org.jruby.util.ByteList formatToByteList(List<RubyDateFormatter.Token> compiledPattern, org.joda.time.DateTime dt, long nsec, IRubyObject sub_millis)
public Date parse(String source, ParsePosition pos)
Copyright © 2001-2017 JRuby. All Rights Reserved.