ee.Date.get

Returns the specified unit of this date.

UsageReturns
Date.get(unit, timeZone)Long
ArgumentTypeDetails
this: dateDate

unitString

One of 'year', 'month' (returns 1-12), 'week' (1-53), 'day' (1-31), 'hour' (0-23), 'minute' (0-59), or 'second' (0-59).

timeZoneString, default: null

The time zone (e.g. 'America/Los_Angeles'); defaults to UTC.

Examples

JavaScript

// Your example goes here!

Python

# Your example goes here!