Java Date Time - Instant Example








Field

  1. Instant MAX
  2. Instant MIN
  3. Instant EPOCH

Method

  1. Instant adjustInto(Temporal temporal)
  2. Instant atOffset(ZoneOffset offset)
  3. Instant atZone(ZoneId zone)
  4. Instant compareTo(Instant otherInstant)
  5. Instant equals(Object otherInstant)
  6. Instant from(TemporalAccessor temporal)
  7. Instant getEpochSecond()
  8. Instant getLong(TemporalField field)
  9. Instant getNano()
  10. Instant get(TemporalField field)
  11. Instant hashCode()
  12. Instant isAfter(Instant otherInstant)
  13. Instant isBefore(Instant otherInstant)
  14. Instant isSupported(TemporalField field)
  15. Instant isSupported(TemporalUnit unit)
  16. Instant minusMillis(long millisToSubtract)
  17. Instant minusNanos(long nanosToSubtract)
  18. Instant minusSeconds(long secondsToSubtract)
  19. Instant minus(long amountToSubtract, TemporalUnit unit)
  20. Instant minus(TemporalAmount amountToSubtract)
  21. Instant now()
  22. Instant now(Clock clock)
  23. Instant ofEpochMilli(long epochMilli)
  24. Instant ofEpochSecond(long epochSecond)
  25. Instant ofEpochSecond(long epochSecond, long nanoAdjustment)
  26. Instant parse(CharSequence text)
  27. Instant plusMillis(long millisToAdd)
  28. Instant plusNanos(long nanosToAdd)
  29. Instant plusSeconds(long secondsToAdd)
  30. Instant plus(long amountToAdd, TemporalUnit unit)
  31. Instant plus(TemporalAmount amountToAdd)
  32. Instant query(TemporalQuery query)
  33. Instant range(TemporalField field)
  34. Instant toEpochMilli()
  35. Instant toString()
  36. Instant truncatedTo(TemporalUnit unit)
  37. Instant until(Temporal endExclusive, TemporalUnit unit)
  38. Instant with(TemporalAdjuster adjuster)
  39. Instant with(TemporalField field, long newValue)