fork(42) download
  1. use(groovy.time.TimeCategory) {
  2. def halfHourFromNow = new Date() + 2.hour + 30.minutes
  3. println halfHourFromNow.format("yyyy-MM-dd HH:mm:ss")
  4. }
Success #stdin #stdout 0.95s 4456448KB
stdin
Standard input is empty
stdout
2017-07-27 05:45:55