Skip to content
This repository has been archived by the owner on Oct 1, 2023. It is now read-only.

Commit

Permalink
CocoaPods
Browse files Browse the repository at this point in the history
  • Loading branch information
quver committed Apr 7, 2016
1 parent 201bd84 commit 34dca8d
Show file tree
Hide file tree
Showing 4 changed files with 60 additions and 108 deletions.
26 changes: 0 additions & 26 deletions EpochConverter.h

This file was deleted.

80 changes: 0 additions & 80 deletions EpochConverter.m

This file was deleted.

14 changes: 14 additions & 0 deletions EpochConverter.podspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
Pod::Spec.new do |s|
s.name = "EpochConverter"
s.version = "1.0"
s.summary = "Epoch Converter for iOS and OSX"
s.homepage = "https://github.com/quver/EpochConverter"
s.license = "MIT"
s.author = { "Pawel Bednorz" => "pawel@quver.pl" }
s.social_media_url = "http://twitter.com/plquver"
s.ios.deployment_target = "8.0"
s.osx.deployment_target = "10.10"
s.source = { :git => "https://github.com/quver/EpochConverter.git", :tag => s.version }
s.public_header_files = "EpochConverter/EpochConverter.h"
s.source_files = "EpochConverter/EpochConverter.h"
end
48 changes: 46 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,53 @@
EpochConverter
==============
# EpochConverter

[![Build Status](https://travis-ci.org/quver/EpochConverter.svg)](https://travis-ci.org/quver/EpochConverter)
[![Coverage Status](https://coveralls.io/repos/github/quver/EpochConverter/badge.svg?branch=master)](https://coveralls.io/github/quver/EpochConverter?branch=master)
[![GitHub license](https://img.shields.io/github/license/quver/AESHelper.svg)]()
[![Platform](https://img.shields.io/cocoapods/p/EpochConverter.svg?style=flat)](http://cocoapods.org/pods/EpochConverter)
[![Version](https://img.shields.io/cocoapods/v/EpochConverter.svg?style=flat)](http://cocoapods.org/pods/EpochConverter)


## Instalation
```
pod 'EpochConverter', '~>1.0'
```

## Using

### Today case
Init with today date (eg. 1 Januar 2016 00:00:00)

```objective-c
EpochConverter *converter = [EpochConverter alloc] init];
```

### Choosen day case
```objective-c
EpochConverter *converter = [EpochConverter alloc] initWithEpoch:1451602800];
```


### Available properties

```objective-c
NSInteger baseEpoch;
NSInteger weekDay;
NSInteger firstWeekDay;
NSInteger lastWeekDay;
```

### Available class methods

```objective-c
+ (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

0 comments on commit 34dca8d

Please sign in to comment.