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

Method addMinute

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

Returns a timestamp relative to this one by the given number of minutes. This method always returns a Timestamp with at least MINUTE precision. For example, adding one minute to 2011T results in 2011-01-01T00:01-00:00. To receive a Timestamp that always maintains the same precisi

(int amount)

Source from the content-addressed store, hash-verified

2518 * @param amount a number of minutes.
2519 */
2520 public final Timestamp addMinute(int amount)
2521 {
2522 long delta = (long) amount * 60 * 1000;
2523 return addMillisForPrecision(delta, Precision.MINUTE, false);
2524 }
2525
2526 /**
2527 * Returns a timestamp relative to this one by the given number of hours.

Calls 1

addMillisForPrecisionMethod · 0.95