NSString-HYPDate 0.1

NSString-HYPDate 0.1

测试已测试
语言语言 Obj-CObjective C
许可证 MIT
发布最后发布2015年3月

Jacob AnderssonHyper 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 文件。