//
// 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文件,这是一个用于判断闰年及计算一年天数的Objective-C类定义。提供了判断是否为闰年的宏定义及相应的一年天数计算方法。

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



