No project description provided
Project description
opendate
A wrapper around Pendulum with business (NYSE default, extendable) days/hours awareness.
Documentation pending, see tests for examples. Functionality is near-identical to Pendulum with the exception of a business modifier.
The main module is named date
rather than pendulum
Ex:
from date import Date, DateTime, Time, Interval
thedate = Date.today()
# add days
thedate.add(days=5)
thedate.business().add(days=5) # add 5 business day
# subtract days
thedate.subtract(days=5)
thedate.business().subtract(days=5) # subtract 5 business day
# start of month
thedate.start_of('month')
thedate.business().start_of('month') # end of month + N days until valid business day
# end of month
thedate.end_of('month')
thedate.business().end_of('month') # end of month - N days until valid business day
# ...
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
opendate-0.1.3.tar.gz
(15.3 kB
view details)
Built Distribution
opendate-0.1.3-py3-none-any.whl
(15.9 kB
view details)
File details
Details for the file opendate-0.1.3.tar.gz
.
File metadata
- Download URL: opendate-0.1.3.tar.gz
- Upload date:
- Size: 15.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.1 CPython/3.11.9 Linux/6.5.0-1022-aws
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 402603536a4727ffe57218ec6c06a560bffa06ec0c643e4e6b24af3dfc1c53a8 |
|
MD5 | 54f3543e4064e415b16192fe11e1420e |
|
BLAKE2b-256 | d8fc77b7ac2990c2309f947de83c9accac614c593c2377a7320f0642a1f1ae88 |
File details
Details for the file opendate-0.1.3-py3-none-any.whl
.
File metadata
- Download URL: opendate-0.1.3-py3-none-any.whl
- Upload date:
- Size: 15.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.1 CPython/3.11.9 Linux/6.5.0-1022-aws
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a268356bebf037ed6fc3d5900bd9ffee7bd6997ca78c8c4dfe3853b0d4616de7 |
|
MD5 | 11b85009b128405c992c68f824b64f7d |
|
BLAKE2b-256 | e00eae82cc79777f63b6a3191ecfe99d1c1f5642a4f2e110abb9782e7a6c1e6e |