Starting out with an int variable unix time stamp (something like 1290341015), is there a way to get this into a nice human readable date string? The iPhone Mail app has the ideal display of date, where it shows the time or date in the context of the current time.
06:47 (a time today)
Yesterday (received yesterday)
Friday (received last Friday)
09/11/2010 (received more than a week ago)
Is there a way to approximate this?