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.3.0.tar.gz (8.8 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.3.0-py3-none-any.whl (8.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: python_time_functions-2.3.0.tar.gz
  • Upload date:
  • Size: 8.8 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.3.0.tar.gz
Algorithm Hash digest
SHA256 d8a89fd2a767a785980de211887ea48eeaf916538193022f6957a1511abfbb45
MD5 d0bb91ef97a8227d2366da29a2708f17
BLAKE2b-256 ad7a3b8feaf59cd0d6e01b6b12f4bcbbc46de374343c9cfe5b21976c1ba8cd58

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for python_time_functions-2.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 eb7edb333870eff509682af69b15ccd34d36f951369758768db0cdda641b0f76
MD5 9eeced82dcae743ecfcc92c35e395373
BLAKE2b-256 2daf8781090e98c108c41a215d48c29dd738f6846b7fa639a17cc9fde4951c0f

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