geetools.Date.DateAccessor#

class geetools.Date.DateAccessor(obj)#

Toolbox for the ee.Date class.

Initialize the Date class.

Parameters:

obj (ee.Date)

Methods#

check_unit(unit)

Check if the provided value is a valid time unit.

fromDOY(doy, year)

Create a date from a day of year and a year.

fromEpoch(number[, unit])

Set an the number of units since epoch (1970-01-01).

getUnitSinceEpoch([unit])

Get the number of units since epoch (1970-01-01).

isLeap()

Check if the year of the date is a leap year.

to_datetime()

Convert a ee.Date to a datetime.datetime.