I'm new to groovy and currently working on manipulating dates. Is their anyway that I can subtract or add two dates in groovy? For example I have:
def build = Build.get(params.id)
def firstDate = build.firstDate
def secondDate = build.secondDate
now I want to add the dates something like:
firstDate + secondDate = (total hours or minutes)
....or does it need to be converted to something like integer?
Update:
For example, the start date is Jan.7,2013 12:00 and the end date is Jan.8,2013 1:30. I want to calculate how many hours or minute their is in between those dates...sorry for my bad english :(