winglang/wing

Add support for longer durations in `std.Duration` and duration literals

Closed this issue · 3 comments

eladb commented

Feature Spec

It is now possible to specify duration in days, months and years:

let five_days = 5d;
let two_months = 2m;
let ten_years = 10y;

Use Cases

Obvious

Implementation Notes

No response

Component

Language Design, SDK

Community Notes

  • Please vote by adding a 👍 reaction to the issue to help us prioritize.
  • If you are interested to work on this issue, please leave a comment.

Shorter durations like milliseconds would also be handy

@eladb

What is the syntax for months? Currently, m represents minutes.

upper M, like 1M meaning one month ?

eladb commented