/EpochConverter

Epoch Converter for iOS and OSX

Primary LanguageObjective-CMIT LicenseMIT

EpochConverter

Build Status Coverage Status GitHub license Platform Version

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