How to get yesterday's timestamp at 0 o'clock in php

藏色散人
Release: 2023-04-07 22:46:02
forward
4702 people have browsed it

How to get the timestamp of yesterday's 0 o'clock in php?

Get the timestamp of 0 o'clock yesterday

strtotime('yesterday')
Copy after login

Get the timestamp of 24:00 last night

strtotime(date('Y-m-d'))
Copy after login

Get the timestamp of 23:59:59 last night

strtotime(date('Y-m-d')) - 1
Copy after login

For more PHP related knowledge, please visit PHP Tutorial!

The above is the detailed content of How to get yesterday's timestamp at 0 o'clock in php. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
php
source:csdn.net
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!