Set time in php to 00:00:00

后端 未结 4 712
名媛妹妹
名媛妹妹 2021-02-08 10:40

I need to display the time but it must start from 00:00:00? I\'ve got the following but it uses the current time.

print(date(\"H:i:s\"));
4条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-02-08 11:42

    try to use this syntax:

    print(date("H:i:s", 0));
    

    or

    print(date("H:i:s", 10)); // 10 seconds
    

提交回复
热议问题