Skip to content

Add function to parse duration into seconds/milliseconds #27063

@yegle

Description

@yegle

Current Terraform Version

v0.13.5

Use-cases

Be able to specify duration like "3h" and have a utility function to convert to seconds or milliseconds.

Attempted Solutions

None

Proposal

Have duration_in_s() that convert a string representation of duration to seconds, and duration_in_ms() that convert a string representation of duration to milliseconds.

References

Related proposal:
#23429

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions