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

Date calculation does not take daylight savings changes into account #22

Open
Qarj opened this issue Oct 30, 2017 · 0 comments
Open

Date calculation does not take daylight savings changes into account #22

Qarj opened this issue Oct 30, 2017 · 0 comments

Comments

@Qarj
Copy link
Owner

Qarj commented Oct 30, 2017

Calculating yesterday's date by subtracting 86400 seconds won't work when there are 25 or 23 hours in the day.

There is a solution here by Chas Owens that only uses core Perl modules:

https://stackoverflow.com/questions/3506475/how-do-i-get-yesterdays-date-using-localtime

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant