Misc Date Utilities
Provides date subtraction, parsing, and random timestamp generation. Source code on GitHub.
date_difference
For subtracting two dates from each other, provides class DateDifference that can store the difference between two dates, provides some overloaded functionality, and provides some static methods subtract_datetimes and subtract_datestrings to subtract datetimes and formatted date strings, respectively.
simple_parse
A simple parser that is used in the interpretation of date strings, provides parse_raw_date_string to get a datetime from a string formatted as "%Y-%m-%d " (note the trailing space), or as "%Y-%m-%d %H:%M".
random_timestamps
Functionality for getting a random time within a specified range, provides generate_random_timestamp to generates a random timestamp in the range [00:00:00 - hours:minutes:seconds).
tests
Unit tests are provided for subtract_datestrings.
Metadata
Release files for misc-date-utilities 1.0.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| misc-date-utilities-1.0.7.tar.gz | 5.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| misc_date_utilities-1.0.7-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 24.7 kB
Release files / misc-date-utilities-1.0.7.tar.gz
| Download URL | misc-date-utilities-1.0.7.tar.gz |
|---|---|
| Size | 5.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cc293580d438c228aebdd0c0e3da4211ef38fd80a3c6a03e163437281aa3e52f
|
|
BLAKE2b-256 checksum How to use checksums |
6426fb2f1bc7a5ec6a5ccbc18093913bdd58d503287af35d581facbe033e40f7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.40.2 CPython/3.7.1
|
Release files / misc_date_utilities-1.0.7-py3-none-any.whl
| Download URL | misc_date_utilities-1.0.7-py3-none-any.whl |
|---|---|
| Size | 19.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
26f6c000744d45a0a25c4298d9580e1c7edd33bcec448ddd1915354b09e8fc45
|
|
BLAKE2b-256 checksum How to use checksums |
9373d085b4824bd4bc24c7773024a1e3e6814c5f45b9321733452dba0e1b99c2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.40.2 CPython/3.7.1
|