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.02k stars 197 forks source link

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

Open Chriscbr opened 4 weeks ago

Chriscbr commented 4 weeks 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 4 weeks ago

Related: