NSString-HYPDate 0.1

NSString-HYPDate 0.1

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Mar 2015

Maintained by Jacob Andersson, Hyper Interaktiv AS.



Usage

#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;

Installation

NSString-HYPDate is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'NSString-HYPDate'

Author

Hyper Interaktiv AS, [email protected]

License

NSString-HYPDate is available under the MIT license. See the LICENSE file for more info.