NSDate category for very minimal style time ago
Objective-C Ruby
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Classes
NSDateMinimalTimeAgo
Project
.gitignore
CHANGELOG.md
LICENSE
NSDateMinimalTimeAgo.podspec
README.md
Rakefile

README.md

NSDateMinimalTimeAgo

NSDate category for very minimal style time ago.

  • Time Ago Output
    • Seconds - 45s
    • Minutes - 45m
    • Hours - 12h
    • Days - 5d
    • Weeks - 3w
    • Months - 10mo
    • Years - 2y

Examples

#import <NSDateMinimalTimeAgo/NSDate+MinimalTimeAgo.h> // If using CocoaPods
#import "NSDate+MinimalTimeAgo.h" // If dropped files from Classes directory in project directly

NSDate *somePastDate = [self somePastDate];
NSString *timeAgo = [somePastDate timeAgo];

Installation

Drop-in Classes

Clone the repository and drop in the .h and .m files from the "Classes" directory into your project.

CocoaPods

NSDateMinimalTimeAgo is available through CocoaPods, to install it simply add the following line to your Podfile:

pod 'NSDateMinimalTimeAgo', '~> 0.1.0'

Author

Josh Holtz, me@joshholtz.com, @joshdholtz

License

NSDateMinimalTimeAgo is available under the MIT license. See the LICENSE file for more info.