A collection of Workingdays date utilities/helper functions.
Project description
workingdays Package:
python package of date functions/utilities centered around workday calculations.
dateCleanup
All of the "workingday" functions first pass through the "dateCleanup" utility before executing. The dateCleanup converts a string to datetime (y, m, d, h, M, s). It can convert alpha numeric, German date formats, timestamps with seperators (":"" or "-"), timestamps without spaces between date and time ('YYYY-MM-DDhh:mm:ss' to 'YYYY-MM-DD hh:mm:ss' or 'YYYY:MM:DDhh:mm:ss' to 'YYYY-MM-DD hh:mm:ss'), or datetime with no seperators.
The "datevalue" is expected to be Type string unless epoch=True, Then datevalue expected to be Type Int.
workday
Returns a string ("%Y%m%d") of the workingday based off the offset. Optionial Holidays can be passed.
workdayStart
Returns a string ("%Y%m%d") of the workingstart based off the offset. Optionial Holidays can be passed.
compareWorkingdays
Returns the days (Int) between two working dates. Optionial Holidays can be passed.
lastWorkdayofMonth
Returns a string ("%Y%m%d") of the last workingday of the month. . Optionial Holidays can be passed.
lastWorkdayofQtr
Returns a string ("%Y%m%d") of the lastWorkdayofQtr. Optionial Holidays can be passed. Default qtrs are based off "Calendar Years", but Optional kwarg can change the Qtr "Months" (Can be a list or dict).
example:
quarters = {"Q1": ["Nov", "Dec", "Jan"],
"Q2": ["Feb", "Mar", "Apr"],
"Q3": ["May", "Jun", "Jul"],
"Q4": ["Aug", "Sep", "Oct"]}
lastWorkdayofQtr('20200213', key=quarters)
Results
'20200430'
lastDayofMonth
Returns a string ("%Y%m%d") of the lastDayofMonth.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file workingdays-20.10.3.tar.gz.
File metadata
- Download URL: workingdays-20.10.3.tar.gz
- Upload date:
- Size: 8.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
02e173542c5d232d6137cd1ff254c914bdba4c2ea7ba175479068a9cd7508290
|
|
| MD5 |
20fe4dba1e8b75367d46050e2f699dda
|
|
| BLAKE2b-256 |
63635f006165fcc8f90c989a60605ae08b170bb985f46a4406d4cec784700688
|
File details
Details for the file workingdays-20.10.3-py3.7.egg.
File metadata
- Download URL: workingdays-20.10.3-py3.7.egg
- Upload date:
- Size: 17.3 kB
- Tags: Egg
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
398817e712cddff875d81c7265f6743665789baa1df5927703ac4b8658aa52d6
|
|
| MD5 |
49f03ee21be71294fba78e79d1a0f629
|
|
| BLAKE2b-256 |
f27a4e2cc80f2085bb2ce0ae7b4b7118e99eb3fcc4f05ae921e23c11ac9717de
|
File details
Details for the file workingdays-20.10.3-py3-none-any.whl.
File metadata
- Download URL: workingdays-20.10.3-py3-none-any.whl
- Upload date:
- Size: 22.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9e2682eb44362527bea3d55e7d57549bae2f1d69b379ec3dc04b5b2995b42221
|
|
| MD5 |
a225ebfd06553565bc61ead7bd5ec6f7
|
|
| BLAKE2b-256 |
12bc1e23fef10c6fc010972feafbbee83f05d401af06b325a5fc5c007aa0e81a
|