I need the unix timestamp - the timestamp i have. Then display the time between like on twitter.
If you have the difference called diff:
$seconds = intval($diff) % 60;
$minutes = intval($diff/60) % 60;
$hours = intval($diff/3600) % 24;
$days = intval($diff/(3600*24));
Is this what you want ?
Not sure what language you need it, but if it will end up in a web page, you may try timeago.
echo time_elapsed_string('@1367367755');
echo time_elapsed_string('@1367367755', true);
4 months ago
4 months, 2 weeks, 3 days, 1 hour, 49 minutes, 15 seconds ago
Link to the function.