Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DM-44444: Add parse_timedelta function to parse durations #247

Merged
merged 2 commits into from
May 22, 2024
Merged

Commits on May 21, 2024

  1. Add parse_timedelta function to parse durations

    Add a new safir.datetime.parse_timedelta function that parses a
    human-friendly syntax for time durations into a datetime.timedelta.
    The syntax was taken from semaphore and is now also used in the
    configuration parser for Gafaelfawr.
    rra committed May 21, 2024
    Configuration menu
    Copy the full SHA
    93e7f0e View commit details
    Browse the repository at this point in the history

Commits on May 22, 2024

  1. Add the model to parse_timedelta documentation

    Rather than only showing the bare field_validator function, put it
    in a sample model for a better example.
    rra committed May 22, 2024
    Configuration menu
    Copy the full SHA
    9aa60c4 View commit details
    Browse the repository at this point in the history