time2str: php function to convert time/date/unix time to relative time string