What is a Java Instant? (Moment)

Card Puncher Data Processing

About

An Java Instant is a date time class that represents a time moment on the epoch scale.

long epochSecond = 0;
int nanos = 0;
public static final Instant EPOCH = new Instant(epochSecond , nanos );

Management

Set

Instant instant = Instant.parse("2007-12-03T10:15:30.00Z");

Conversion

fromDate

Date

new Date().toInstant()







Share this page:
Follow us:
Task Runner