No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
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] … |
|
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 |