NSDateMinimalTimeAgo 0.1.0

NSDateMinimalTimeAgo 0.1.0

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Dec 2014

Maintained by Josh Holtz.



  • By
  • Josh Holtz

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.

Author

Josh Holtz, [email protected], @joshdholtz

License

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