NSDate(PrettyString) Category Reference
Declared in | NSDate+PrettyString.h |
---|
– mr_toTimeAgoString
Convert a date instance into a @e time_ago style string
- (NSString *)mr_toTimeAgoString
Return Value
@c NSString for showing to the user to represent time ago
Discussion
For example, a string that would say @e just_now or @e 1m or @e 1h
Declared In
NSDate+PrettyString.h
– mr_secondsAgo
Get the number of seconds that have passed from this date instance to now
- (NSInteger)mr_secondsAgo
Return Value
@c NSInteger number of seconds. Rounds down to closest second
Declared In
NSDate+PrettyString.h
– mr_minutesAgo
Get the number of minutes that have passed from this date instance to now
- (NSInteger)mr_minutesAgo
Return Value
@c NSInteger number of minutes. Rounds down to closest minute
Declared In
NSDate+PrettyString.h
– mr_hoursAgo
Get the number of hours that have passed from this date instance to now
- (NSInteger)mr_hoursAgo
Return Value
@c NSInteger number of hours. Rounds down to closest hour
Declared In
NSDate+PrettyString.h
– mr_daysAgo
Get the number of days that have passed from this date instance to now
- (NSInteger)mr_daysAgo
Return Value
@c NSInteger number of days. Rounds down to closest day
Declared In
NSDate+PrettyString.h
– mr_toDisplayString
Convert our Date instance into a pretty, display-able string
- (NSString *)mr_toDisplayString
Return Value
@c NSString for showing in a label
Declared In
NSDate+PrettyString.h
– mr_toDateDisplayString
Convert our Date instance into a pretty, display-able string (without including Time)
- (NSString *)mr_toDateDisplayString
Return Value
@c NSString for showing in a label
Declared In
NSDate+PrettyString.h