from datetime import datetime, timedelta
now = datetime.now()
now = now - timedelta(minutes=now.minute % 15, seconds=now.second,
    microseconds=now.microsecond)
Найти текущий временной интервал в python?