diff --git a/bazaar/Functions4U/Functions4U.cpp b/bazaar/Functions4U/Functions4U.cpp index 29aad10f1..cb4ab7cf3 100644 --- a/bazaar/Functions4U/Functions4U.cpp +++ b/bazaar/Functions4U/Functions4U.cpp @@ -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; diff --git a/bazaar/Functions4U/Functions4U.h b/bazaar/Functions4U/Functions4U.h index 75264cc2e..908a788e0 100644 --- a/bazaar/Functions4U/Functions4U.h +++ b/bazaar/Functions4U/Functions4U.h @@ -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);