Windows filetime <-> Python datetime conversion ⛺
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
tests
LICENSE
README.md
filetime.py
setup.cfg
setup.py

README.md

filetime.py

A Python module to convert datetime to/from a Win32 FILETIME structure.

Reference algorithm

Usage

Install from PyPI: pip install winfiletime

Example usage:

import datetime
import filetime

# Convert a datetime to a filetime
filetime.from_datetime(datetime.datetime(2009, 7, 25, 23, 0))
# 128930364000000000

# Convert a filetime to a datetime
to_datetime(128930364000000000)
# datetime.datetime(2009, 7, 25, 23, 0)

License

This project is hereby released in the Public Domain. See the LICENSE file for the full CC0 license text.