Skip to content

Commit 7fe710e

Browse files
committed
refined comments
1 parent e3adfe0 commit 7fe710e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

sc2reader/parsers.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,9 +138,11 @@ def load(self, replay, filecontents):
138138
replay.map = data[1].decode("hex")
139139
replay.file_time = data[5]
140140

141-
# TODO: This doesn't seem to produce exactly correct results.
141+
# TODO: This doesn't seem to produce exactly correct results, ie. often off by one
142+
# second compared to file timestamps reported by Windows.
142143
# This might be due to wrong value of the magic constant 116444735995904000
143-
# or rounding errors.
144+
# or rounding errors. Ceiling or Rounding the result didn't produce consistent
145+
# results either.
144146
replay.date = datetime.fromtimestamp((replay.file_time-116444735995904000)/10000000)
145147
replay.utc_date = datetime.utcfromtimestamp((replay.file_time-116444735995904000)/10000000)
146148

0 commit comments

Comments
 (0)