February 2, 2009 5 Comments
So the groundhog saw his shadow today, implying six more weeks of Winter. Let’s settle this nonsense once and for all.
def cal = Calendar.instance cal.set(2009,Calendar.FEBRUARY,2) def ghday = cal.time cal.set(2009,Calendar.MARCH,21) def spring = cal.time def days = (ghday..spring).size() println "Between Feb 2 and Mar 21, there are $days days"
The output is
Between Feb 2 and Mar 21, there are 48 days
In other words, there are six weeks and six days between Groundhog Day and the first day of Spring. So we’re already going to have an early Spring. 🙂