isLeap#
- geetools.ee_date.DateAccessor.isLeap()#
Check if the year of the date is a leap year.
- Returns:
1if the year is a leap year,0otherwise.- Return type:
Examples
import ee, geetools from geetools.utils import initialize_documentation initialize_documentation() isLeap = ee.Date('2020-01-01').geetools.isLeap() isLeap.getInfo()
1