date_floor#
- sunpy.net.scraper_utils.date_floor(date, timestep)[source]#
Return the “floor” of the given date and timestep.
- Parameters:
datetime (
datetime.datetimeorastropy.time.Time) – The date to floor.timestep (
dateutil.relativedelta.relativedelta) – The smallest timestep to floor.
- Returns:
datetime.datetime– The time floored at the given time step