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