Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

workdays

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

workdays

Workday date utility functions to extend python's datetime

  • 1.4
  • PyPI
  • Socket score

Maintainers
1

Extend python datetime with excel-like workday addition/subtraction functionality:

NETWORKDAYS(start_date,end_date,holidays)

Returns the number of whole working days between start_date and
end_date (inclusive of both start_date and end_date). Working days
exclude weekends and any dates identified in holidays. Use NETWORKDAYS
to calculate employee benefits that accrue based on the number of
days worked during a specific term.

WORKDAY(start_date,days,[holidays])

Returns a number that represents a date that is the indicated number
of working days before or after a date (the starting date). Working
days exclude weekends and any dates identified as holidays. Use
WORKDAY to exclude weekends or holidays when you calculate invoice
due dates, expected delivery times, or the number of days of work
performed.

This module has similarities with the BusinessHours module - you may
want to check it out as well to see which one better fits your needs.

Keywords

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc