Skip to content

Commit

Permalink
indxparse: ensure running under python2.7
Browse files Browse the repository at this point in the history
  • Loading branch information
Willi Ballenthin committed Oct 1, 2018
1 parent 1b32736 commit ca08236
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions INDXParse.py
Expand Up @@ -40,6 +40,10 @@
INDEX_NODE_BLOCK_SIZE = 4096


if sys.version_info[0] > 2:
raise RuntimeError("INDXParse only runs on Python 2.7. See issue #26.")


def parse_windows_timestamp(qword):
# see http://integriography.wordpress.com/2010/01/16/using-phython-to-parse-and-present-windows-64-bit-timestamps/
return datetime.utcfromtimestamp(float(qword) * 1e-7 - 11644473600)
Expand Down

0 comments on commit ca08236

Please sign in to comment.