An Objective-C category for NSDate that adds human-readable relative time strings like '5 minutes ago' or 'Yesterday'.
NSDate+TimeAgo is an Objective-C category for NSDate that adds methods to generate human-readable relative time strings. It solves the problem of displaying dates in a user-friendly way by converting timestamps into phrases like '5 minutes ago' or 'Last month', enhancing the UX in iOS apps.
iOS developers working with Objective-C who need to display dates in a natural, localized format within their Cocoa Touch applications.
Developers choose NSDate+TimeAgo for its simplicity, extensive language support, and lightweight integration, providing a reliable way to implement 'time ago' functionality without complex date manipulation code.
A "time ago", "time since", "relative date", or "fuzzy date" category for NSDate and iOS, Objective-C, Cocoa Touch, iPhone, iPad
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Supports over 30 languages including English, Spanish, Chinese, and Arabic, as listed in the README, making it easy to localize date displays for international audiences without extra work.
Can be added manually or via CocoaPods with simple API calls like [date timeAgo], demonstrated in the usage example, requiring minimal setup for existing NSDate-based code.
As a category for NSDate, it provides a minimal, user-driven solution for relative time formatting without bloating projects with unnecessary dependencies.
Localizations are contributed by users, as credited in the README, ensuring a diverse range of languages through collaborative efforts rather than top-down development.
The README explicitly states the project is merged into DateTools and archived since 2014, with no maintenance or issue handling, making it risky for new projects.
Admitted in the 'Future Directions' section, it lacks features like customizing output strings or precision levels, forcing developers to accept predefined formats.
Designed solely for Objective-C, requiring bridging headers for Swift projects, which adds complexity compared to native Swift alternatives like DateTools.