slicetime
Create time and datetime objects using slice notation.
Importing slicettime overrides the standard library datetime objects
so be sure to place it before actually using datetime. Otherwise, continue
to use date, datetime, and time as before. But when you need an instance
with a new time, use the digital clock notation to create it
[hh:mm:ss.mmmmmm]
When the time class is called with this new notation, a new time instance
is created and returned. When an existing either date or datetime is
called with this new notation, a new datetime instance is returned that
has the same date as the original instance, but the time specified in the
slice.
Example
import datetime
import slicetime
new_time = datetime.time[12:30:5.55]
assert new_time.hour == 12
assert new_time.minute == 30
assert new_time.second == 5
assert new_time.microsecond == 55
Metadata
Release files for slicetime 0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| slicetime-0.1.tar.gz | 3.3 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| slicetime-0.1-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details |
Total release size: 6.2 kB
Release files / slicetime-0.1.tar.gz
| Download URL | slicetime-0.1.tar.gz |
|---|---|
| Size | 3.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
84b83c0af473fa1f83e42d03a10b5a045e2be31d6a7d7c4a1cf92c3eabb7eba4
|
|
BLAKE2b-256 checksum How to use checksums |
606d30d7fffaf11dcb6b350cb0d06e20d82b421e73a12a3f3be8a883dc6e8440
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.27.1
|
Release files / slicetime-0.1-py2.py3-none-any.whl
| Download URL | slicetime-0.1-py2.py3-none-any.whl |
|---|---|
| Size | 2.9 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
e78ebcd065c24baf4838f288446cf56ed80a02f7b21d0804d683e5d6cf50d313
|
|
BLAKE2b-256 checksum How to use checksums |
95a6f227a761e19b60c4cb87be86001e9b4283cc00d35143fe503714ee9f248e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.27.1
|
Security for slicetime 0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.