Skip to main content
Version: Java (Groovy)

currentTimeMillis

currentTimeMillis returns the number of milliseconds since the epoch (1970-01-01T00:00:00Z).

Syntax

currentTimeMillis()

Parameters

This method takes no arguments.

Returns

The number of milliseconds since the epoch (1970-01-01T00:00:00Z).

Examples

println currentClock().currentTimeMillis()