ee.DateRange.isUnbounded

Returns true if this DateRange contains all dates.

UsageReturns
DateRange.isUnbounded()Boolean
ArgumentTypeDetails
this: dateRangeDateRange

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