-
Notifications
You must be signed in to change notification settings - Fork 13
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
DayCounter to simplify looping dates. #26
Comments
if you do decide it's useful I can create pull request. |
You don't need to count days/months/years manually. var d:DateTime = '2019-12-31 00:00:00';
d += Day(1);
trace(d); // 2020-01-01 00:00:00 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I found it useful to create a simple DayCounter for my Covid19 project. I convert dates from a string in the csv data using your library and use my DayCounter to easily control days I render.
Perhaps something like day counter would be useful directly in datetime if not then left here incase useful for others, I expect you could create a date and then increment it by one day but this seemed clearer to work with a cut down format, perhaps you have similar feature already that I missed.
typical use
The text was updated successfully, but these errors were encountered: