pod 'EpochConverter', '~>1.0'
使用今天的日期初始化(例如:2016年1月1日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.xyz
EpochConverter 依据 MIT 许可证提供。有关更多信息,请参阅 LICENSE 文件