Skip to main content

Time Convert for Humans™

Project description

TimeConvert

TimeConvert is a simple time convert script(library) for Python, built for human beings.

Gitter

Installation

pip install TimeConvert

Usage

from TimeConvert import TimeConvert as tc

tc.utc_timestamp()

Comparison

Function Points TimeConvert Other
TimeStamp tc.local_timestamp(ms=True) time.time()
ISOFormat tc.local_isostring() datetime.datetime.now().isoformat()

Variable

# Default Asia/Shanghai & %Y-%m-%d %H:%M:%S
from TimeConvert import TIME_ZONE, TIME_FORMAT

# Deassign TIME_ZONE & TIME_FORMAT
tc.__init__(timezone='Asia/Shanghai', format='%Y-%m-%d %H:%M:%S')

Reference

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

TimeConvert-3.0.13.tar.gz (18.4 kB view details)

Uploaded Source

Built Distribution

TimeConvert-3.0.13-py2.py3-none-any.whl (19.5 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file TimeConvert-3.0.13.tar.gz.

File metadata

  • Download URL: TimeConvert-3.0.13.tar.gz
  • Upload date:
  • Size: 18.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.0.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.8.2

File hashes

Hashes for TimeConvert-3.0.13.tar.gz
Algorithm Hash digest
SHA256 1f4ca99a7e88afe6e19d2d7578078555288055e362f0d170a1e35a8dadf38f03
MD5 1a82f07c9e51270287e07191b96dbeb4
BLAKE2b-256 ae3e6daa9585a1fa17c25d854e4c6bd2ae53b2a075c081416e39d80ff29957ca

See more details on using hashes here.

File details

Details for the file TimeConvert-3.0.13-py2.py3-none-any.whl.

File metadata

  • Download URL: TimeConvert-3.0.13-py2.py3-none-any.whl
  • Upload date:
  • Size: 19.5 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.0.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.8.2

File hashes

Hashes for TimeConvert-3.0.13-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 9fa7f2eb43c17b8636171c98a8f599d9308b003395322f11cd4cdaba68cdc89a
MD5 a018fed899ea3ecdb7390c74d8113dee
BLAKE2b-256 4a1b17a8ec28c57b695ce910221a48dbe2b4ac145981f6e97c45d1edc441532d

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