def isLeapYear(self,year):
    return year > 1582 and (0 == year % 400 or (0 == year % 4 and not 0 == year % 100)) 

  #This function returns the number of month and day from the data
dataset/ETHPy150Open tethysplatform/tethys/tethys_gizmos/lib/fetchclimate/fc_time_series.py/FCTimeSeries.isLeapYear/original