Returns a timestamp relative to this one by the given number of days. @param amount a number of days.
(int amount)
| 2580 | * @param amount a number of days. |
| 2581 | */ |
| 2582 | public final Timestamp addDay(int amount) |
| 2583 | { |
| 2584 | long delta = (long) amount * 24 * 60 * 60 * 1000; |
| 2585 | return addMillisForPrecision(delta, Precision.DAY, false); |
| 2586 | } |
| 2587 | |
| 2588 | // Shifting month and year are more complicated since the length of a month |
| 2589 | // varies and we want the day-of-month to stay the same when possible. |