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,
RubyNumeric sub_millis)
Convenience method when using no pattern caching
|
java.util.List<RubyDateFormatter.Token> |
compilePattern(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,
RubyNumeric sub_millis) |
java.util.Date |
parse(java.lang.String source,
java.text.ParsePosition pos) |
public RubyDateFormatter(ThreadContext context)
public java.util.List<RubyDateFormatter.Token> compilePattern(RubyString format, boolean dateLibrary)
public java.util.List<RubyDateFormatter.Token> compilePattern(ByteList pattern, boolean dateLibrary)
public RubyString compileAndFormat(RubyString pattern, boolean dateLibrary, org.joda.time.DateTime dt, long nsec, RubyNumeric sub_millis)
public RubyString format(java.util.List<RubyDateFormatter.Token> compiledPattern, org.joda.time.DateTime dt, long nsec, RubyNumeric sub_millis)
public java.util.Date parse(java.lang.String source,
java.text.ParsePosition pos)
DateFormat.parse(String, ParsePosition)Copyright © 2001-2019 JRuby. All Rights Reserved.