הודעה: כל הפרויקטים הלא מסחריים שנרשמו לשימוש ב-Earth Engine לפני 15 באפריל 2025 חייבים לעבור אימות של הזכאות לשימוש לא מסחרי כדי לשמור על הגישה ל-Earth Engine.
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
הפונקציה מחזירה טווח תאריכים שכולל את היחידה מהסוג שצוין שמכילה את התאריך הזה, למשל: פונקציית Date('2013-3-15').getRange('year') מחזירה את DateRange('2013-1-1', '2014-1-1').
שימוש
החזרות
Date.getRange(unit, timeZone)
DateRange
ארגומנט
סוג
פרטים
זה: date
תאריך
unit
מחרוזת
אחת מהאפשרויות הבאות: 'שנה', 'חודש', 'שבוע', 'יום', 'שעה', 'דקה' או 'שנייה'.
timeZone
מחרוזת, ברירת המחדל: null
אזור הזמן (למשל, 'America/Los_Angeles'); ברירת המחדל היא UTC.
[[["התוכן קל להבנה","easyToUnderstand","thumb-up"],["התוכן עזר לי לפתור בעיה","solvedMyProblem","thumb-up"],["סיבה אחרת","otherUp","thumb-up"]],[["חסרים לי מידע או פרטים","missingTheInformationINeed","thumb-down"],["התוכן מורכב מדי או עם יותר מדי שלבים","tooComplicatedTooManySteps","thumb-down"],["התוכן לא עדכני","outOfDate","thumb-down"],["בעיה בתרגום","translationIssue","thumb-down"],["בעיה בדוגמאות/בקוד","samplesCodeIssue","thumb-down"],["סיבה אחרת","otherDown","thumb-down"]],["עדכון אחרון: 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."]]],[]]