The number of milliseconds since 1970-01-01T00:00:00Z.
Usage | Returns | Date.millis() | Long |
Argument | Type | Details | this: date | Date | |
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())