Skip to content

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

@deignanfr

Description

@deignanfr

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions