DateClay
要求
安装
DateClay 通过 CocoaPods 提供。要安装它,只需将以下行添加到您的 Podfile 中
pod "DateClay"
用法
// filtering information for the date
+ (NSDate *)filteredDate:(NSDate *)date flag:(NSCalendarUnit)flag;
+ (NSDate *)dateIgnoreTimeWithDate:(NSDate *)date;
+ (NSDate *)dateIgnoreDayWithDate:(NSDate *)date;
// merge information for the date
+ (NSDate *)mergeDateWithDay:(NSDate *)day time:(NSDate *)time;
+ (NSDate *)mergeDateWithBaseDate:(NSDate *)baseDate unitFlag:(enum NSCalendarUnit)baseFlag anotherDate:(NSDate *)anotherDate unitFlag:(enum NSCalendarUnit)anotherFlag;
+ (NSDate *)day:(NSDate *)date nextWeekday:(NSInteger)weekday;
请查看测试代码以了解如何使用
作者
akuraru,[email protected]
许可证
DateClay 在 MIT 许可下可用。更多信息请参见 LICENSE 文件。