struct Time

Overview

Additions to the standard library's Time module.

Included Modules

Defined in:

t_cal/time.cr

Instance Method Summary

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.


[View source]
def sunday_week : Tuple(Int32, Int32) #

Same as #calendar_week, but Sundays are considered part of the following week.


[View source]
def to_date : Date #

Gets the date of this time as a Date.


[View source]
def to_ical : String #

Formats this time as an iCal DATE-TIME value.


[View source]