Latest 0.0.2
Homepage https://github.com/Busta117/NSDate-Match
License MIT
Platforms ios 5.0, requires ARC
Authors

NSDate-Match

NSDate comparations and extens

Podfile

pod "NSDate+Match"

Methods

-(NSString *)stringWithFormat:(NSString *)format;
+(NSDate *)dateFromString:(NSString*)string withFormat:(NSString *)format;

- (BOOL)isSameDayThanDate:(NSDate*)date; //compare day, month and year
- (NSDate *)nextDay;
- (NSDate *)lastDay;

- (BOOL)isSameWeekThanDate:(NSDate*)date; //compare week and year
- (NSDate *)firstDayOfWeek;
- (NSDate *)firstDayOfWeekStartingMonday:(BOOL)weekStartMonday;
- (NSDate *)lastDayOfWeek;
- (NSDate *)lastDayOfWeekStartingMonday:(BOOL)weekStartMonday;

- (NSDate *)nextWeek;
- (NSDate *)lastWeek;
- (BOOL) isSameWeekday:(int)numDayIn;

- (BOOL)isSameMonthThanDate:(NSDate*)date; //compare month and year
- (NSDate *)nextMonth;
- (NSDate *)lastMonth;
- (NSString *) monthNameComplete;
- (NSString *) monthNameShort;
- (NSString *) monthNameShortSpanish;
- (BOOL) isSameMonthday:(int)numDayIn;

- (BOOL) isSameHour:(int) hourIn; //24 hour format
- (BOOL) isSameHourThanDate:(NSDate*)date; //compare only the hour

- (BOOL)isSameYearThanDate:(NSDate*)date; //compare only year

Latest podspec

{
    "name": "NSDate+match",
    "version": "0.0.2",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "summary": "NSDate comparations and extens",
    "homepage": "https://github.com/Busta117/NSDate-Match",
    "authors": {
        "Santiago Bustamante": "[email protected]"
    },
    "source": {
        "git": "https://github.com/Busta117/NSDate-Match.git",
        "tag": "0.0.2"
    },
    "platforms": {
        "ios": "5.0"
    },
    "source_files": "NSDate+match/*.{h,m}",
    "requires_arc": true
}

Pin It on Pinterest

Share This