Stay organized with collections
Save and categorize content based on your preferences.
Returns a filter that passes if the object's timestamp falls within the given range of a calendar field. The month, day_of_year, day_of_month, and day_of_week are 1-based. Times are assumed to be in UTC. Weeks are assumed to begin on Monday as day 1. If end < start then this tests for value >= start OR value <= end, to allow for wrapping.
Usage
Returns
ee.Filter.calendarRange(start, end, field)
Filter
Argument
Type
Details
start
Integer
The start of the desired calendar field, inclusive.
end
Integer, default: null
The end of the desired calendar field, inclusive. Defaults to the same value as start.
field
String, default: "day_of_year"
The calendar field to filter over. Options are: `year`, `month`, `hour`, `minute`, `day_of_year`, `day_of_month`, and `day_of_week`.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2023-10-06 UTC."],[[["Filters objects based on whether their timestamp falls within a specified calendar date range (e.g., month, day of year)."],["Allows filtering by various calendar fields like year, month, hour, minute, day of year, day of month, and day of week, with \"day_of_year\" as the default."],["Accepts start and end values for the range, with the end defaulting to the start value if not specified."],["Supports wrapping, meaning if `end` is less than `start`, it filters for values greater than or equal to `start` OR less than or equal to `end`."],["Assumes times are in UTC and weeks begin on Monday."]]],[]]