Example usage for java.time Instant minusMillis

List of usage examples for java.time Instant minusMillis

Introduction

In this page you can find the example usage for java.time Instant minusMillis.

Prototype

public Instant minusMillis(long millisToSubtract) 

Source Link

Document

Returns a copy of this instant with the specified duration in milliseconds subtracted.

Usage

From source file:Main.java

public static void main(String[] args) {
    Instant instant = Instant.parse("2014-12-03T10:15:30.00Z");
    instant = instant.minusMillis(10000);
    System.out.println(instant);//from  www.  j a  v a  2  s.c  o m

}