2

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?

cannyboy
  • 24,180
  • 40
  • 146
  • 252

1 Answers1

4

This has been asked quite a few times before. The final link is the iphone specific one, the others a bit more general.

Community
  • 1
  • 1
Gazler
  • 83,029
  • 18
  • 279
  • 245