//
// CCNSCalendar.h
// CCFC
//
// Created by xichen on 11-12-17.
// Copyright 2011年 ccteam. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface NSCalendar(cc)
+ (id)GregorianCalendar;
- (NSDateComponents *)getComponents;
// you should call this immediately after getComponents method to make the result correctly.
- (int)year:(NSDateComponents *)components;
// you should call this immediately after getComponents method to make the result correctly.
- (int)month:(NSDateComponents *)components;
// you should call this immediately after getComponents method to make the result correctly.
- (int)day:(NSDateComponents *)components;
// you should call this immediately after getComponents method to make the result correctly.
- (int)hour:(NSDateComponents *)components;
// you should call this immediately after getComponents method to make the result correctly.
- (int)minute:(NSDateComponents *)components;
// you should call this immediately after getComponents method to make the result correctly.
- (int)seconds:(NSDateComponents *)components;
// you should call this immediately after getComponents method to make the result correctly.
- (int)weekday:(NSDateComponents *)components;
@end
可能有更新:
googlecode链接地址:http://code.google.com/p/iphone-common-codes-ccteam/source/browse/trunk/CCFC/files/CCNSCalendar.h
github地址:https://github.com/cxsjabc/iphone-common-codes-ccteam/tree/master/CCFC/files/CCNSCalendar.h
本文详细解析了CCNSCalendar.h文件中包含的功能接口,包括获取日历组件、日期组件等方法,帮助开发者理解并使用该文件提供的日期时间操作功能。
71

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



