Open asterkin opened 4 months ago
I ran into friction with this as well -- it would be great to have more operations adding, subtracting, and comparing dates and durations where appropriate. See also these issues (https://github.com/winglang/wing/issues/6297) and (https://github.com/winglang/wing/issues/6298).
An example would be "I would like to obtain a datetime value representing one week from now".
Formatters for converting datetime
to strings would also be helpful
Hi,
This issue hasn't seen activity in 90 days. Therefore, we are marking this issue as stale for now. It will be closed after 7 days. Feel free to re-open this issue when there's an update or relevant information to be added. Thanks!
Use Case
Proposed Solution
You may find a sample implementation here: https://github.com/asterkin/endor.w/tree/main/datetimex
Implementation Notes
Some conversions from JavaScript Date to Wing DateTime are performed via ISO string which is inefficient.
Component
SDK
Community Notes