作者: | 来源:互联网 | 2023-07-29 20:38
IhaveanNSDateobject,andIneedtocheckifithasalreadypassed.Ifso,turnthatdateintoth
I have an NSDate object, and I need to check if it has already passed. If so, turn that date into the date of tomorrow, but I can't lose information like TimeZone in the process.
我有一个NSDate对象,我需要检查它是否已经通过。如果是这样,将该日期转换为明天,但我不能在此过程中丢失TimeZone等信息。
Could you plz help me?
你能帮助我吗?
2 个解决方案