fromEpoch#
- classmethod geetools.DateAccessor.fromEpoch(number, unit='day')#
Set an the number of units since epoch (1970-01-01).
- Parameters:
- Returns:
The date as a
ee.Dateobject.- Return type:
Examples
import ee, geetools from geetools.utils import initialize_documentation initialize_documentation() d = ee.Date.geetools.fromEpoch(49, 'year') d.format("YYYY-MM-DD").getInfo()
'2019-01-01'