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().subtrat(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.1.tar.gz
(15.0 kB
view details)
Built Distribution
opendate-0.1.1-py3-none-any.whl
(15.8 kB
view details)
File details
Details for the file opendate-0.1.1.tar.gz
.
File metadata
- Download URL: opendate-0.1.1.tar.gz
- Upload date:
- Size: 15.0 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 | c9abf8f76849ddc81a68c38cd47d10e38d2afdf6ce5f3070065b864ee2107092 |
|
MD5 | c36c2bbcc296120976d8c24094722fc2 |
|
BLAKE2b-256 | 5c7294b1b1eed273adc1b3f464da9fee6e363b5c784f64bfeb3e1b3dea619341 |
File details
Details for the file opendate-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: opendate-0.1.1-py3-none-any.whl
- Upload date:
- Size: 15.8 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 | c9acea9ec88bdebcf987647543f5ed803dd10d93820021dfae7b34ee9e7cff31 |
|
MD5 | cd049f51099b54c7bd81f905f857064e |
|
BLAKE2b-256 | 81440c31727c3710322347429645d1d0fe4ec5577a943a25bfd5ee0cd09ec360 |