Misc. experiments in groovy
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

9 lines
223 B

import groovy.time.TimeCategory
use(TimeCategory) {
def now = new Date()
def then = now + 14.weeks + 6.days
def fmt = 'EEE MMM dd yyyy'
println now.clearTime()
println now.format(fmt)
println then.format(fmt)
}