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

 

你可能感兴趣的:(iPhone)