You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am guessing this would raise an error if some feed returns an incorrect format and also I am not sure if this works when an extra leapsecond gets added
Different feed types and versions use wildly different date formats. Universal Feed Parser will attempt to auto-detect the date format used in any date element, and parse it into a standard Python 9-tuple in UTC
So I believe to create a timezone aware datetime object, you would do something like:
I think this question belongs here and not on stackoverflow because as the library author you would be able to answer this best
Issues I referenced before asking
#212
#51
Problem
How to reproduce this problem
Both insert statements above will fail
What have I found so far?
I found 3 methods but they seem to have a limitation each
Method 1
Convert it with strptime
I could do this
I am guessing this would raise an error if some feed returns an incorrect format and also I am not sure if this works when an extra leapsecond gets added
Method 2
This seems to completely lose out the timezone information or am I wrong about it? What happens here if there is a DST
Method 3
Requires a third party library called dateutil and shown below
https://stackoverflow.com/a/18726020/5371505
Question
Thank you for your time
The text was updated successfully, but these errors were encountered: