naoty / Timepiece

Intuitive date handling in Swift
MIT License
2.63k stars 147 forks source link

time ago support #85

Closed Prince2k3 closed 7 years ago

Prince2k3 commented 7 years ago

Be nice to have time ago support with this library. If there is one I didn't see where it was.

But being able to say date.timeAgo that outputs "4 minutes ago" etc...

naoty commented 7 years ago

Thank you for the issue!

The timeago feature requires localization such as "4分前" in Japanese. But, I don't want to support localization in Timepiece because I want to keep Timepiece a simple wrapper for Foundation.

If I implement the feature, I will build another library which just does it.

Prince2k3 commented 7 years ago

You make a good point about localization. Time ago feature though very simple can be complex with localization.

naoty commented 7 years ago

I will close this issue. But, if you still have any reason to implement this feature, feel free to post messages.