Java System currentTimeMillis() Method

The currentTimeMillis() method of System class returns current time in format of millisecond. Millisecond will be returned as unit of time.

Syntax

Returns

Returns difference, measured in milliseconds, between current time and midnight January 1, 1970 UTC(coordinated universal time).

Example

Output:

Current time in millisecond
1532262046724