Add duration utils by RobertRuf · Pull Request #3700 · stackitcloud/stackit-sdk-go
Conversation
Description
Duration was added to the core utils package and includes utilities for:
- Duration parsing and conversion with flexible unit support
- Time-based calculations including calendar-aware month handling
- Configurable validation with minimum/maximum boundaries
Checklist
- No generated code was adjusted manually (check comments in file header)
- Changelogs
- VERSION file(s) of the service(s) were adjusted
- Code format was applied:
make fmt - Unit tests got implemented or updated
- Unit tests are passing:
make test(will be checked by CI) - No linter issues:
make lint(will be checked by CI)
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for contribution this. Looks good!
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your contribution! It's really well documented and tested 😃
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters