Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~3K People Reached
Favorite Forums
Favorite Tags
Member Avatar for Opsive

Hello, I am writing a little script that needs to get the timezone from an rss feed, and I am using [URL="http://www.feedparser.org/"]Feed Parser[/URL] to parse the rss feeds. The way that I am converting the date into Unix Epoch time is: [CODE] feedDate = feed['feed'].get('updated_parsed') or feed.entries[0].get('updated_parsed') feedDate = mktime(datetime(*feedDate[0:6]).timetuple())[/CODE] …

Member Avatar for Gribouillis
0
874
Member Avatar for Opsive

How do you convert a UTC tm structure to a UTC time_t structure? mktime would work except it converts the time back to local time. Here is what I have so far: [code] time_t t = time(NULL); tm *ptm = gmtime(&t); [/code] Thanks, Justin

Member Avatar for Radical Edward
0
2K