Version: Java (Groovy)On this pageinstantNanosinstantNanos returns the current Instant.SyntaxinstantMillis()ParametersThis method takes no arguments.ReturnsThe Instant.Examplesprintln currentClock().instantMillis()LogRelated DocumentationHow to work with date-timesJavadoc