My favorites | Sign in
Project Logo
       
New issue | Search
for
| Advanced search | Search tips
Issue 306: Include Unix Timestamp with Twitter and Search API results
12 people starred this issue and may be notified of changes. Back to list
Status:  Invalid
Owner:  ----
Type-Enhancement
Priority-Medium
Milestone-V2


Sign in to add a comment
 
Reported by jazzychad, Feb 21, 2009
It would be handy to have a unix-style timestamp of an update passed back 
with the results along with the "created_at" field. "created_at" is a 
useful string representation of the timestamp, but not all languages have 
strong date parsers, whereas (pretty much) all languages can understand a 
unix timestamp and do further manipulation from there.
Comment 1 by m...@twitter.com, Feb 23, 2009
Triage: Updating type and milestone. Set to API V2 since it's an incompatible format
change.
Labels: -Type-Defect Type-Enhancement Milestone-V2
Comment 2 by fermisoft, Feb 23, 2009
Just in case, if you need to parse the created_at date string, use this (PHP) 

//converts Sat, 21 Feb 2009 19:11:42 +0000 to a timestamp 
function from_apachedate($date) 
{ 
        list($D, $d, $M, $y, $h, $m, $s, $z) = sscanf($date, "%3s, %2d %3s %4d %2d:%2d:%2d %5s"); 
        return strtotime("$d $M $y $h:$m:$s $z"); 
} 
Comment 3 by marcrosoft, Mar 09, 2009
This function doesn't work for me.
Comment 4 by igudo1, Apr 21, 2009
This issue has been recorded in the future roadmap: http://apiwiki.twitter.com/V2-Roadmap
Status: Moved
Comment 5 by alexfpayne, Apr 21, 2009
Marking "Invalid" so these issues don't clutter the main view of issues. All are tracked on http://apiwiki.twitter.com/V2-Roadmap
Status: Invalid
Comment 6 by aateamcomms, Oct 27, 2009
	function GrabDate($date){ 
		$j = explode(' ',$date);
		return date('jS F Y',strtotime("$j[2] $j[1] $j[5]")); 
	} 

this works fine
Sign in to add a comment

Hosted by Google Code