toEpochMilliseconds

Returns the number of milliseconds from the epoch instant 1970-01-01T00:00:00Z.

Any fractional part of millisecond is rounded down to the whole number of milliseconds.

If the result does not fit in Long, returns Long.MAX_VALUE for a positive result or Long.MIN_VALUE for a negative result.

See also