Annuncio: tutti i progetti non commerciali registrati per l'utilizzo di Earth Engine prima del 15 aprile 2025 devono verificare l'idoneità non commerciale per mantenere l'accesso a Earth Engine.
Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
Restituisce un intervallo di date che copre l'unità del tipo specificato contenente questa data, ad es. Date('2013-3-15').getRange('year') restituisce DateRange('2013-1-1', '2014-1-1').
Utilizzo
Resi
Date.getRange(unit, timeZone)
DateRange
Argomento
Tipo
Dettagli
questo: date
Data
unit
Stringa
Uno dei valori "year", "month", "week", "day", "hour", "minute" o "second".
timeZone
Stringa, predefinito: null
Il fuso orario (ad es. 'America/Los_Angeles'); il valore predefinito è UTC.
[[["Facile da capire","easyToUnderstand","thumb-up"],["Il problema è stato risolto","solvedMyProblem","thumb-up"],["Altra","otherUp","thumb-up"]],[["Mancano le informazioni di cui ho bisogno","missingTheInformationINeed","thumb-down"],["Troppo complicato/troppi passaggi","tooComplicatedTooManySteps","thumb-down"],["Obsoleti","outOfDate","thumb-down"],["Problema di traduzione","translationIssue","thumb-down"],["Problema relativo a esempi/codice","samplesCodeIssue","thumb-down"],["Altra","otherDown","thumb-down"]],["Ultimo aggiornamento 2025-06-24 UTC."],[[["`Date.getRange()` returns a `DateRange` object representing the specified time unit (year, month, week, day, hour, minute, or second) that contains the input date."],["The returned `DateRange` spans the entire unit of time, for example, if the input date is March 15, 2013, and the unit is 'year', the returned `DateRange` will be from January 1, 2013, to January 1, 2014."],["You can optionally specify a time zone for the `DateRange`; if not provided, it defaults to UTC."],["This function is useful for creating time-based filters or selecting data within specific time intervals."]]],[]]