Is there some functionality in Cocoa to display time intervals in natural language?

后端 未结 4 595
轻奢々
轻奢々 2021-01-15 16:53

What I am searching for is a Cocoa (or third party) class that can display time intervals in natural language, e.g.:

  • 10 seconds ago
  • 1 hour ago
4条回答
  •  失恋的感觉
    2021-01-15 17:44

    Your question for Cocoa is the same as this question for Cocoa Touch, and the answer to that one will work for you as well, because it uses Foundation, which is in both Cocoa and Cocoa Touch.

提交回复
热议问题