Returns a timestamp relative to this one by the given number of minutes. This method always returns a Timestamp with the same precision as the original. For example, adjusting 2012-04-01T by one minute results in 2012-04-01T; adjusting 2012-04-01T00:00-00:00 by -1 minute
(int amount)
| 2502 | * @param amount a number of minutes. |
| 2503 | */ |
| 2504 | public final Timestamp adjustMinute(int amount) |
| 2505 | { |
| 2506 | long delta = (long) amount * 60 * 1000; |
| 2507 | return adjustMillis(delta); |
| 2508 | } |
| 2509 | |
| 2510 | /** |
| 2511 | * Returns a timestamp relative to this one by the given number of minutes. |