NSDate+CL.h 655 B

123456789101112131415161718192021222324
  1. //
  2. // NSDate+CL.h
  3. // CLWeeklyCalendarView
  4. //
  5. // Created by Caesar on 10/12/2014.
  6. // Copyright (c) 2014 Caesar. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. @interface NSDate (CL)
  10. -(NSDate *)addDays:(NSInteger)day;
  11. -(NSDate *)getWeekStartDate: (NSInteger)weekStartIndex;
  12. -(NSString *)getDayOfWeekShortString;
  13. -(NSString *)getDateOfMonth;
  14. -(BOOL) isSameDateWith: (NSDate *)dt;
  15. - (BOOL)isDateToday;
  16. - (BOOL)isWithinDate: (NSDate *)earlierDate toDate:(NSDate *)laterDate;
  17. - (BOOL)isPastDate;
  18. @end
  19. // 版权属于原作者
  20. // http://code4app.com (cn) http://code4app.net (en)
  21. // 发布代码于最专业的源码分享网站: Code4App.com