Date implementation - 'native' parts.
In MRI, since 2.x, all of date.rb has been moved to native (C) code.
Note
There's still date.rb, where this gets bootstrapped from.
| Modifier and Type | Field and Description |
|---|---|
| private static final ByteList | |
| private static final ByteList | |
| private static final ByteList | |
| private static final ByteList | |
| private static final ByteList | |
| private static final ByteList | |
| private static final ByteList | |
| private static final ByteList | |
| private static final ByteList | |
| private static final ByteList | |
| private static final ByteList | |
| private static final ByteList | |
| private static final ByteList | |
| private static final ByteList | |
| private static final ByteList[] | |
| private static final ByteList[] | |
| pack-priv static final GJChronology | |
| pack-priv static final int | |
| pack-priv static final int | |
| private RubyFixnum | |
| private static final String | |
| private static final ByteList | |
| pack-priv static final DateTime | |
| pack-priv DateTime | |
| pack-priv static final int | |
| pack-priv static final long | |
| private static final double | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| pack-priv static final int | |
| pack-priv static final long | |
| private static final double | |
| private static final int | |
| pack-priv static final Logger | |
| private static final int | |
| private static final int | |
| pack-priv int | |
| private static final int | |
| pack-priv static final int | |
| private static final int | |
| pack-priv static final int | |
| private static final ByteList | |
| pack-priv long | |
| pack-priv static final int | |
| pack-priv long | |
| pack-priv long | |
| private static final ByteList | |
| private static final ByteList |
| Access | Constructor and Description |
|---|---|
| protected | |
| public | |
| public | |
| pack-priv | |
| pack-priv | |
| public | |
| public | |
| pack-priv | |
| pack-priv | |
| pack-priv | |
| private | RubyDate(ThreadContext context, RubyClass klass, IRubyObject ajd, Chronology chronology, int off, long start)
|
| Modifier and Type | Method and Description |
|---|---|
| public static RubyInteger | |
| public static RubyInteger | |
| public static RubyDate | |
| public static IRubyObject | |
| pack-priv static IRubyObject | |
| public static IRubyObject | |
| pack-priv static IRubyObject | |
| pack-priv static IRubyObject | |
| public static IRubyObject | |
| pack-priv static IRubyObject | |
| public static IRubyObject | |
| public static IRubyObject | |
| pack-priv static IRubyObject | |
| pack-priv static IRubyObject | |
| pack-priv static IRubyObject | |
| pack-priv static IRubyObject | |
| pack-priv static IRubyObject | |
| public static IRubyObject | |
| pack-priv static IRubyObject | |
| public static IRubyObject | |
| public static IRubyObject | |
| public static IRubyObject | |
| public static IRubyObject | |
| public static IRubyObject | |
| public static IRubyObject | |
| public IRubyObject | |
| public static IRubyObject | |
| public static IRubyObject | |
| public static IRubyObject | |
| public static IRubyObject | |
| public IRubyObject | |
| public static IRubyObject | |
| public static IRubyObject | |
| pack-priv final int | |
| private void | |
| public IRubyObject | |
| public IRubyObject | |
| private static void | |
| private static int | |
| public static RubyDate | civil(ThreadContext context, IRubyObject self)
# Create a new Date object for the Civil Date specified by # year +y+, month +m+, and day-of-month +d+. |
| public static RubyDate | |
| public static RubyDate | |
| public static RubyDate | civil(ThreadContext context, IRubyObject self, IRubyObject year, IRubyObject month, IRubyObject mday)
|
| public static RubyDate | |
| public static DateTime | civilDate(ThreadContext context, final int y, final int m, final int d, final Chronology chronology)
|
| pack-priv static DateTime | |
| pack-priv static DateTime | |
| private static RubyDate | civilImpl(ThreadContext context, RubyClass klass, IRubyObject year, IRubyObject month, IRubyObject mday, final long sg)
|
| private int | |
| private int | |
| public static RubyDate | |
| pack-priv static RubyClass | |
| private static RubyInteger | |
| public RubyInteger | |
| public RubyInteger | |
| public RubyInteger | |
| public RubyNumeric | |
| private RubyFixnum | |
| private static int | |
| pack-priv static void | |
| private static void | |
| public IRubyObject | |
| public IRubyObject | |
| public boolean | equals(Object
object to compare other)Overrides org. This override does not do a "checked" dispatch. |
| public final boolean | |
| private IRubyObject | |
| private IRubyObject | |
| pack-priv static RubyString | |
| public static Chronology | |
| pack-priv static Chronology | |
| pack-priv static RubyClass | |
| pack-priv static RubyClass | |
| pack-priv static RubyClass | |
| pack-priv static RubyClass | |
| public DateTime | |
| public int | |
| public int | |
| public Class | getJavaClass()
Overrides org. Implements org. Will return the Java interface that most closely can represent this object, when working through Java integration translations. |
| public final long | |
| public int | |
| pack-priv static int | |
| pack-priv static int | |
| public int | |
| public int | |
| public int | |
| pack-priv static long | |
| pack-priv static int | |
| pack-priv static int | |
| public int | |
| public IRubyObject | |
| public static IRubyObject | |
| public RubyBoolean | |
| public RubyFixnum | hash(ThreadContext
the current thread context context)Overrides org. Will return the hash code of this object. |
| public int | hashCode()
Overrides org. This override does not do "checked" dispatch since Object usually has #hash defined. |
| private static IRubyObject | |
| private static boolean | |
| public RubyInteger | |
| public RubyDate | initialize(ThreadContext context, IRubyObject dt)
Deprecated
since 9.4-. kept due AR-JDBC (uses RubyClass.newInstance(...) to 'fast' allocate a Date instance)
Note since |
| public RubyDate | |
| public RubyDate | |
| private void | |
| public IRubyObject | initialize_copy(ThreadContext
the thread context context, IRubyObject the original original)Overrides org. Initializes this object as a copy of the original, that is the parameter to this object. |
| private long | |
| public RubyString | inspect(ThreadContext context)
Overrides org. Overrides default org. Returns a string containing a human-readable representation of obj. |
| private static boolean | |
| pack-priv static boolean | |
| pack-priv static boolean | |
| private static boolean | |
| private static boolean | |
| public final boolean | |
| private static boolean | |
| public IRubyObject | |
| public static RubyDate | |
| public static RubyDate | |
| public static RubyDate | |
| public RubyFixnum | |
| private static double | |
| pack-priv static RubyNumeric | |
| pack-priv static RubyNumeric | |
| pack-priv static RubyNumeric | |
| public static RubyNumeric | |
| private static RubyDate | |
| public IRubyObject | |
| public static IRubyObject | |
| public RubyBoolean | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public RubyDate | |
| private IRubyObject | |
| private static RubyString | |
| public RubyInteger | |
| public RubyInteger | |
| public IRubyObject | |
| public RubyInteger | |
| private static int | |
| public static RubyDate | |
| public static RubyDate | new_(ThreadContext context, IRubyObject self, IRubyObject ajd)
Deprecated
since 9.4-. internal Date.new!
|
| public static RubyDate | new_(ThreadContext context, IRubyObject self, IRubyObject ajd, IRubyObject of)
Deprecated
since 9.4-. internal Date.new!
|
| public static RubyDate | new_(ThreadContext context, IRubyObject self, IRubyObject ajd, IRubyObject of, IRubyObject sg)
Deprecated
since 9.4-. internal Date.new!
|
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| pack-priv static RaiseException | |
| pack-priv final RubyDate | |
| pack-priv RubyDate | newInstance(final ThreadContext context, final DateTime dt, int off, long start, long subNum, long subDen)
|
| pack-priv static RubyRational | |
| private static RubyRegexp | |
| private RubyDate | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| pack-priv final RubyDate | |
| private static long | |
| private static ByteList | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | Returns: true/false/nilOverrides org. Implements org. The relationship operator for Date. |
| public IRubyObject | |
| private RubyNumeric | |
| public IRubyObject | |
| pack-priv RubyDate | |
| public static RubyDate | |
| pack-priv static IRubyObject | |
| pack-priv static void | |
| pack-priv static void | |
| private static IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| private RubyDate | |
| pack-priv static RubyNumeric | |
| private static IRubyObject | s3e(ThreadContext context, final RubyHash hash, RubyString y, RubyString m, RubyString d, boolean bc)
|
| public RubyNumeric | |
| public RubyInteger | |
| private static void | |
| public IRubyObject | |
| public IRubyObject | |
| private static int | |
| private static int | |
| private static int | |
| public IRubyObject | |
| public RubyString | |
| public RubyString | |
| private static boolean | |
| pack-priv final RubyRational | |
| private RubyNumeric | |
| private static IRubyObject | |
| pack-priv static long | |
| pack-priv static RubyNumeric | |
| public RubyDate | |
| public RubyDateTime | |
| public RubyString | |
| public RubyTime | |
| public Date | |
| public static RubyDate | |
| public static RubyDate | |
| private static DateTime | |
| public Instant | |
| public <T> T | toJava(Class<T>
The target type to which the object should be converted. target)Overrides org. Implements org. Convert the object to the specified Java class, if possible. |
| public LocalDate | |
| pack-priv static int | |
| pack-priv static long | |
| public static IRubyObject | |
| public static IRubyObject | |
| public static IRubyObject | |
| public static IRubyObject | |
| public static IRubyObject | |
| pack-priv static long | |
| pack-priv static Long | validCivilImpl(ThreadContext context, IRubyObject year, IRubyObject month, IRubyObject day, final long sg)
|
| pack-priv static Long | validCommercialImpl(ThreadContext context, IRubyObject year, IRubyObject week, IRubyObject day, final long sg)
|
| private static boolean | |
| pack-priv static Long | |
| private static Long | |
| private static IRubyObject | |
| public RubyInteger | |
| public RubyInteger | |
| public RubyInteger | |
| public RubyString | |
| public static IRubyObject |