
- Removed YuMi/Library/ (138 MB, not tracked) - Removed YuMi/Resources/ (23 MB, not tracked) - Removed old version assets (566 files, not tracked) - Excluded Pods/, xcuserdata/ and other build artifacts - Clean repository optimized for company server deployment
43 lines
1.0 KiB
Objective-C
43 lines
1.0 KiB
Objective-C
//
|
|
// NSDate+DateUtils.h
|
|
// YUMI
|
|
//
|
|
// Created by YUMI 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;
|
|
- (NSDate *)dateByAddingSeconds:(NSInteger)seconds;
|
|
|
|
- (NSString *)stringForFormat:(NSString *)format;
|
|
|
|
+ (NSString *)stringFromDate:(NSDate *)date;
|
|
+ (NSDate *)at_dateFromString:(NSString *)dateString;
|
|
+(NSString *)getNowTimeTimestamp;
|
|
+ (NSString *)getCurrentTimeWithFormat:(NSString *)format;
|
|
+(NSString *)timestampSwitchTime:(NSInteger)timestamp andFormatter:(NSString *)format;
|
|
#pragma mark - 将某个时间戳转化成 时间
|
|
+ (NSString *)timestampSwitchTime:(NSInteger)timestamp formatter:(NSString *)format;
|
|
+ (NSInteger)pleaseInsertStarTimeo:(NSString *)time1 andInsertEndTime:(NSString *)time2;
|
|
|
|
- (NSString *) stringForYearMonthDayDashed;
|
|
|
|
@end
|
|
|
|
@interface NSCalendar (Pick)
|
|
|
|
+ (instancetype)sharedCalendar;
|
|
|
|
@end
|
|
|
|
|
|
NS_ASSUME_NONNULL_END
|