MCPcopy
hub / github.com/google/earthengine-api / difference

Method difference

python/ee/ee_date.py:129–145  ·  view source on GitHub ↗

Returns the difference between two Dates in the specified units. Args: start: The date to compare to. unit: One of 'year', 'month', 'week', 'day', 'hour', 'minute', or 'second'. Returns: Returns an ee.Number based on the average length of the unit.

(
      self, start: _DateType, unit: _arg_types.String
  )

Source from the content-addressed store, hash-verified

127 )
128
129 def difference(
130 self, start: _DateType, unit: _arg_types.String
131 ) -> ee_number.Number:
132 """Returns the difference between two Dates in the specified units.
133
134 Args:
135 start: The date to compare to.
136 unit: One of 'year', 'month', 'week', 'day', 'hour', 'minute', or
137 'second'.
138
139 Returns:
140 Returns an ee.Number based on the average length of the unit.
141 """
142
143 return apifunction.ApiFunction.call_(
144 self.name() + '.difference', self, start, unit
145 )
146
147 def format(
148 self,

Callers 10

promoteArgsMethod · 0.45
_get_input_tensor_specFunction · 0.45
test_differenceMethod · 0.45
test_differenceMethod · 0.45
test_differenceMethod · 0.45
arguments.jsFile · 0.45
createTimeBandFunction · 0.45
addIndependentVariablesFunction · 0.45
addDependentsFunction · 0.45

Calls 2

nameMethod · 0.95
call_Method · 0.80

Tested by 3

test_differenceMethod · 0.36
test_differenceMethod · 0.36
test_differenceMethod · 0.36