You can use TimeCategory
import groovy.time.TimeCategory
currentDate = new Date()
println currentDate
use( TimeCategory ) {
after30Mins = currentDate + 30.minutes
}
println after30Mins
You can use TimeCategory
import groovy.time.TimeCategory
currentDate = new Date()
println currentDate
use( TimeCategory ) {
after30Mins = currentDate + 30.minutes
}
println after30Mins