摘要: 获取当前时间的方法 返回值中的字段为 年 月 日 时 分 秒 周 1 -(NSMutableDictionary*)getTodayTimeDictionary 2 { 3 NSInteger year,month,day,hour,min,sec,week;//年月日时分秒周 4 ... 阅读全文
posted @ 2015-07-21 14:10 上帝很忙 阅读(213) 评论(0) 推荐(1)
摘要: 我们在开发中会遇到各种对于时间戳的操作,这里分享下比较常用的几种。1.当前时间戳 1 NSString *timeSp = [NSString stringWithFormat:@"%ld", (long)[[NSDate date]timeIntervalSince1970]];2 NSLog(@... 阅读全文
posted @ 2015-07-21 11:24 上帝很忙 阅读(575) 评论(3) 推荐(0)