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

Uploaded Source

Built Distribution

opendate-0.1.7-py3-none-any.whl (16.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: opendate-0.1.7.tar.gz
  • Upload date:
  • Size: 15.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.1 CPython/3.11.9 Linux/6.5.0-1023-aws

File hashes

Hashes for opendate-0.1.7.tar.gz
Algorithm Hash digest
SHA256 6ff3570e62ad95b83c437e1ac914c8bf1cc38b404bd9f3ef7872739af582c136
MD5 1555e4eafbec668656cba339bf1b6de1
BLAKE2b-256 ed8b56d99e72c2dcfe512c92aca78ddd80b3c95c8cdab4f74180a290f7015963

See more details on using hashes here.

File details

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

File metadata

  • Download URL: opendate-0.1.7-py3-none-any.whl
  • Upload date:
  • Size: 16.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.1 CPython/3.11.9 Linux/6.5.0-1023-aws

File hashes

Hashes for opendate-0.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 a510889c4a4fdfd54ce6a24fb02af4cad65fddb7b1056faf2fbabe3476322f1a
MD5 c6af201b5d5aadd85a8f95fa64ca5f84
BLAKE2b-256 5c555ed32602e77d443e2705eeabcf2c331c4c673594a526929db8ef0b07ea74

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