Skip to main content

Get the number of seconds since the Unix epoch for a given datetime.

Project description

https://travis-ci.org/mverteuil/gtfe.svg?branch=master

installation

pip install gtfe

usage

didactic example:

>>> import time, datetime, gtfe
>>> time.time(), gtfe.get_epoch_for_datetime(datetime.datetime.now())
(1434054301.937659, 1434054301.0)

testing

  • Clone the repository

  • python setup.py test

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

gtfe-1.2.1.tar.gz (2.1 kB view details)

Uploaded Source

File details

Details for the file gtfe-1.2.1.tar.gz.

File metadata

  • Download URL: gtfe-1.2.1.tar.gz
  • Upload date:
  • Size: 2.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for gtfe-1.2.1.tar.gz
Algorithm Hash digest
SHA256 2a76115372d610056e9104922f67da0a49d0174f65eeffc5372bc8a049feef4e
MD5 f49804cde9d1f095b948f48af2d84719
BLAKE2b-256 23407b62d3026e13b7306a5dc3082ab40727ba5e19016f935738028c33f6a6e4

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