AZDateBuilder 1.0.3

AZDateBuilder 1.0.3

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release May 2019

Maintained by azu, akuraru.



  • By
  • azu

AZDateBuilder

Build Status

Simple NSDate Builder

Installation

pod 'AZDateBuilder'

Usage

// 2010-1-1 11:10:05
NSDate *date = [NSDate AZ_dateByUnit:@{
    AZ_DateUnit.year : @2010,
    AZ_DateUnit.month : @1,
    AZ_DateUnit.day : @1,
    AZ_DateUnit.hour : @11,
    AZ_DateUnit.minute : @10,
    AZ_DateUnit.second : @5
}];

// 2020-1-1 11:10:05
NSDate *newDate = [date AZ_dateByUnit:@{
    AZ_DateUnit.year : @2020,
}];

LICENSE

MIT