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

Strftime and mktime parameters don't have to be realistic... #591

Open
deignanfr opened this issue Nov 13, 2024 · 0 comments
Open

Strftime and mktime parameters don't have to be realistic... #591

deignanfr opened this issue Nov 13, 2024 · 0 comments

Comments

@deignanfr
Copy link

The "mday" parameter can be passed more than the number of days in a month. You can use this parameter to pass the "number of days since the start of the year". Strangely the "ydays" parameter doesn't do anything. You can also use strftime and mktime to calculate the date of "1 week ago". You can pass the current "epoch" timestamp in the "secs" parameter.
So this function is very flexible and robust.
Ciaran

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