测试已测试 | ✓ |
语言语言 | Obj-CObjective C |
许可证 | MIT |
发布最后发布 | 2015年3月 |
由 Jacob Andersson、Hyper Interaktiv AS 维护。
#import "NSString+HYPDate.h"
+ (NSString *)hyp_currentDateAsTimeString;
+ (NSString *)hyp_currentDateAsDateString;
+ (NSString *)hyp_currentDateAsDateStringWithFormat:(NSString *)dateStringformat;
+ (NSString *)hyp_timeStringFromDate:(NSDate *)date;
+ (NSString *)hyp_dateStringFromDate:(NSDate *)date;
+ (NSString *)hyp_dateStringFromDate:(NSDate *)date withFormat:(NSString *)dateStringFormat;
- (NSString *)hyp_timeString;
- (NSString *)hyp_dateString;
- (NSString *)hyp_dateStringWithFormat:(NSString *)dateStringFormat;
+ (NSString *)hyp_timeRangeStringFromStartDate:(NSDate *)startDate endDate:(NSDate *)endDate;
+ (NSString *)hyp_dateRangeStringFromStartDate:(NSDate *)startDate endDate:(NSDate *)endDate;
+ (NSString *)hyp_dateRangeStringFromStartDate:(NSDate *)startDate
endDate:(NSDate *)endDate
withFormat:(NSString *)dateStringFormat;;
+ (NSString *)hyp_timeRangeStringFromStartDateString:(NSString *)startDateString
endDateString:(NSString *)endDateString;
+ (NSString *)hyp_dateRangeStringFromStartDateString:(NSString *)startDateString
endDateString:(NSString *)endDateString;
+ (NSString *)hyp_dateRangeStringFromStartDateString:(NSString *)startDateString
endDateString:(NSString *)endDateString
withFormat:(NSString *)dateStringFormat;
NSString-HYPDate 可以通过 CocoaPods 获取。要安装它,只需将以下行添加到您的 Podfile
pod 'NSString-HYPDate'
Hyper Interaktiv AS,[email protected]
NSString-HYPDate 在 MIT 许可证下可用。有关更多信息,请参阅 LICENSE 文件。