2022-04-12 20:02:09 +08:00
|
|
|
//
|
|
|
|
// NSDate+DateUtils.h
|
|
|
|
// xplan-ios
|
|
|
|
//
|
|
|
|
// Created by 冯硕 on 2022/4/12.
|
|
|
|
//
|
|
|
|
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
|
|
|
|
@interface NSDate (DateUtils)
|
|
|
|
+ (NSDateFormatter *)shareDateFormatter;
|
|
|
|
|
|
|
|
- (NSInteger)daysBetween:(NSDate *)aDate;
|
|
|
|
|
|
|
|
- (NSDate *)dateByAddingDays:(NSInteger)days;
|
|
|
|
|
|
|
|
- (NSString *)stringForFormat:(NSString *)format;
|
2024-03-26 16:46:59 +08:00
|
|
|
+(NSString *)getNowTimeTimestamp;
|
2022-04-12 20:02:09 +08:00
|
|
|
@end
|
|
|
|
|
|
|
|
@interface NSCalendar (Pick)
|
|
|
|
|
|
|
|
+ (instancetype)sharedCalendar;
|
|
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
|
|
|
|
NS_ASSUME_NONNULL_END
|