Version: Java (Groovy)On this pagenowSystemnowSystem provides the current date-time as an Instant, with nanosecond resolution according to the system clock.SyntaxnowSystem()ParametersThis method takes no arguments.ReturnsThe current date-time.Examplesprintln nowSystem()LogRelated documentationHow to work with date-timesJavadoc