Skip to main content

Python business datetimes

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


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.5.tar.gz (15.6 kB view details)

Uploaded Source

Built Distribution

opendate-0.1.5-py3-none-any.whl (16.2 kB view details)

Uploaded Python 3

File details

Details for the file opendate-0.1.5.tar.gz.

File metadata

  • Download URL: opendate-0.1.5.tar.gz
  • Upload date:
  • Size: 15.6 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

Hashes for opendate-0.1.5.tar.gz
Algorithm Hash digest
SHA256 15b8b156879dfcd756462dc63361da20fef591ffdd0645e156194d1b04d21069
MD5 afdc2faf0cbc57b0d464a797791c4edf
BLAKE2b-256 95e967b3eb9d3e23fd5bb48b823f8c78d2d058d033ef89217a4ba4586ed85bc4

See more details on using hashes here.

File details

Details for the file opendate-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: opendate-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 16.2 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

Hashes for opendate-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 bfe3bf9dda1a715eecc2aafa9f2b1b2158904e0164c05c432c884d663c9414d3
MD5 3bc1b2aefd8e63bfddfaf36053c430e9
BLAKE2b-256 4dc099de171fc4f49e238dbd4b94838a5641735322297e866947470b3c2fa479

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page