Stay organized with collections
Save and categorize content based on your preferences.
Returns the ratio of the length of one unit to the length of another, e.g., unitRatio('day', 'minute') returns 1440. Valid units are 'year', 'month' 'week', 'day', 'hour', 'minute', and 'second'.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-07-13 UTC."],[[["`ee.Date.unitRatio()` calculates the length ratio between two time units, such as days and minutes."],["Valid time units for this function include 'year', 'month', 'week', 'day', 'hour', 'minute', and 'second'."],["The function takes two string arguments: the numerator unit and the denominator unit, and returns a float representing the ratio."],["Example: `ee.Date.unitRatio('day', 'minute')` would return 1440, indicating there are 1440 minutes in a day."]]],[]]