now

now provides the current date-time as an Instant. The resultant date-time has a millisecond resolution according to the current clock.

Syntax

now()

Parameters

This method takes no arguments.

Returns

The current date-time.

Examples

println now()