-
public class Instant.Companion
-
-
Field Summary
Fields Modifier and Type Field Description public final static Instant.CompanionINSTANCE
-
Method Summary
Modifier and Type Method Description final Instantparse(String input)Parses an Instant from its ISO-8601 representation. final InstantfromKotlinInstant(Instant value)final InstantfromJavaDate(Date date)final InstantfromEpochMilliseconds(Long milliseconds)final Instantnow()Returns an Instant representing the current moment in time. -
-
Method Detail
-
parse
final Instant parse(String input)
Parses an Instant from its ISO-8601 representation.
Returns null if it can't be parsed.
-
fromKotlinInstant
final Instant fromKotlinInstant(Instant value)
-
fromJavaDate
final Instant fromJavaDate(Date date)
-
fromEpochMilliseconds
final Instant fromEpochMilliseconds(Long milliseconds)
-
-
-
-