Java Instant Calculate plusMilli(Instant _date, long _milli)

Here you can find the source of plusMilli(Instant _date, long _milli)

Description

Add _milli milliseconds to _date

License

Open Source License

Declaration

public static final Instant plusMilli(Instant _date, long _milli) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.time.Instant;

import java.time.temporal.ChronoField;

public class Main {
    /**/*from  w ww .ja  v a 2  s.co  m*/
     * Add _milli milliseconds to _date <br>
     * 
     */
    public static final Instant plusMilli(Instant _date, long _milli) {
        return _date.plus(_milli, ChronoField.MILLI_OF_DAY.getBaseUnit());
    }
}

Related

  1. getSnowflakeFromTimestamp(Instant date)
  2. isEqualOrAfterNow(Instant now, Instant instant)
  3. maxInstant(Instant v1, Instant v2)
  4. nanos(Instant instant)
  5. plus(Instant instant, Duration add)
  6. restrictToDaytime(Instant instantToRestrict, Instant thresholdTime, ZoneId userZoneId)
  7. roundUp(final Instant time, final Duration duration)
  8. secondsAgo(Instant end)