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

Mntsup 171 #5

Merged
merged 3 commits into from
Nov 15, 2024
Merged

Mntsup 171 #5

merged 3 commits into from
Nov 15, 2024

Conversation

wimfabri
Copy link
Collaborator

No description provided.


def parse_http_timestamp(timestamp: str) -> datetime:
return parsedate(timestamp).astimezone()

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it correct for me to assume this method takes in the http-header string for the timestamp as: "Wed, 21 Oct 2015 07:28:00 GMT" and converts it into a datetime Object?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

indeed

Copy link

@codingBenVdS codingBenVdS left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is an added method to use the timestamp from the http headers.
Using this to check if content is up for deletion or not.

@wimfabri wimfabri merged commit 3431a2d into master Nov 15, 2024
2 checks passed
@wimfabri wimfabri deleted the MNTSUP-171 branch November 15, 2024 10:35
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

Successfully merging this pull request may close these issues.

2 participants