code: def prevLunarEclipse(date):
      
  
      eclipse = swe.lunarEclipseGlobal(date.jd, backward=True)
      return Datetime.fromJD(eclipse['maximum'], date.utcoffset)
docs: Returns the Datetime of the maximum phase of the
      previous global lunar eclipse.