Please enable JavaScript to view this site.

 

int = SeasonOf(nDate, nSunDataSourceIndex, bEveryday)

 

This macro function returns a value from 0 to 4 depending on the Season 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

 

See also: SunLongitudeAngle, ZodiacSignOf.

 


Topic 177500, last updated on 18-Apr-2020