Version: Java (Groovy)On this pagenownow provides the current date-time as an Instant. The resultant date-time has a millisecond resolution according to the current clock.Syntaxnow()ParametersThis method takes no arguments.ReturnsThe current date-time.Examplesprintln now()LogRelated documentationHow to work with date-timesJavadoc