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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file winfiletime-2.0.tar.gz.

File metadata

  • Download URL: winfiletime-2.0.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.0a2 CPython/3.10.5 Linux/5.18.12-arch1-1

File hashes

Hashes for winfiletime-2.0.tar.gz
Algorithm Hash digest
SHA256 c7c0337ac9ca1af982f623433f93dcbdf5d950eebdf92cd822093311650978ba
MD5 4b34373ab994a2debea998528d8bd6ce
BLAKE2b-256 192065b00e6ca4bb8326b85141970f1ae3a215b4204b5eb2304de9a6caeb6cd0

See more details on using hashes here.

File details

Details for the file winfiletime-2.0-py3-none-any.whl.

File metadata

  • Download URL: winfiletime-2.0-py3-none-any.whl
  • Upload date:
  • Size: 5.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.0a2 CPython/3.10.5 Linux/5.18.12-arch1-1

File hashes

Hashes for winfiletime-2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4890c044c8adddebf08805f71ffad780d114219d928fb8d5c777062cbbe6fb40
MD5 ee9599a86cac7a889a1e5336f8bb6f26
BLAKE2b-256 69a88996e959355f7c6a3e81748a63a25ab01b3f5541599c7e2393f1f9dbbf5f

See more details on using hashes here.

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