Documentation ¶
Index ¶
Constants ¶
View Source
const (
Autumn string = "autumn"
)
View Source
const (
Spring string = "spring"
)
View Source
const (
Summer string = "summer"
)
View Source
const (
Winter string = "winter"
)
Variables ¶
View Source
var ( Hemisphere = &Seasonality{ North: North, South: South} )
View Source
var ( North = &Calendar{ time.December: NewTerm(hemisphere.N, Winter, q1), time.January: NewTerm(hemisphere.N, Winter, q1), time.February: NewTerm(hemisphere.N, Winter, q1), time.March: NewTerm(hemisphere.N, Spring, q2), time.April: NewTerm(hemisphere.N, Spring, q2), time.May: NewTerm(hemisphere.N, Spring, q2), time.June: NewTerm(hemisphere.N, Summer, q3), time.July: NewTerm(hemisphere.N, Summer, q3), time.August: NewTerm(hemisphere.N, Summer, q3), time.September: NewTerm(hemisphere.N, Autumn, q4), time.October: NewTerm(hemisphere.N, Autumn, q4), time.November: NewTerm(hemisphere.N, Autumn, q4)} )
View Source
var ( South = &Calendar{ time.December: NewTerm(hemisphere.S, Summer, q1), time.January: NewTerm(hemisphere.S, Summer, q1), time.February: NewTerm(hemisphere.S, Summer, q1), time.March: NewTerm(hemisphere.S, Autumn, q2), time.April: NewTerm(hemisphere.S, Autumn, q2), time.May: NewTerm(hemisphere.S, Autumn, q2), time.June: NewTerm(hemisphere.S, Winter, q3), time.July: NewTerm(hemisphere.S, Winter, q3), time.August: NewTerm(hemisphere.S, Winter, q3), time.September: NewTerm(hemisphere.S, Spring, q4), time.October: NewTerm(hemisphere.S, Spring, q4), time.November: NewTerm(hemisphere.S, Spring, q4)} )
Functions ¶
This section is empty.
Types ¶
type Season ¶
type Season struct { Begins *chronograph.Time Ends *chronograph.Time Hemisphere string Months *Months Name string }
func NewSeason ¶
func NewSeason(t *chronograph.Time, h *hemisphere.Hemisphere) *Season
type Seasonality ¶
func (*Seasonality) Fetch ¶
func (seasonality *Seasonality) Fetch(hemisphere *hemisphere.Hemisphere) *Calendar
func (*Seasonality) Get ¶
func (seasonality *Seasonality) Get(hemisphere *hemisphere.Hemisphere) (*Calendar, string)
Click to show internal directories.
Click to hide internal directories.