-
Notifications
You must be signed in to change notification settings - Fork 1
python time representation with arbitrary precision
License
GPL-3.0, GPL-3.0 licenses found
Licenses found
GPL-3.0
LICENSE
GPL-3.0
COPYING.txt
flyingfrog81/accuratetime
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
ACCURATE TIME ============= This module defines an AccurateTime object for storing arbitrary precision floating point posix time while keeping the same information as a standard datetime object, keeping consistency between the two INSTALLATION ============ You are free to clone the public git repo as:: $ git clone git://github.com/flyingfrog81/accuratetime.git $ cd accuratetime $ python setup.py install Or you can install using PyPI as:: $ pip install accuratetime USAGE ===== >>> import accuratetime >>> import time >>> t_zero = accuratetime.now() >>> time.sleep(3.5) >>> t_uno = accuratetime.now() >>> t_delta_datetime = t_uno.datetime - t_zero.datetime >>> t_zero.datetime += t_delta_datetime >>> t_zero.accurate_posix == t_uno.accurate_posix True >>> t_uno = accuratetime.now() >>> t_delta_posix = t_uno.accurate_posix - t_zero.accurate_posix >>> t_zero.accurate_posix += t_delta_posix >>> t_zero.datetime == t_uno.datetime True
About
python time representation with arbitrary precision
Resources
License
GPL-3.0, GPL-3.0 licenses found
Licenses found
GPL-3.0
LICENSE
GPL-3.0
COPYING.txt
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published