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.
Chriscbr commented
Shorter durations like milliseconds would also be handy
marciocadev commented
What is the syntax for months? Currently, m
represents minutes.
upper M, like 1M
meaning one month ?
eladb commented
Mmm... Good point. Maybe `mo`?
…On Mon, Jun 12, 2023 at 1:18 AM Marcio Cruz de Almeida < ***@***.***> wrote:
@eladb <https://github.com/eladb>
What is the syntax for months? Currently, m represents minutes.
—
Reply to this email directly, view it on GitHub
<#2243 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAESGDBZDRUKFBP7AI5KGLTXKY73XANCNFSM6AAAAAAXJKNTLA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>