/ Published in: Groovy
Groovy ranges works on dates also!
(http://kousenit.wordpress.com/2009/02/02/groovy-groundhogs/)
(http://kousenit.wordpress.com/2009/02/02/groovy-groundhogs/)
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
println "Between Feb 2 and Mar 21, there are $days days" // will print Between Feb 2 and Mar 21, there are 48 days