TestsTested | ✓ |
LangLanguage | Obj-CObjective C |
License | MIT |
ReleasedLast Release | Jun 2015 |
Maintained by Darrarski.
Date manipulation helpers for iOS.
- (NSDate *)DRDateHelpers_dateByAddingDays:(NSInteger)daysCount timeZone:(NSTimeZone *)timeZone;
- (NSDate *)DRDateHelpers_dateByAddingWeeks:(NSInteger)weeksCount timeZone:(NSTimeZone *)timeZone;
- (NSDate *)DRDateHelpers_dateByAddingMonths:(NSInteger)monthsCount timeZone:(NSTimeZone *)timeZone;
NSLocale
to support locales with different first day of week- (NSDate *)DRDateHelpers_beginningOfDayWithTimeZone:(NSTimeZone *)timeZone;
- (NSDate *)DRDateHelpers_endOfDayWithTimeZone:(NSTimeZone *)timeZone;
- (NSDate *)DRDateHelpers_beginningOfWeekWithTimeZone:(NSTimeZone *)timeZone locale:(NSLocale *)locale;
- (NSDate *)DRDateHelpers_endOfWeekWithTimeZone:(NSTimeZone *)timeZone locale:(NSLocale *)locale;
- (NSDate *)DRDateHelpers_beginningOfMonthWithTimeZone:(NSTimeZone *)timeZone;
- (NSDate *)DRDateHelpers_endOfMonthWithTimeZone:(NSTimeZone *)timeZone;
You can integrate DRDateHelpers
with your project using Cocoapods. To do so, you will need to add one of the following lines to your Podfile:
For stable release (recommended):
pod 'DRDateHelpers', '~> 1.0.1'
Which creates dependency for version >= 1.0.1
and < 1.1
For most recent or exact development version (not recommended on production):
pod 'DRDateHelpers', :git => 'https://github.com/darrarski/DRDateHelpers-iOS.git', :tag => 'VERSION_TAG'
Where VERSION_TAG
you should put tag name for given version (ex. "v1.0.1"). It is recommended to set version explicity instead of using most recent version, as backward compatibility is not warranted.
You can also download zip archive of given release from releases page.
Unit tests are implemented inside example project.
The MIT License (MIT) - check out included LICENSE file.