Skip to main content

Decimal Silicon Time: time since UNIX zero, in decimal.

Project description

Usage

pip install detime

>>> from detime import detime

>>> detime()
0051-02-21 00:62:18.46994

>>> d = detime(1970, 1, 1)
0000-01-01 00:00:0.00000

>>> d.date
datetime.datetime(1970, 1, 1, 0, 0)

>>> detime(2000, 1, 1).get_month_lengths()
[36, 37, 36, 37, 36, 37, 36, 37, 36, 38]

$ dtime
0051-02-21 00:33:19.38145

$ dtime -show
[2021-02-26 =] 0051-02-21 00:33:19.38145 [= 00:47:47]

(ctrl+c to stop)

Demo (1.8M) (MP4).

About

In childhood, I tried to simplify computation of time for myself, so I invented a decimal system for counting time.

1 year = 10 months 1 week = 10 days 1 day = 10 hours 1 hour = 100 minutes 1 minute = 100 seconds

=> 1 second = 0.864 standard SI seconds. => 1 month = 3~4 weeks.

Years start at 1970 Jan 1, midnight.

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

detime-1.0.2.tar.gz (2.8 kB view hashes)

Uploaded Source

Built Distribution

detime-1.0.2-py3-none-any.whl (3.1 kB view hashes)

Uploaded Python 3

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