EpochConverter 1.0.1

EpochConverter 1.0.1

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Apr 2016

Maintained by Pawel Bednorz.



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.xyz

License

EpochConverter is available under the MIT license. See the LICENSE file for more info