Workdays
workdays is a Rust library for computing work days and handling work
calendars, inspired by the WORKDAY function in Excel. It provides functionality
to define custom work weeks, add holidays, and compute dates based on a given
number of work days.
Features
- Compute end dates based on work days
- Calculate the number of work days between two dates
- Parse and handle work calendar configurations (YAML or JSON)
- Support for custom work days and holidays
- Flexible weekday parsing
Installation
Add workdays as a dependency in your Cargo.toml:
Usage
Here's a quick example:
use WorkCalendar;
use NaiveDate;
use FromStr;
License
This project is licensed under the MIT License - see the LICENSE file for details.
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
Acknowledgments
- Inspired by the WORKDAY function in Excel