struct

Date

Inherits Comparable < Struct < Value < Object

Minimal calendar date (year-month-day) — used by ActiveJob argument serialization to mirror Ruby's Date round-trip ("YYYY-MM-DD").

Constructors

new(year : Int32, month : Int32, day : Int32)
Source
parse(str : String) : self
Source

Instance methods

<=>(other : self) : Int32
Source
day
month
to_s(io : IO) : Nil

"2026-01-02" — same as Ruby Date#to_s / iso8601.

Source
year