OffsetTime minusMinutes(long minutes) example
Description
OffsetTime minusMinutes(long minutes)
returns a copy of this OffsetTime with the specified period in minutes subtracted.
Syntax
minusMinutes
has the following syntax.
public OffsetTime minusMinutes(long minutes)
Example
The following example shows how to use minusMinutes
.
import java.time.OffsetTime;
/*from ww w.j a va 2 s . c o m*/
public class Main {
public static void main(String[] args) {
OffsetTime m = OffsetTime.now();
OffsetTime n = m.minusMinutes(14);
System.out.println(n);
}
}
The code above generates the following result.