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

Uploaded Source

Built Distribution

opendate-0.1.12-py3-none-any.whl (16.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: opendate-0.1.12.tar.gz
  • Upload date:
  • Size: 16.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.11.9 Linux/6.8.0-1018-aws

File hashes

Hashes for opendate-0.1.12.tar.gz
Algorithm Hash digest
SHA256 bc2b537f725894c51d0fbb5224384d3deb0d2501b73525707cca41e0548cbfce
MD5 11c7e72f4d989725387e88df474cd1b1
BLAKE2b-256 8163a24c4f15c16500dfea34cb523ee0be9cc36a66425cc6129823d38c8ec2ea

See more details on using hashes here.

File details

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

File metadata

  • Download URL: opendate-0.1.12-py3-none-any.whl
  • Upload date:
  • Size: 16.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.11.9 Linux/6.8.0-1018-aws

File hashes

Hashes for opendate-0.1.12-py3-none-any.whl
Algorithm Hash digest
SHA256 3f6d37b9af520cc46f211e1fbf800946adefd57bb61f79f3bedb44779643edf7
MD5 0a403566ed4d13ea11fa3c3cbe752394
BLAKE2b-256 97339a6d17e971fdd02c8a4c3b786272546f50f86e455bb1b2911eb52553cafa

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