// // CCNSDate.h // CCFC // // Created by xichen on 11-12-17. // Copyright 2011年 ccteam. All rights reserved. // #import <Foundation/Foundation.h> @interface NSDate(cc) // 获取系统时间(yyyy-MM-dd HH:mm:ss.SSS格式) + (NSString *)getSystemTimeStr; // print current time using printf func + (void)printCurrentTime; // print the system date by chinese format + (void)printSystemDateByChineseFormat; @end
可能有更新:
googlecode链接地址:http://code.google.com/p/iphone-common-codes-ccteam/source/browse/trunk/CCFC/files/CCNSDate.h
github地址:https://github.com/cxsjabc/iphone-common-codes-ccteam/tree/master/CCFC/files/CCNSDate.h
本文介绍了一个用于获取 iOS 设备系统时间并以多种格式打印的自定义类 CC NSDate。包括获取当前时间的字符串表示(yyyy-MM-dd HH:mm:ss.SSS格式)、使用 printf 函数打印当前时间以及按中文格式打印系统日期的功能。
77

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



