ee.Date.fromYMD

מחזירה תאריך בהינתן שנה, חודש ויום.

שימושהחזרות
ee.Date.fromYMD(year, month, day, timeZone)תאריך
ארגומנטסוגפרטים
yearמספר שלםהשנה, למשל 2013.
monthמספר שלםהחודש, למשל 3.
dayמספר שלםהיום בחודש, למשל 15.
timeZoneמחרוזת, ברירת מחדל: nullאזור הזמן (למשל, ‫'America/Los_Angeles'); ברירת המחדל היא UTC.

דוגמאות

עורך הקוד (JavaScript)

print('Date with default UTC',
      ee.Date.fromYMD(2021, 4, 30));

print('Date with time zone specified',
      ee.Date.fromYMD(2021, 4, 30, 'America/Los_Angeles'));

הגדרת Python

מידע על Python API ועל שימוש ב-geemap לפיתוח אינטראקטיבי מופיע בדף Python Environment.

import ee
import geemap.core as geemap

Colab (Python)

display('Date with default UTC:', ee.Date.fromYMD(2021, 4, 30))

display(
    'Date with time zone specified:',
    ee.Date.fromYMD(2021, 4, 30, 'America/Los_Angeles')
)