def new_moon_before(cls, fixed_date): """Return fixed date (Beijing) of first new moon before fixed date, 'fixed_date'.""" tee = Lunar.new_moon_before(cls.midnight(fixed_date)) return ifloor(cls.location(tee).standard_from_universal(tee))