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 환경 페이지를 참고하세요.

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