| 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 |
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. |
|
,
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
|
|
,
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");
}
|
|
,
Mar 09, 2009
This function doesn't work for me. |
|
,
Apr 21, 2009
This issue has been recorded in the future roadmap: http://apiwiki.twitter.com/V2-Roadmap
Status: Moved
|
|
,
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
|
|
,
Oct 27, 2009
function GrabDate($date){
$j = explode(' ',$date);
return date('jS F Y',strtotime("$j[2] $j[1] $j[5]"));
}
this works fine
|
|
|
|