ee.Date.millis

The number of milliseconds since 1970-01-01T00:00:00Z.

UsageReturns
Date.millis()Long
ArgumentTypeDetails
this: dateDate

Examples

Code Editor (JavaScript)

var date = ee.Date(Date.now());

print('Milliseconds since Unix epoch', date.millis());

Python setup

See the Python Environment page for information on the Python API and using geemap for interactive development.

import ee
import geemap.core as geemap

Colab (Python)

from datetime import datetime

date = ee.Date(datetime.now())

display('Milliseconds since Unix epoch:', date.millis())