// // CCTime.h // CCFC // // Created by xichen on 11-12-16. // Copyright 2011年 ccteam. All rights reserved. // #import <Foundation/Foundation.h> #define IS_LEAP_YEAR(year) ((year) % 4 == 0 && (year) % 100 != 0 \ || (year) % 400 == 0) #define DAYS_IN_YEAR(year) (IS_LEAP_YEAR(year) ? 366 : 365) @interface CCTime : NSObject { } @end
可能有更新:
googlecode链接地址:http://code.google.com/p/iphone-common-codes-ccteam/source/browse/trunk/CCFC/files/CCTime.h
github地址: https://github.com/cxsjabc/iphone-common-codes-ccteam/tree/master/CCFC/files/CCTime.h
本文介绍了CCTime.h文件,这是一个用于iPhone通用代码库的头文件,定义了判断闰年的宏及一年天数,并声明了一个名为CCTime的NSObject子类。提供了googlecode和github上的源代码链接。
83

被折叠的 条评论
为什么被折叠?



