random_timestamp
A Random Timestamp Generator
Installation
Dependences
* This app only
Installation
*Installation with pip (recommended)*
*Pip will download and install the package and take care of all the dependences.
If you havn't pip on your system then install setuptools first after that run "easy_install pip".
After that you can use pip in your terminal window.*
* Use the stable release (recommended)::
pip install random_timestamp
* With pip you can also uninstall::
pip uninstall random_timestamp
Usage
The function random_timestamp takes four optional arguments:
random_timestamp(year=1900, month=1, day=1, part='DATE/TIME')
If year and month and day are not inputed, the timestamp will be randomly generated between 1900 and today's date (datetime.now().date())).
If a later date after today is inputed, the output date will be today's date as well. The optional part parameter is to select only the date or time portion of the timestamp to output.
>>> from random_timestamp import random_timestamp
>>> random_timestamp()
datetime.datetime(1986, 5, 31, 2, 50, 5)
>>> random_timestamp(2020)
datetime.datetime(2020, 2, 11, 12, 4, 51)
>>> random_timestamp(month=1)
datetime.datetime(1914, 1, 15, 22, 3, 58)
>>> random_timestamp(2020, 4, 16, 'DATE')
datetime.date(2020, 4, 16)
>>> random_timestamp(part='TIME')
datetime.time(10, 59, 6)
License
This project is released under GNU GENERAL PUBLIC LICENSE V3.
Metadata
Release files for random-timestamp 1.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 | Actions |
|---|---|---|---|---|
| random_timestamp-1.1.tar.gz | 2.9 kB | Without provenance | Details for random_timestamp-1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| random_timestamp-1.1-py3-none-any.whl | Python 3 | none | any | Details for random_timestamp-1.1-py3-none-any.whl |
Total release size: 18.8 kB
Release files / random_timestamp-1.1.tar.gz
| Download URL | random_timestamp-1.1.tar.gz |
|---|---|
| Size | 2.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a5b789aef967e0fdeb7cc45c5cdb7364f591cec6b3738aa3921a2dab707f8285
|
|
BLAKE2b-256 checksum How to use checksums |
3d900aaad7e354f6f093355cc435ae76086c25f22823bf690ae0a87c99320750
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3
|
Release files / random_timestamp-1.1-py3-none-any.whl
| Download URL | random_timestamp-1.1-py3-none-any.whl |
|---|---|
| Size | 15.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7f72965726da14927b7037dec00bcd29fc7506cb61ae617f08ce4115923f0f2b
|
|
BLAKE2b-256 checksum How to use checksums |
92291d63f770b81de7e2c2bdd0d3852bef16f78219ecfce2eb306bbbc8913168
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3
|
Security for random-timestamp 1.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.