#import <Foundation/Foundation.h>
@interface NSDate(ZXLExtension)
-(BOOL)isToday;
- (BOOL)isYesterday;
- (BOOL)isThisWeak;
- (BOOL)isThisMonth;
- (BOOL)isThisYear;
- (NSInteger)weekDay;
+(NSDate *)today;
+ (NSDate *)dateWithMonth:(NSUInteger)month day:(NSUInteger)day year:(NSUInteger)year;
+ (NSDate *)weekFirstDayWithToday;
+ (NSDate *)weekFirstDayWithDate:(NSString *)date;
+ (NSDate *)frontWeekFirstDayWithDate:(NSString *)date;
+ (NSDate *)nextWeekFirstDayWithDate:(NSString *)date;
+ (NSDate *)mothFirstDayWithMonth:(NSUInteger)month year:(NSUInteger)year;
+ (NSDate *)todayMothFirstDay;
+ (NSDate *)mothFirstDayWithFrontMonth:(NSDate *)date;
+ (NSDate *)mothFirstDayWithNextMonth:(NSDate *)date;
+ (NSUInteger)daysInMonth:(NSUInteger)month ofYear:(NSUInteger)year;
+ (NSUInteger)firstWeekdayInMonth:(NSUInteger)month ofYear:(NSUInteger)year;
+ (NSDate *)dateFromDateComponents:(NSDateComponents *)components;
+ (NSDateComponents *)dateComponentsFromDate:(NSDate *)date;
+ (BOOL)compareDate:(NSDate *)date otherDate:(NSDate *)otherDate;
+(NSString *)doubleTimeChangeToShowString:(double)dTime;
+ (NSString *)stringOfWeekdayInChinese:(NSUInteger)weekday;
@end
代码传送门