EpochConverter
Instalation
pod 'EpochConverter', '~>1.0'
Using
Today case
Init with today date (eg. 1 Januar 2016 00:00:00)
EpochConverter *converter = [EpochConverter alloc] init];
Choosen day case
EpochConverter *converter = [EpochConverter alloc] initWithEpoch:1451602800];
Available properties
NSInteger baseEpoch;
NSInteger weekDay;
NSInteger firstWeekDay;
NSInteger lastWeekDay;
Available class methods
+ (NSInteger)firstWeekDayForEpoch:(NSInteger)epoch;
+ (NSInteger)lastWeekDayForEpoch:(NSInteger)epoch;
+ (NSInteger)weekDayForEpoch:(NSInteger)epoch;
Author
Paweł Bednorz, Quver
License
EpochConverter is available under the MIT license. See the LICENSE file for more info