Number of weeks in month

前端 未结 1 2037
夕颜
夕颜 2021-01-17 02:08

I have the following code:

NSDate *dateNow = [[NSDate alloc] init];
NSTimeInterval timeDifference = [usersDate timeIntervalSinceDate:dateNow];
// Get the sys         


        
相关标签:
1条回答
  • 2021-01-17 02:42

    Doesn't it work to just use:

    unsigned int unitFlags = NSWeekCalendarUnit;
    

    ?

    0 讨论(0)
提交回复
热议问题