ee.Date.fromYMD

年、月、日を指定して Date を返します。

用途戻り値
ee.Date.fromYMD(year, month, day, timeZone)日付
引数タイプ詳細
yearIntegerたとえば、2013 年です。
monthInteger月(例: 3)。
dayInteger日(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 環境のページをご覧ください。

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')
)