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

Uploaded Source

Built Distribution

opendate-0.1.6-py3-none-any.whl (16.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: opendate-0.1.6.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-1023-aws

File hashes

Hashes for opendate-0.1.6.tar.gz
Algorithm Hash digest
SHA256 778497c5d3b181924dee3222d4e69738f07774e22447dc6c61047f4c34892180
MD5 cb9a0117526f2ec31b7860eb5f6421b2
BLAKE2b-256 5d4136b7b6edae56d91455402c2adfe9574f788f914907026aa91048ff935381

See more details on using hashes here.

File details

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

File metadata

  • Download URL: opendate-0.1.6-py3-none-any.whl
  • Upload date:
  • Size: 16.3 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.6-py3-none-any.whl
Algorithm Hash digest
SHA256 f2fa27823529f5e964406430fb5f8973e6631fe671f184be9e35541c49113fc5
MD5 1715d0d1e1891397e8484510d24dbfed
BLAKE2b-256 58fa9e75ca759ee59536d9391c9c1266cc05795dc21d07434be101d3231bf40c

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