I want to get date value from time series of earth engine collection. This is my code:
import ee
ee.Authenticate()
ee.Initialize()
collection = ee.ImageCollection('NASA/FLDAS/NOAH01/C/GL/M/V001')
taken = collection.filterDate('2019-01-01', '2019-12-31').sort('system:time_start', False)
poi = ee.Geometry.Point([112.621391, -7.983908])
def setProperty(image):
dict = image.reduceRegion(ee.Reducer.mean(), poi)
return image.set(dict)
reduce = collection.map(setProperty)
time = reduce.aggregate_array('system:time_start').getInfo()
print(time)
But I get this output:
[378691200000, 381369600000, 383788800000, ..., 1588291200000]
Question: How to get the real date like this?
2019-01-01 00:00:00