> hi all,
> how would i increment the timestamp by one day. i currently have,
[quoted text clipped - 4 lines]
> any help please.
> thanks.
// 84600000 milliseconds in a day
long oneDay = 1 * 24 * 60 * 60 * 1000;
// to add to the timestamp
timestampTo.setTime(timestampTo.getTime() + oneDay);

Signature
JSC
Oliver Wong - 15 Mar 2006 18:12 GMT
>> hi all,
>> how would i increment the timestamp by one day. i currently have,
[quoted text clipped - 9 lines]
> // to add to the timestamp
> timestampTo.setTime(timestampTo.getTime() + oneDay);
Does the OP need to take into account leap seconds and perhaps
non-gregorian calendars? If so, it might be safer (though more work) to
parse the timestamp into a Date Object of the appropriate calendar type,
increment the date by one day, and then convert back to a timestamp.
- Oliver