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

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

Open
Chriscbr opened this issue Sep 20, 2024 · 1 comment
Open
Labels
✨ enhancement New feature or request 🎨 sdk SDK

Comments

@Chriscbr
Copy link
Contributor

Chriscbr commented Sep 20, 2024

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

  • 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.
  • If this issue is labeled needs-discussion, it means the spec has not been finalized yet. Please reach out on the #dev channel in the Wing Discord.
@Chriscbr Chriscbr added ✨ enhancement New feature or request 🎨 sdk SDK labels Sep 20, 2024
@Chriscbr
Copy link
Contributor Author

@Chriscbr Chriscbr changed the title Subtracting duration from datetime should produce a new datetime Adding or subtracting duration from datetime should produce a new datetime Sep 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨ enhancement New feature or request 🎨 sdk SDK
Projects
Status: 🆕 New - not properly defined
Development

No branches or pull requests

1 participant