Add duration utils by RobertRuf · Pull Request #3700 · stackitcloud/stackit-sdk-go

Conversation

@RobertRuf

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
    • Changelog in the root directory was adjusted (see here)
    • Changelog(s) of the service(s) were adjusted (see e.g. here)
  • 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)

Fyusel

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!

Fyusel

marceljk

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 😃