Javatpoint Logo
Javatpoint Logo

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

Test it Now

Output:

Current time in millisecond
1532262046724

Next TopicJava System



Help Others, Please Share

facebook twitter pinterest