For a certain date (this is a hard coded date), I want to increment through the time for LastModifiedTimeFrom
and LastModifiedTimeTo
by 10 minutes each time.
I have tried the below but it is not performing the increment and I am not sure why?
Date d = Date.parse("HH:mm:ss", "00:00:00")
Calendar c = Calendar.getInstance()
c.setTime(d)
c.add(MINUTE, 10)
assert c.time == "00:10:00"
c.add(MINUTE, 10)
assert c.time == "00:20:00"
c.add(MINUTE, 10)
assert c.time == "00:30:00"