mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
Functions4U: GetSeason
git-svn-id: svn://ultimatepp.org/upp/trunk@10936 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
b817b97fca
commit
805bd8df7d
2 changed files with 5 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue