How do I add 24 hours to a unix timestamp in php?

前端 未结 7 663
南方客
南方客 2020-11-30 19:23

I would like to add 24 hours to the timestamp for now. How do I find the unix timestamp number for 24 hours so I can add it to the timestamp for right now?

I also w

相关标签:
7条回答
  • 2020-11-30 20:05

    You probably want to add one day rather than 24 hours. Not all days have 24 hours due to (among other circumstances) daylight saving time:

    strtotime('+1 day', $timestamp);
    
    0 讨论(0)
提交回复
热议问题