SeasonOf

Navigation:  Appendices > Macro Language > Built-in Functions > All Functions (Alphabetical) >

SeasonOf

Previous pageReturn to chapter overviewNext page

int = SeasonOf(nDate, nSunDataSourceIndex, bEveryday)

 

This macro function returns a value from 0 to 4 depending on the season that occurs on the date nDate, for the Sun Data Source of index nSunDataSourceIndex. The parameter bEveryday specifies if the function should give a result corresponding to the season in progress every day (bEveryday = true), or only on dates when there is a change of season (bEveryday = false).

 

The possible values returned by this function correspond to :

 

0

No change of season on nDate

(only possible if bEveryday is false).



1

Spring

2

Summer

 

 

3

Fall



4

Winter

 

 

Note that the result of this function are affected by the Sun Data Source you have selected for the current script.


Topic 177500 updated on 14-Jul-2017.
Topic URL: http://www.qppstudio.net/webhelp/index.html?seasonof.htm