MCPcopy Create free account
hub / github.com/amazon-ion/ion-java / adjustMinute

Method adjustMinute

src/main/java/com/amazon/ion/Timestamp.java:2504–2508  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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.

Calls 1

adjustMillisMethod · 0.95