Skip to main content

Win32 Filetime / Datetime conversion functions

Project description

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 winfiletime

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

# Convert a filetime to a datetime
winfiletime.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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

winfiletime-2.0.tar.gz (4.8 kB view hashes)

Uploaded Source

Built Distribution

winfiletime-2.0-py3-none-any.whl (5.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page