Unix timestamp made easy.
Project description
unix-time
Unix timestamp made easy.
from unix_time import *
now = ts_now() # 1568122835, 2019-09-10T13:40:35
today = ts_today() # 1568073600, 2019-09-10T00:00:00
yesterday = ts_yesterday() # 1567987200, 2019-09-09T00:00:00
some_time = 1111111111 # 1111111111, 2005-03-18T01:58:31
some_date = ts_date(some_time) # 1111104000, 2005-03-18T00:00:00
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
unix-time-1.0.0.tar.gz
(1.2 kB
view hashes)