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
)
| 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, |