iOS开发-基础: NSDate 以秒数加减

来源:互联网 发布:大学o2o源码 编辑:程序博客网 时间:2024/05/18 20:45
yourDate= [NSDate dateWithTimeInterval:-86400 sinceDate:yourDate];//减一天yourDate= [NSDate dateWithTimeInterval:86400 sinceDate:yourDate];//加一天

0 0
原创粉丝点击