enum Cronic::Season

Defined in:

cronic/season.cr

Enum Members

Spring = 0
Summer = 1
Autumn = 2
Winter = 3

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.find_current_season(time : Time) : Season #

Use a time-object to calculate the Season.


[View source]

Class Method Detail

def self.find_next_season(season : Season, pointer : Int32) #

[View source]
def self.span_for_next_season(curtime : Time, nextssn : Season, pointer : PointerDir) #

[View source]

Instance Method Detail

def adjust(dir : Direction) : Season #

[View source]
def autumn? #

[View source]
def next : Season #

[View source]
def prev : Season #

[View source]
def spring? #

[View source]
def summer? #

[View source]
def winter? #

[View source]