views:

6

answers:

1

I fetched the tweets from twitter api using yahoo pipes. Now, twitter gives the time in this format "Thu May 27 19:56:21 +0000 2010". I want to know how many minutes have past since "Thu May 27 19:56:21 +0000 2010". How, can i format "Thu May 27 19:56:21 +0000 2010" in order to get the minutes past?? in other words, i want to subract "now" and "Thu May 27 19:56:21 +0000 2010". Then convert the result into minutes.

Please help me...

+1  A: 

$tweet_time = strtotime("Thu May 27 19:56:21 +0000 2010");
$minutes_since = (time() - $tweet_time) * 60;

Calvin L
how am i suppose to use this yahoo pipes?? in Data formatter module or data builder module?? :(Anyways, thanx a lot
Nok Imchen
Whoops, sorry. You had it tagged with PHP so I assumed you were coding with PHP. Not sure how Pipes works.
Calvin L
fine....its okay :) Sorry to u too 'cus i tagged PHP in the "question tagged". Actually, yahoo pipes and php seems to have some common keywrds :)
Nok Imchen