Skip to main content

a library for advanced and accurate timestamping and time differences

Project description

time_diffz-high-resolution-logo-transparent

timediffz/Time_diffz a library for timestamps and differences between dates

NOTE: timediffz ONLY work in almost any operating system(*1) which can support python 3.10 and above

*1: timediffz Tested on Arch Linux (Python 3.10+). The library is platform-independent and expected to work on Windows and macOS, but those environments are not yet officially tested.

timediffz is a library to make timestamps and calculating the differences between dates, uses exact rational arithmetic (fractions) instead of floating-point numbers, avoiding precision loss in date difference calculations. and nearly no for/while loops at all to provide fast performance literally you would need less than 100 microseconds in somecases to get the amount of months between the year 2025 and the end of the universe(year one googol), and it supports relativity for objects near earth like satellites,iss,etc... and it uses fractions based numbers to keep the numbers exact no floating point precision loss, and it has been made for scientists and systems as the most accurate system for its own job possible, note: in case of tropical year because of uncontrolled amount of parameters to count it to an unreliable level the J2000 is used but it's unreliable for extremely far dates but you can if you want to use new or other tropical dates via custom year parameter

THIS LIBRARY HAS TWO MODES THE TB1 MODE OR NORMAL ONE WHICH USES STANDARD LIBRARIES AND REQUESTS ONLY, BUT EVEN THOUGH IT'S FAST BUT YOU CAN USE THE SECOND MODE THAT IS EVEN FASTER WHICH IS THE TB2 BUT IT NEEDS ALL TB1'S REQUIREMENTS PLUS SETUPTOOLS AND CYTHON AND INSTALLING GMP ON YOUR COMPUTER AND BUILDING THE CYTHON SETUP FILE WITH THIS COMMAND:

cd (full path of folder where setupfractionals.py is in, found in the library files) & python setupfractionals.py build_ext --inplace

or the same but with python as python3:

cd (full path of folder where setupfractionals.py is in, found in the library files) & python3 setupfractionals.py build_ext --inplace

the first mode functions starts with prefix: p*, while second mode ones start with prefix: c*, then after the first prefix the second prefix is the function type if it was for timestamping it would be (p/c t*) or time diff. mode which would be (p/c d).

Install

to install use the following command(note installing the library in this way would install library requirements both main and optional):

pip install Timediffz

Contribute

if you have discovered a bug, or you want to change something just open a new issue at Issues

Contact

you can contact us using this email ,and you can be a part of our community by joining our discord server

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

timediffz-1.0.9.tar.gz (34.7 kB view details)

Uploaded Source

Built Distribution

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

timediffz-1.0.9-py3-none-any.whl (9.1 kB view details)

Uploaded Python 3

File details

Details for the file timediffz-1.0.9.tar.gz.

File metadata

  • Download URL: timediffz-1.0.9.tar.gz
  • Upload date:
  • Size: 34.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for timediffz-1.0.9.tar.gz
Algorithm Hash digest
SHA256 e3c5b64aa5325358aa0966ee7e09403c1b77b96417322014ff2d65e76a99115a
MD5 7e175cf284579bb43a82bf61808cfa84
BLAKE2b-256 21da85b4258761c73d8824078fdb426ce72f257bddd967551fbe65c8483312fe

See more details on using hashes here.

File details

Details for the file timediffz-1.0.9-py3-none-any.whl.

File metadata

  • Download URL: timediffz-1.0.9-py3-none-any.whl
  • Upload date:
  • Size: 9.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for timediffz-1.0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 f94cdbf9bd6702b3ddaaee21f1b8183d2241691b17e201535c1a34a7f68e4d63
MD5 16efe099c855b12de111fb3eb6c7eb02
BLAKE2b-256 478769a7f8aebbbe6ab8311be05b40670ee900e13909d1e73363bc1b1d396cfc

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