求助
php吧
全部回复
仅看楼主
level 1
岚糜蓝庭
楼主
大佬们 我想写个数据库的东西 addtime是当前时间 outtime我想写个当前时间7天后的时间 我该怎么写啊
2022年02月22日 11点02分
1
level 13
错过的风景º
那还写进数据库干嘛 知道添加时间 就好了 取出来时加上60*60*24*7
2022年02月22日 12点02分
2
level 12
晚归家i🎄
date('Y-m-d h:i:s',strtotime("+7 day"))
2022年02月22日 13点02分
4
岚糜蓝庭
卧槽,我原来是没写h:i:s 跪写大佬指点
2022年02月23日 03点02分
岚糜蓝庭
@岚糜蓝庭
:卧槽,我原来是没写h:i:s 跪谢大佬指点
2022年02月23日 03点02分
☞元始天尊
@岚糜蓝庭
H:i:s
2022年03月04日 03点03分
level 10
白き永遠
楼上正解
2022年02月22日 15点02分
5
level 11
寒川是零零柒
time()
+3
600*24*7;
2022年02月23日 03点02分
6
level 10
☞元始天尊
可以先sleep上7天 然后取当前时间就是7天后的时间 我特么真是个鬼才
2022年03月04日 03点03分
8
level 8
折戟谶铩
date('Y-m-d h:i:s',strtotime("+7 day")) 这种问题百度会更快得到答案 +day +month +year
2022年03月07日 09点03分
9
1