struct Date
- Date
- Struct
- Value
- Object
Overview
Represents a year, month, and day with no time information.
Included Modules
- Comparable(Date)
Defined in:
t_cal/date.crConstructors
-
.new(date : Tuple(Int32, Int32, Int32))
Creates a date from the return of
Time#date
.
Instance Method Summary
- #<=>(other : self)
- #at_beginning_of_sunday_week : self
- #day : Int32
-
#day_of_week : Time::DayOfWeek
See
Time#day_of_week
. - #month : Int32
-
#shift(years : Int = 0, months : Int = 0, weeks : Int = 0, days : Int = 0) : self
See
Time#shift
. -
#to_ical : String
Formats this date as an iCal
DATE
value. -
#to_time : Time
Converts this date to a
Time
at midnight in UTC. - #year : Int32
Constructor Detail
Instance Method Detail
See Time#shift
.