ee.Date.difference

Returns the difference between two Dates in the specified units; the result is floating-point and based on the average length of the unit.

UsageReturns
Date.difference(start, unit)Float
ArgumentTypeDetails
this: dateDate

startDate

unitString

One of 'year', 'month' 'week', 'day', 'hour', 'minute', or 'second'.

Examples

JavaScript

// Your example goes here!

Python

# Your example goes here!