共 2 篇文章 |
|
这里计算多少个月前时,为了减少计算量,没有分别获取对应月份的总天数,而是使用月份最大值31作为标准,因此, 阅550 转7 评0 公众公开 15-04-01 22:58 |
} // lower than 120 seconds => one minute and lower than 60 seconds if (different < 120) { return [NSString stringWithFormat:@"1 minute %@", suffix];} // lower than one day if (different < 86400) { return [NSString stringWithFormat:@"%d hours %@&quo... 阅1069 转10 评0 公众公开 15-04-01 22:57 |