Skip to content

Time interval type #4

@Keats

Description

@Keats

Often in configuration you want to say some duration like trial_duration = 14d.
This is a bit niche and hard to guess what would be the end type in the AST, I would say the number of milliseconds?

So in the AST the value of trial_duration would be 1000 * 60 * 60 * 24 * 14.
The main question is how to represent months since they have different number of days.

Ideally the AST output would be a timedelta object but not all languages have such things

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestquestionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions