Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/joshdholtz/nsdate-minimaltimeago
NSDate category for very minimal style time ago
https://github.com/joshdholtz/nsdate-minimaltimeago
Last synced: 17 days ago
JSON representation
NSDate category for very minimal style time ago
- Host: GitHub
- URL: https://github.com/joshdholtz/nsdate-minimaltimeago
- Owner: joshdholtz
- License: mit
- Created: 2014-01-28T16:13:16.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2014-01-30T19:53:24.000Z (almost 11 years ago)
- Last Synced: 2024-10-11T10:32:26.382Z (about 1 month ago)
- Language: Objective-C
- Size: 179 KB
- Stars: 17
- Watchers: 4
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# 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
````objc
#import // If using CocoaPods
#import "NSDate+MinimalTimeAgo.h" // If dropped files from Classes directory in project directlyNSDate *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](http://cocoapods.org), to install
it simply add the following line to your Podfile:pod 'NSDateMinimalTimeAgo', '~> 0.1.0'
## Author
Josh Holtz, [email protected], [@joshdholtz](https://twitter.com/joshdholtz)
## License
NSDateMinimalTimeAgo is available under the MIT license. See the LICENSE file for more info.