Skip to content

Commit

Permalink
Added travis-CI configuration file
Browse files Browse the repository at this point in the history
  • Loading branch information
belkevich committed Sep 21, 2013
1 parent 5153b1a commit c15b921
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 2 deletions.
11 changes: 11 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
language: objective-c

before_install:
- sudo gem update --system
- sudo gem install cocoapods
- sudo gem install ios_ci
- brew install ios-sim
- cd Spec
- pod

script: ios_ci cedar --source-root $TRAVIS_BUILD_DIR/Spec --workspace NSDateCategoriesSpec.xcworkspace --scheme NSDateCategoriesSpec --build-path Build/Products
34 changes: 32 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,36 @@ NSDate+Calendar
===

#### About
This is the set of categories on [NSDate](https://developer.apple.com/library/mac/documentation/Cocoa/Reference/Foundation/Classes/NSDate_Class/Reference/Reference.html).
This is the set of categories on [NSDate](https://developer.apple.com/library/mac/documentation/Cocoa/Reference/Foundation/Classes/NSDate_Class/Reference/Reference.html) that allow access to date components such as *year, month, week of year, week of month, weekday, day, hour, minute, second* in local time zone.

**Project is in progress. Please, wait.**
---

#### Install
Add to [Podfile](http://cocoapods.org/) `pod 'NSDate+Calendar'`

---

#### Using

###### Access to date componentes

```objective-c
NSDate *date = [NSDate date];
NSInteger year = date.year;
NSInteger month = date.month;
NSInteger day = date.day;
NSInteger weekOfYear = date.weekOfYear;
NSInteger weekOfMonth = date.weekOfMonth;
NSInteger weekday = date.weekday;
NSInteger hour = date.hour;
NSInteger minute = date.minute;
NSInteger second = date.second;
```

---

###### Create date from date components



---

0 comments on commit c15b921

Please sign in to comment.