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