\naigcTemporal

Functions related to time.

Summary

Methods
Properties
Constants
getSeasonYear()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

getSeasonYear()

getSeasonYear(int  $timestamp = null) : string

Gets the season associated with a date.

Parameters

int $timestamp

The timestamp to get the season for. If it isn't provided, uses the current timestamp.

Returns

string —

The season (Nationals year) associated with a timestamp.