joshdholtz / NSDate-MinimalTimeAgo

NSDate category for very minimal style time ago

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

ezoic increase your site revenue

About

NSDate category for very minimal style time ago

License:MIT License


Languages

Language:Objective-C 64.2%Language:Ruby 35.8%