获取系统时间 精确到毫秒 iphone
2010-08-02 14:14
316 查看
NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init];
[dateFormatter
setDateStyle:NSDateFormatterMediumStyle];
[dateFormatter
setTimeStyle:NSDateFormatterShortStyle];
//[dateFormatter
setDateFormat:@"hh:mm:ss"]
[dateFormatter
setDateFormat:@"yyyy-MM-dd HH:mm:ss.SSS"];
NSLog(@"Date%@",
[dateFormatter stringFromDate:[NSDate date]]);
[dateFormatter
release];
[dateFormatter
setDateStyle:NSDateFormatterMediumStyle];
[dateFormatter
setTimeStyle:NSDateFormatterShortStyle];
//[dateFormatter
setDateFormat:@"hh:mm:ss"]
[dateFormatter
setDateFormat:@"yyyy-MM-dd HH:mm:ss.SSS"];
NSLog(@"Date%@",
[dateFormatter stringFromDate:[NSDate date]]);
[dateFormatter
release];
相关文章推荐
- VC获取系统时间、程序运行时间(精确到秒,毫秒)的五种方法
- Linux获取系统当前时间(精确到毫秒)
- Linux获取系统当前时间(精确到毫秒)
- VC获取系统时间、程序运行时间(精确到秒,毫秒)的五种方法
- VC获取系统时间、程序运行时间(精确到秒,毫秒)
- VC获取系统时间、程序运行时间(精确到秒,毫秒)
- 获取当前系统本地时间,精确到毫秒的实例
- 【VS开发】VC++ 获取系统时间、程序运行时间(精确到秒,毫秒)的五种方法
- C/C++获取系统时间戳,精确到毫秒
- VB.NET获取系统当前精确时间(毫秒级)
- VC获取系统时间、程序运行时间(精确到秒,毫秒)的五种方法
- VC++ 获取系统时间、程序运行时间(精确到秒,毫秒)的五种方法
- Linux获取系统当前时间(精确到毫秒)
- 获取系统当前时间(精确到毫秒)
- VC获取系统时间、程序运行时间(精确到秒,毫秒)的五种方法
- VC++ 获取系统时间、程序运行时间(精确到秒,毫秒)的五种方法
- Linux获取系统当前时间(精确到毫秒)
- VB.NET获取系统当前精确时间(毫秒级)
- VC++ 获取系统时间、程序运行时间(精确到秒,毫秒)的五种方法
- VC获取系统时间、程序运行时间(精确到秒,毫秒)的五种方法