特别完整、强大的日期操作管理类库:SwiftDate
x286
9年前
特别完整、强大的日期操作管理类库。它几乎涵盖了已知开源日期类库所有优秀特性。
Features
- Math operations with dates(ie. myDate+2.week+1.hour)
- Easy compare using<,>,==,<=,>=operators
- Easy individual date component set/get
- Easy creation with common formats or custom formats
- Powerful .toString methods with support for relative dates (ie. "2hours"...)
- Many shortcuts to get intervals and common dates (yesterday,tomorrow...)
- ... check out documentation below!
Requirements
- iOS 8.0+ / Mac OS X 10.10+
- Xcode 6.3
- Swift 1.2