Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/niklasberglund/nsdate-timezones

NSDate category adding methods for converting between time zones
https://github.com/niklasberglund/nsdate-timezones

date nsdate-category objective-c timezone

Last synced: about 2 months ago
JSON representation

NSDate category adding methods for converting between time zones

Awesome Lists containing this project

README

        

NSDate-timezones
================

NSDate category adding methods for converting between time zones

# Install
Either manually add the files to your project or install using CocoaPods. Add NSDate+timezones to your Podfile like so:
```
pod 'NSDate+timezones'
```

# Usage
Convert between timezones using the methods:
```
- (NSDate *)dateToTimeZone:(NSTimeZone *)toTimeZone fromTimeZone:(NSTimeZone *)fromTimeZone
```

and

```
- (NSDate *)dateToTimeZone:(NSTimeZone *)toTimeZone
```

More information in the method documentation.