Functions4U: GetSeason

git-svn-id: svn://ultimatepp.org/upp/trunk@10936 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
koldo 2017-03-10 22:45:51 +00:00
parent b817b97fca
commit 805bd8df7d
2 changed files with 5 additions and 0 deletions

View file

@ -923,6 +923,10 @@ String SeasonName(int iseason) {
return iseason >= 0 && iseason < 4 ? season[iseason] : "";
}
int GetSeason(Date &date) {
return int((date.month - 1)/3.);
}
String BytesToString(uint64 _bytes, bool units)
{
String ret;

View file

@ -216,6 +216,7 @@ double StringToSeconds(String str);
void StringToHMS(String durat, int &hour, int &min, double &seconds);
String SeasonName(int iseason);
int GetSeason(Date &date);
String FormatDoubleAdjust(double d, double range);