Skip to main content

Common Python functions for time handling

Project description

Readme

Common Python functions for time handling

from datetime import datetime, timezone

import time_functions.time_functions as time_functions
# OR 
from time_functions.time_functions import get_timestamp_unix_millis

timestamp = datetime.now(timezone.utc)
unix_millis = get_timestamp_unix_millis(timestamp)  # create unix timestamp from obj above

local dev

pip install -r requirements.txt

test

pytest

other

pip3 freeze > requirements.txt

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

python_time_functions-2.4.0.tar.gz (8.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

python_time_functions-2.4.0-py3-none-any.whl (8.5 kB view details)

Uploaded Python 3

File details

Details for the file python_time_functions-2.4.0.tar.gz.

File metadata

  • Download URL: python_time_functions-2.4.0.tar.gz
  • Upload date:
  • Size: 8.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.11

File hashes

Hashes for python_time_functions-2.4.0.tar.gz
Algorithm Hash digest
SHA256 2c2210c1526c39d00055f4ad762cd626c7ed873086130e7d21ec97db3065e1c0
MD5 fb82d149e6f057a99beb6a8836cb2986
BLAKE2b-256 d3360ce8228784782b19c18f4ebcb821e10c8eef6cdce3c55b333d7635d282e9

See more details on using hashes here.

File details

Details for the file python_time_functions-2.4.0-py3-none-any.whl.

File metadata

File hashes

Hashes for python_time_functions-2.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ecec0926a1d7cf4683547662e576f870d6269ed9002c7ff04dce12471a286e93
MD5 dba7eb5bdc14f8b9a8101f6adb2639f5
BLAKE2b-256 3f1cd58f4d3e0f4c4dae4f0ec903428e4444d97ea0d789996c6d006cc69192fa

See more details on using hashes here.

Supported by

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