iphone-common-codes-ccteam源代码 CCTime.h

//  
// 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

 

posted @ 2012-01-05 14:41  cc_team  阅读(163)  评论(0编辑  收藏  举报