Skip to content

[devkit/utilities] Implement time window parser #378

Description

@Tinna23

Parse human-readable time window strings into Duration.

Supported formats: 1h, 6h, 24h, 7d, 30d

pub fn parse_window(s: &str) -> Result<Duration, ParseError>

Files to touch:

  • packages/devkit/src/utilities/time.rs

Metadata

Metadata

Assignees

No one assigned

    Labels

    devkitScoped to packages/devkitgood first issueGood for newcomersutilitiesShared helpers and converters

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions