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

Time interval type #4

Open
Keats opened this issue Sep 20, 2018 · 0 comments
Open

Time interval type #4

Keats opened this issue Sep 20, 2018 · 0 comments
Labels
enhancement New feature or request question Further information is requested

Comments

@Keats
Copy link
Owner

Keats commented Sep 20, 2018

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

@Keats Keats added enhancement New feature or request question Further information is requested labels Sep 20, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant