-
Notifications
You must be signed in to change notification settings - Fork 147
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
Range of Temporal? #682
Comments
With the current Temporal API this would be achievable by: const start = new Temporal.Date(2020, 1, 1);
const end = new Temporal.Date(2020, 12, 31);
for (let date = start; !date.equals(end); date = date.plus({ days: 1 }))
console.log(date.toString()); It's more typing, but on the other hand the step of 1 day is more explicit. (What should |
Some kind of Edit: I just saw that this is being discussed in #205 |
This is not present in the revision of Temporal that's currently under review, but let's continue gathering information at js-temporal/proposal-temporal-v2#4. |
The text was updated successfully, but these errors were encountered: