struct TCal::DatePeriod

Overview

An interval between two Date.

Defined in:

t_cal/period/date_period.cr

Constructors

Instance Method Summary

Instance methods inherited from struct TCal::Period(Date)

end : T end, start : T start

Constructor methods inherited from struct TCal::Period(Date)

new(start : T, end __arg0 : T) new

Class methods inherited from struct TCal::Period(Date)

merge(periods : Array(U)) : Array(U) forall U merge

Constructor Detail

def self.new(start : T, end __arg0 : T) #

[View source]

Instance Method Detail

def each_month : Iterator(Date) #

[View source]
def each_sunday_week : Iterator(Date) #

[View source]
def split_at_sunday : Array(self) #

[View source]
def to_time_period : TimePeriod #

Converts this period to a TimePeriod as per Date#to_time.


[View source]