winglang / wing

A programming language for the cloud ☁️ A unified programming model, combining infrastructure and runtime code into one language ⚡
https://winglang.io
Other
5.06k stars 198 forks source link

Adding or subtracting duration from datetime should produce a new datetime #7149

Open Chriscbr opened 2 months ago

Chriscbr commented 2 months ago

Use Case

So you can write code like this:

let tenMin = 10m;
let now = datetime.utcNow();
let tenMinAgo = now - tenMin;

Proposed Solution

No response

Implementation Notes

No response

Component

SDK

Community Notes

Chriscbr commented 2 months ago

Related: