geetools.tools._deprecated_date#

Legacy tools for ee.Date.

Module Contents#

Functions#

dateSinceEpoch(date[, unit])

Get the date for the specified date in unit..

daterangeIntervals(start, end[, interval, unit, ...])

Divide a range that goes from start_date to end_date into many.

daterangeList(start, end, interval, unit)

Divide a range that goes from start_date to end_date into many.

fromDOY(year, doy)

Get the date from year and day of year.

isLeap(date)

Check if a date is leap.

makeDateBand(image[, format, bandname])

Add a band name to the image.

millisToDatetime(millis)

Convert from milliseconds to datetime.datetime.

toDatetime(date)

Convert from ee to datetime.datetime.

unitSinceEpoch(date[, unit])

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

geetools.tools._deprecated_date.dateSinceEpoch(date, unit='day')[source]#

Get the date for the specified date in unit..

geetools.tools._deprecated_date.daterangeIntervals(start, end, interval=1, unit='month', date_range=(1, 1), date_range_unit='day', direction='backward')[source]#

Divide a range that goes from start_date to end_date into many.

geetools.tools._deprecated_date.daterangeList(start, end, interval, unit)[source]#

Divide a range that goes from start_date to end_date into many.

geetools.tools._deprecated_date.fromDOY(year, doy)[source]#

Get the date from year and day of year.

geetools.tools._deprecated_date.isLeap(date)[source]#

Check if a date is leap.

geetools.tools._deprecated_date.makeDateBand(image, format='YMMdd', bandname='date')[source]#

Add a band name to the image.

geetools.tools._deprecated_date.millisToDatetime(millis)[source]#

Convert from milliseconds to datetime.datetime.

geetools.tools._deprecated_date.toDatetime(date)[source]#

Convert from ee to datetime.datetime.

geetools.tools._deprecated_date.unitSinceEpoch(date, unit='day')[source]#

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