Changed week to microsecond

This commit is contained in:
Dpeta 2021-03-24 16:50:58 +01:00
parent 400eef5371
commit f2a4fab1cb
2 changed files with 4 additions and 4 deletions

View file

@ -69,7 +69,7 @@ def txt2delta(txt):
return sign*timed
def pcfGrammar(td):
if td == timedelta(weeks=1): # Replacement for mysteryTime </3
if td == timedelta(microseconds=1): # Replacement for mysteryTime </3
when = "???"
temporal = "???"
pcf = "?"
@ -102,7 +102,7 @@ class TimeTracker(list):
# mysteryTime breaks stuff now, so, uh
# I'm replacing it with 1 day...
if type(time)==mysteryTime:
time = timedelta(weeks=1)
time = timedelta(microseconds=1)
self.timerecord = {"P": [], "F": []}
self.open = {}
if time is not None:
@ -115,7 +115,7 @@ class TimeTracker(list):
def addTime(self, timed):
# mysteryTime </3
if type(timed)==mysteryTime:
timed = timedelta(weeks=1)
timed = timedelta(microseconds=1)
try:
i = self.index(timed)
self.current = i

View file

@ -917,7 +917,7 @@ def timeProtocol(cmd):
return timed
def timeDifference(td):
if td == timedelta(weeks=1): # mysteryTime replacement :(
if td == timedelta(microseconds=1): # mysteryTime replacement :(
return "??:?? FROM ????"
if td < timedelta(0):
when = "AGO"