Timestamp manager
Project description
Timestamp
Install
In order to install, you can either use pypi with either
pip3 install timestamps
or
python3 -m pip install timestamps
Usage
The library has several types defined
Timestamp
Represents a timestamp with a 10^-7 precision (same as the time.time() of python 3) You can instanciate it in various ways, each time, you can provide a non-keyword value or a value with as keyword either _float, _hex or _datetime
# With a float
t = Timestamp(1.0)
t = Timestamp(_float=1.0)
# With a datetime
t = Timestamp(datetime.datetime.now())
t = Timestamp(_datetime=datetime.datetime.now())
# With an hex
t = Timestamp(_hex='f')
t = Timestamp('0xf0')
t = Timestamp('#FF')
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
timestamps-1.0.1.tar.gz
(2.1 kB
view hashes)
Built Distribution
Close
Hashes for timestamps-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bd604c65ebd957cfc27e895038984d9e375cbeafbf2ce969e5f9bc9a97482d1b |
|
MD5 | b3e898f8dbd07dae65401983a1cb63ab |
|
BLAKE2b-256 | beaf5b693f91bd9726e17f9f67a9de275db5f0c4dfe20f2da26a6711c8a965ef |