ee.Date.getFraction

Returns this date's elapsed fraction of the specified unit (between 0 and 1).

UsageReturns
Date.getFraction(unit, timeZone)Float
ArgumentTypeDetails
this: dateDate

unitString

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

timeZoneString, default: null

The time zone (e.g. 'America/Los_Angeles'); defaults to UTC.

Examples

JavaScript

// Your example goes here!

Python

# Your example goes here!