Skip to main content

a library for advanced and accurate timestamping and time differences

Project description

time_diffz-high-resolution-logo-transparent

timediffz 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 wasn't tested on any operating system expect arch linux but mostly it can work on windows being that the library does not have any platform specific needs

timediffz is an EXTREMELY ACCURATE timestamper and in calculating the differences between dates, IT DOES NOT USE ANY APPROXIMATIONS CALCULATES EVERYTHING EXACTLY AS IT IS 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 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, and doc-strings for non differentiational operations are not made yet, plus future options like option to add a small amount to days like part of a second so it can help to correct the issue of gregorian shifting slowly a whole day each 3000 years or so.

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:

python (full setupfractionals.py file path, found in the library files) build_ext --inplace

or the same but with python as python3:

python3 (full setupfractionals.py file path, found in the library files) 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), REAL DOCUMENTATION WITH COME SOON!!

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.0.3.tar.gz (388.1 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.0.3-py3-none-any.whl (372.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for timediffz-1.0.0.3.tar.gz
Algorithm Hash digest
SHA256 676aa134aa4c496483221e6fb1e1ebe9bec6c07a240cdcbaf94d71c7c0dc2a67
MD5 c287473f8c228140ff3aa4c54886411b
BLAKE2b-256 adca95180663dc2bb247fbcbc87fe6e8c593f879bf650f9b6bb780f64c3f5a44

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for timediffz-1.0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 4c0f2474543f5911111492445ff349aa05119833aa3235c24b95dc19095197fd
MD5 c13b067b0c8a977091334ac4d7f1d466
BLAKE2b-256 6a72b9d87f8f139c8e1a9dc6b03df1d3e1b359e3345ffb51f4b5adc40f888f04

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