-7
Task
When running the program must show the season according to the host computer's current time.
Rules
The output must be either: Spring, Winter, Summer or Autumn.
The capitalization does not matter.
The output must not contain anything else the the season names stated above.
A season is 3 months and january is in this case the start of spring. (Northern hemisphere)
Testcase
(program ran in January)
Output:
Spring
(program ran in April)
Output:
Summer
Scoring
This is code-golf. Shortest answer in bytes wins.
Can we return one of
0, 1, 2, 3
instead ofSpring, Winter, Summer, Autumn
? – Stephen – 2017-05-20T16:59:31.3839What ranges of dates are in each season? – Rohan Jhunjhunwala – 2017-05-20T16:59:40.970
And in mine, spring starts from march – Mr. Xcoder – 2017-05-20T17:45:30.673
What if I live in the Southern Hemisphere? – Ian Miller – 2017-05-21T15:59:29.107
@IanMiller do you have other seasons there? for this challenge you need to output the season as in january is the start of spring december is the end of winter etc – Luc H – 2017-05-21T17:37:13.463
And can someone tell my what is unclear as i would like to clear up any confusing things. The current anwsers all followed the challenge – Luc H – 2017-05-21T17:38:00.613
@Ayoungcoder can you provide specific date ranges for "3 months"? Should we just use the solstices/equinoxes? And january is definitely winter... – Rɪᴋᴇʀ – 2017-05-21T18:43:44.663
Of course the Southern Hemisphere has different seasons. For example January would be the middle of summer. I therefore thought that January would be the middle of winter in the Northern Hemisphere. – Ian Miller – 2017-05-22T14:30:43.583