Commit Graph
2 Commits
Author SHA1 Message Date
5fa8976f86 Fix a crash when all 64 bits in timestamp are 1 (#22)
We've found some .msg files in the wild that have a CREATION_TIME that
has all 64 bits set: 9223372036854775807.

Adding this number of 100ns intervals to the base timestamp of
1601-01-01 results in a timestamp somewhere in the year 30828 which is
not supported by Python's datetime module, as datetime.MAXYEAR is
currently 9999.

Co-authored-by: Martijn van de Streek <martijn.vandestreek@exxellence.nl>
2022-02-10 11:41:08 -05:00
Martijn van de StreekandGitHub d9edd0d32f Make package "pip install"able (#15)
By specifying "py_modules" instead of "packages" in setup.py, the
single-file module is found and installed in site-packages correctly.
2020-10-22 10:39:37 -04:00