Java - Instant (Moment)

About

Time - Moment (Time derivative) in Java

java/time/Instant is a date time class that represent time in 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

Java - Date

new Date().toInstant()

Powered by ComboStrap