Skip to main content

========== nthBday ==========

nthBday is a an open-source python package to find business/working days of a month.

Please Note: The holidays taken here are Indian holidays. In the next versions our countries holidays will be added too.

Installation

nthBday requires Python 3 and pandas to execute.

To install using pip, use

pip install nthBday

Downloads

Features

nthBday package contains different functions such as:

  • first_working_day: Returns the first working day of a month
  • second_working_day: Returns the second working day of a month
  • third_working_day: Returns the third working day of a month
  • fourth_working_day: Returns the fourth working day of a month
  • fifth_working_day: Returns the fifth working day of a month
  • nth_working_day: Returns the n-th working day of a month
  • last_working_day: Returns the last working day of a month
  • nth_last_working_day: Returns the n-th last working day of a month
  • last_sun: Returns the last sunday of a month
  • last_sat: Returns the last saturday of a month
  • last_fri: Returns the last friday of a month
  • last_thu: Returns the last thursday of a month
  • last_wed: Returns the last wednesday of a month
  • last_tue: Returns the last tuesday of a month
  • last_mon: Returns the last monday of a month
  • second_sat: Returns the second saturday of a month
  • fourth_sat: Returns the fourth saturday of a month

Usage

  • Import the library:
import nthBday as nb

Examples

import nthBday as nb
nb.first_working_day(2,2023)

returns,

datetime.date(2023, 2, 1)
import nthBday as nb
nb.nth_working_day(2,2023,17)

returns,

datetime.date(2023, 2, 23)
import nthBday as nb
nb.last_working_day(2,2023)

returns,

datetime.date(2023, 2, 28)
import nthBday as nb
nb.nth_last_working_day(2,2023,17)

returns,

datetime.date(2023, 2, 6)
import nthBday as nb
nb.last_thu(3,2023)

returns,

datetime.date(2023, 3, 30)
import nthBday as nb
nb.second_sat(3,2023)

returns,

datetime.date(2023, 3, 11)

License

MIT

Metadata

Release files for nthBday 0.2.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for nthBday 0.2.7
File Size Uploaded
nthBday-0.2.7.tar.gz 13.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for nthBday 0.2.7
File Interpreter ABI Platform
nthBday-0.2.7-py3-none-any.whl Python 3 none any Details

Total release size: 26.5 kB

Release files / nthBday-0.2.7.tar.gz

Download URL nthBday-0.2.7.tar.gz
Size 13.9 kB
Tags Source
SHA-256 checksum
How to use checksums
294e1d15c0beb452fe392a31a331f4bb41d32d9f81b5d5c55572f96280c9979c
BLAKE2b-256 checksum
How to use checksums
c701415a7604e147fdf8de721c013766577b61025e97a859a83af56650d01c09
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.16

Release files / nthBday-0.2.7-py3-none-any.whl

Download URL nthBday-0.2.7-py3-none-any.whl
Size 12.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a0a749c9c1706a4057a768295ef84dceacc51762cfc71835ac65a8b60f7620fd
BLAKE2b-256 checksum
How to use checksums
04c8fd2d32d0ff883024aa16cbb938fa5cd3e0b10a37679edf2097e63a8799eb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.16

Release history Release notifications | RSS feed

This release

0.2.7 This release

2 release files

0.2.6

2 release files

0.2.5

1 release file

0.2.4

1 release file

0.2.3

1 release file

0.1.1

1 release file

0.1.0

1 release file

0.0.7

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page