NSDate(MeridianHelpers) Category Reference
| Declared in | NSDate+PrettyString.h |
|---|
+ mr_abbreviatedDateComponentsFormatter
Cached date components formatter
+ (NSDateComponentsFormatter *)mr_abbreviatedDateComponentsFormatterDeclared In
NSDate+PrettyString.h
+ mr_timestampDateFormatter
Cached date formatter for converting timestamp strings to an @c NSDate
+ (NSDateFormatter *)mr_timestampDateFormatterDeclared In
NSDate+PrettyString.h
+ mr_timestampWithMillisecondsDateFormatter
Cached date formatter for converting timestamp strings with milliseconds to @c NSDate
+ (NSDateFormatter *)mr_timestampWithMillisecondsDateFormatterDeclared In
NSDate+PrettyString.h
+ mr_longTimestampDateFormatter
Alternative Cached date formatter for converting timestamp strings to @c NSDate
+ (NSDateFormatter *)mr_longTimestampDateFormatterDeclared In
NSDate+PrettyString.h
+ mr_longTimestampWithMillisecondsDateFormatter
Alternate Cached date formatter for converting timestamp strings with milliseconds to @c NSDate
+ (NSDateFormatter *)mr_longTimestampWithMillisecondsDateFormatterDeclared In
NSDate+PrettyString.h
+ iso8601DateFormatter
Last ditch effort, use Apple’s ISO8601 date formatter to create our @c NSDate
Will return nil if running on iOS 9 or earlier
+ (nullable NSISO8601DateFormatter *)iso8601DateFormatterDeclared In
NSDate+PrettyString.h
+ mr_shortFormatDateFormatter
Short format date formatter. For converting dates to strings
+ (NSDateFormatter *)mr_shortFormatDateFormatterDeclared In
NSDate+PrettyString.h
+ mr_dateFromEditorTimestampString:
Get an @c NSDate from an editor formatted timestamp string
+ (instancetype)mr_dateFromEditorTimestampString:(NSString *)timestampParameters
timestamp |
@c NSString time stamp string |
|---|
Return Value
@c NSDate from that string
Declared In
NSDate+PrettyString.h
+ mr_mediumTimeDateFormatter
Cached medium length time formatter
+ (NSDateFormatter *)mr_mediumTimeDateFormatterDeclared In
NSDate+PrettyString.h
– mr_editorStringFromDate
Create an editor timestamp string from an NSDate instance
- (NSString *)mr_editorStringFromDateReturn Value
NSString representing our date
Declared In
NSDate+PrettyString.h
– mr_isBefore:
Check if a self is before a given date
- (BOOL)mr_isBefore:(nonnull NSDate *)dateParameters
date |
NSDate to compare to |
|---|
Return Value
YES if self is before date. NO if not.
Declared In
NSDate+PrettyString.h