Determine season given timestamp in Python using datetime
if the date falls between March 21 and June 20, it is spring. Regardless of the year. I want it to just look at the month and day and ignore the year in this calculation. #!/usr/bin/env python from datetime import date, datetime Y = 2000 # dummy leap year to allow input X-02-29 (leap day) … Read more