
Security News
Meet the Socket Team at RSAC and BSidesSF 2025
Join Socket for exclusive networking events, rooftop gatherings, and one-on-one meetings during BSidesSF and RSA 2025 in San Francisco.
Há calendários de feriados do Brasil, Estados Unidos, Luxemburgo, Reino Unido e Argentina.
Considera o novo feriado dos EUA, Juneteenth. Consulte: https://pt.wikipedia.org/wiki/Juneteenth
Considera o novo feriado nacional de 20/Nov (Conciência Negra)
import datetime as dt
from workadays import workdays as wd
d1 = dt.date(2018, 1, 7)
d2 = dt.date(2020, 12, 31)
print(wd.days(d1, d2)) # 1089
d1 = dt.date(2018, 1, 7)
d2 = dt.date(2020, 12, 31)
print(wd.days360(d1, d2, method_eu=False)) # 1074
d1 = dt.date(2018, 1, 7)
d2 = dt.date(2020, 12, 31)
print(wd.days360(d1, d2, method_eu=True)) # 1073
d1 = dt.date(2018, 1, 7)
d2 = dt.date(2020, 12, 31)
print(wd.networkdays(d1, d2)) # 750
d1 = dt.date(2018, 1, 7)
d2 = dt.date(2020, 12, 31)
print(wd.networkdays(d1, d2, country=None)) # 779
d1 = dt.date(2018, 1, 7)
print(wd.workdays(d1, 252)) # 09/01/2019
d1 = dt.date(2018, 1, 7)
print(wd.workdays(d1, 252, country=None)) # 25/12/2018
d1 = dt.date(2018, 1, 7)
print('É feriado? ', wd.is_holiday(d1, country='BR', years=range(2020, 2021)))
d1 = dt.date(2018, 1, 7)
print('É final de semana? ', wd.is_weekend(d1))
d1 = dt.date(2018, 1, 7)
print('É dia útil? ', wd.is_workday(d1, country='BR', years=range(2020, 2021)))
print('É ano bissexto? ', wd.is_leap_year(2008))
for date in wd.get_holidays(country='BR', state='SP', years=range(2020, 2022)):
print(date)
for date in wd.get_holidays(country='England', years=range(2019, 2023)):
print(date)
FAQs
Calendário de dias úteis, dias corridos e dias 360 (30/360).
We found that workadays demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Join Socket for exclusive networking events, rooftop gatherings, and one-on-one meetings during BSidesSF and RSA 2025 in San Francisco.
Security News
Biome's v2.0 beta introduces custom plugins, domain-specific linting, and type-aware rules while laying groundwork for HTML support and embedded language features in 2025.
Security News
Next.js has patched a critical vulnerability (CVE-2025-29927) that allowed attackers to bypass middleware-based authorization checks in self-hosted apps.