Skip to main content

Time utils for Humans.

Project description

Requests: Python utils - Time
=========================

Get demand time from all kinds of original time format after delay without specified type.

Usage
---------------

def get_time(ts=None, delay=0, fmt=19)

Arguments: [original_time] [delay] [output_fmt:{0,6,8,10,16,17,19}]

output_fmt:
19: '%Y-%m-%d %H:%M:%S',
8: '%Y%m%d',
6: '%Y%m',
10: '%Y-%m-%d',
16: '%Y-%m-%d %H:%M',
17: '%Y%m%d-%H:%M:%S'


Input format(Any one of them)
------------

# 201809
# 20180910
# 2018-09-10
# 2018-09-10 18:00
# 20180910-18:00:00
# 2018-09-10 18:00:00
# 1536573600(int)
# 1536573600.00(float)

Return format(Any one of them)
-------------

# 201809
# 20180910
# 2018-09-10
# 2018-09-10 18:00
# 20180910-18:00:00
# 2018-09-10 18:00:00
# 1536573600(int)


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

zzzutils-0.1.7.tar.gz (2.2 kB view details)

Uploaded Source

Built Distribution

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

zzzutils-0.1.7-py2.py3-none-any.whl (8.4 kB view details)

Uploaded Python 2Python 3

File details

Details for the file zzzutils-0.1.7.tar.gz.

File metadata

  • Download URL: zzzutils-0.1.7.tar.gz
  • Upload date:
  • Size: 2.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.12.4 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/2.7.13

File hashes

Hashes for zzzutils-0.1.7.tar.gz
Algorithm Hash digest
SHA256 3fb69ad91a2802106f16fae608b3c09f2af33c426ccb2dba4e81649ecb8d2a14
MD5 22fce10ad9fbbd137a483d969ebbd73e
BLAKE2b-256 02275699df3bd763144a071cf1cc45aa9855a06dd98ad455623a35ffe69abd5b

See more details on using hashes here.

File details

Details for the file zzzutils-0.1.7-py2.py3-none-any.whl.

File metadata

  • Download URL: zzzutils-0.1.7-py2.py3-none-any.whl
  • Upload date:
  • Size: 8.4 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.12.4 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/2.7.13

File hashes

Hashes for zzzutils-0.1.7-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 999dea5bc3225c4d0ecbbaa1946ba65c324daac8deb9223a5f2c0d7242508a0b
MD5 f599d5c4c6ae0b1d284f786ab15e7a40
BLAKE2b-256 c916db614309a9103be1dc6a4d265fe93139cbbb45d7094c4541be417c5dd887

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