Skip to content

Script for checking is month's XXth day a workday

License

Notifications You must be signed in to change notification settings

bloomikko/Workday

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Is it business day?

Script for checking is month's XXth day a workday.

The script takes current date, forms a whole business day calendar from the ongoing month and checks what is the fourth business day of the month. The desired number of day can be changed. Also handles holidays and the holiday calendar can be changed easily. Uses pandas and holidays libraries.

Features

  • Takes current date and compares it whether it is a XXth workday
  • Handles holidays, supports different regional holiday calendars
  • Useful for example for monthly business-critical automation scripts which always happen at certain time
  • Debug file for testing the script

Example

Assume today is 16th February 2023 - the script checks that current month's fourth business day is 6th February. As 16th February != 6th February, the script will not continue. Had today been 6th February, the script would have continued to execute the following commands.

About

Script for checking is month's XXth day a workday

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages