hydrus/hydrus/client/ClientTime.py

18 lines
414 B
Python
Raw Normal View History

2022-03-09 22:18:23 +00:00
from hydrus.core import HydrusData
def ShouldUpdateDomainModifiedTime( existing_timestamp: int, timestamp: int ):
# assume anything too early is a meme and a timestamp parsing conversion error
if timestamp <= 86400 * 7:
return False
# only go backwards, in general
if timestamp >= existing_timestamp:
return False
return True