Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/niklasberglund/nsdate-timezones
- Owner: niklasberglund
- Created: 2013-05-30T15:44:43.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2016-03-06T17:22:51.000Z (almost 9 years ago)
- Last Synced: 2024-11-13T02:36:27.416Z (about 2 months ago)
- Topics: date, nsdate-category, objective-c, timezone
- Language: Objective-C
- Size: 2.93 KB
- Stars: 6
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.