Java Instant Calculate isEqualOrAfterNow(Instant now, Instant instant)

Here you can find the source of isEqualOrAfterNow(Instant now, Instant instant)

Description

is Equal Or After Now

License

Open Source License

Declaration

public static boolean isEqualOrAfterNow(Instant now, Instant instant) 

Method Source Code

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

import java.time.Instant;

public class Main {
    public static boolean isEqualOrAfterNow(Instant now, Instant instant) {
        return !instant.isBefore(now);
    }//www .j  av  a  2  s .c o m

    public static boolean isEqualOrAfterNow(Instant instant) {
        return isEqualOrAfterNow(Instant.now(), instant);
    }
}

Related

  1. dateOf(final Instant time)
  2. epochToInstant(long epochMilliSecond)
  3. getNquadsFile(final File dir, final Instant time)
  4. getPeriodInstant(LocalDate localDate)
  5. getSnowflakeFromTimestamp(Instant date)
  6. maxInstant(Instant v1, Instant v2)
  7. nanos(Instant instant)
  8. plus(Instant instant, Duration add)
  9. plusMilli(Instant _date, long _milli)