struct Time
- Time
- Struct
- Value
- Object
Overview
Additions to the standard library's Time
module.
Included Modules
- Comparable(Time)
- Steppable
Defined in:
t_cal/time.crInstance Method Summary
-
#at_beginning_of_sunday_week : self
Same as
#at_beginning_of_week
but treats Sunday as the start of the week. -
#sunday_week : Tuple(Int32, Int32)
Same as
#calendar_week
, but Sundays are considered part of the following week. -
#to_date : Date
Gets the date of this time as a
Date
. -
#to_ical : String
Formats this time as an iCal
DATE-TIME
value.
Instance Method Detail
def at_beginning_of_sunday_week : self
#
Same as #at_beginning_of_week
but treats Sunday as the start of the week.
def sunday_week : Tuple(Int32, Int32)
#
Same as #calendar_week
, but Sundays are considered part of the following
week.