ElektoCalendarPosh
0.1.0
Business day (workday) arithmetic for PowerShell, driven by plain-text holiday calendars: next and previous workdays, adding workdays, counting workdays between dates, month boundaries and business day conventions. Zero dependencies, cross-platform.
Minimum PowerShell version
7.2
Installation Options
Owners
Copyright
(c) JP Negri. All rights reserved.
Package Details
Author(s)
- JP Negri
Tags
Calendar BusinessDays BusinessDay Workday Workdays Holidays DateTime Finance Scheduling Automation Lightweight Cross-Platform Windows Linux macOS
Functions
Add-CalendarDay Add-Workday Get-FirstWorkdayInMonth Get-LastWorkdayInMonth Get-NextOrSameWorkday Get-NextWorkday Get-NthWorkdayInMonth Get-PreviousOrSameWorkday Get-PreviousWorkday Get-Workday Get-WorkdayCalendar Get-WorkdayDelta New-WorkdayCalendar Set-WorkdayCalendar Test-NextDayIsWorkday Test-PreviousDayIsWorkday Test-Workday
PSEditions
Dependencies
This module has no dependencies.
Release Notes
## 0.1.0
- Calendars from plain-text holiday files (ISO dates, optional non-working weekdays or NoWeekend), from lists of dates, or Saturday and Sunday only by default
- A calendar covers from its first holiday to its last
- Default calendar from Set-WorkdayCalendar or the WORKDAY_CALENDAR environment variable
- Joint calendars: a day is a workday only if it is a workday in all of them
- Test-Workday, Test-NextDayIsWorkday, Test-PreviousDayIsWorkday
- Get-NextWorkday, Get-NextOrSameWorkday, Get-PreviousWorkday, Get-PreviousOrSameWorkday
- Add-Workday, Add-CalendarDay (with Following, Preceding and Modified conventions), Get-WorkdayDelta
- Get-FirstWorkdayInMonth, Get-LastWorkdayInMonth, Get-NthWorkdayInMonth, Get-Workday
- An error about a date (outside the calendar, a month without workdays) stops the command by default and follows -ErrorAction when it is given; every error has a stable id
- Holiday files are parsed once, and again only when their content changes
FileList
- ElektoCalendarPosh.nuspec
- LICENSE
- ElektoCalendarPosh.Format.ps1xml
- Examples\br-national.txt
- ElektoCalendarPosh.psd1
- ElektoCalendarPosh.psm1
- README.md
Version History
| Version | Downloads | Last updated |
|---|---|---|
| 0.1.1 | 7 | 10/14/2026 |
| 0.1.0 (current version) | 3 | 10/14/2026 |