rq/tests/helpers.py

7 lines
123 B
Python

from datetime import timedelta
def strip_microseconds(date):
return date - timedelta(microseconds=date.microsecond)