Announcement: All noncommercial projects registered to use Earth Engine before
April 15, 2025 must
verify noncommercial eligibility to maintain Earth Engine access.
ee.DateRange.isUnbounded
Stay organized with collections
Save and categorize content based on your preferences.
Returns true if this DateRange contains all dates.
Usage | Returns | DateRange.isUnbounded() | Boolean |
Argument | Type | Details | this: dateRange | DateRange | |
Examples
Code Editor (JavaScript)
// A series of ee.DateRange objects.
var dateRangeBounded = ee.DateRange('2017-06-24', '2017-07-24');
var dateRangeUnbounded = ee.DateRange.unbounded();
// Determine if an ee.DateRange object is unbounded.
print('Is dateRangeBounded unbounded?', dateRangeBounded.isUnbounded());
print('Is dateRangeUnbounded unbounded?', dateRangeUnbounded.isUnbounded());
Python setup
See the
Python Environment page for information on the Python API and using
geemap
for interactive development.
import ee
import geemap.core as geemap
Colab (Python)
# A series of ee.DateRange objects.
date_range_bounded = ee.DateRange('2017-06-24', '2017-07-24')
date_range_unbounded = ee.DateRange.unbounded()
# Determine if an ee.DateRange object is unbounded.
display('Is date_range_bounded unbounded?', date_range_bounded.isUnbounded())
display(
'Is date_range_unbounded unbounded?', date_range_unbounded.isUnbounded()
)
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2023-10-06 UTC.
[null,null,["Last updated 2023-10-06 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eisUnbounded()\u003c/code\u003e method, applied to a \u003ccode\u003eDateRange\u003c/code\u003e object, returns \u003ccode\u003etrue\u003c/code\u003e if the \u003ccode\u003eDateRange\u003c/code\u003e includes all dates.\u003c/p\u003e\n"],["\u003cp\u003eIt takes a single argument, the \u003ccode\u003eDateRange\u003c/code\u003e object itself, and returns a boolean value indicating whether the date range is unbounded.\u003c/p\u003e\n"],["\u003cp\u003eThis method helps determine if a \u003ccode\u003eDateRange\u003c/code\u003e is unbounded, meaning it represents all possible dates without specific start and end points.\u003c/p\u003e\n"],["\u003cp\u003eExamples demonstrate using \u003ccode\u003eisUnbounded()\u003c/code\u003e with \u003ccode\u003eDateRange\u003c/code\u003e objects in JavaScript and Python, illustrating how to check for unbounded date ranges.\u003c/p\u003e\n"]]],["The `isUnbounded()` method checks if a `DateRange` object contains all dates. It returns a boolean (`true` or `false`). The method is called on a `DateRange` object. The provided examples create bounded and unbounded `DateRange` objects and then use `isUnbounded()` to determine if they are unbounded. The outputs show if the object is unbounded, for example if the `DateRange` is `ee.DateRange.unbounded()`.\n"],null,["# ee.DateRange.isUnbounded\n\nReturns true if this DateRange contains all dates.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|---------------------------|---------|\n| DateRange.isUnbounded`()` | Boolean |\n\n| Argument | Type | Details |\n|-------------------|-----------|---------|\n| this: `dateRange` | DateRange | |\n\nExamples\n--------\n\n### Code Editor (JavaScript)\n\n```javascript\n// A series of ee.DateRange objects.\nvar dateRangeBounded = ee.DateRange('2017-06-24', '2017-07-24');\nvar dateRangeUnbounded = ee.DateRange.unbounded();\n\n// Determine if an ee.DateRange object is unbounded.\nprint('Is dateRangeBounded unbounded?', dateRangeBounded.isUnbounded());\nprint('Is dateRangeUnbounded unbounded?', dateRangeUnbounded.isUnbounded());\n```\nPython setup\n\nSee the [Python Environment](/earth-engine/guides/python_install) page for information on the Python API and using\n`geemap` for interactive development. \n\n```python\nimport ee\nimport geemap.core as geemap\n```\n\n### Colab (Python)\n\n```python\n# A series of ee.DateRange objects.\ndate_range_bounded = ee.DateRange('2017-06-24', '2017-07-24')\ndate_range_unbounded = ee.DateRange.unbounded()\n\n# Determine if an ee.DateRange object is unbounded.\ndisplay('Is date_range_bounded unbounded?', date_range_bounded.isUnbounded())\ndisplay(\n 'Is date_range_unbounded unbounded?', date_range_unbounded.isUnbounded()\n)\n```"]]