now

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

Syntax

Parameters

This method takes no arguments.

Returns

The current date-time.

Examples