请教怎么比较时间

WBOY
Release: 2016-06-13 12:55:26
Original
837 people have browsed it

请问如何比较时间?

本帖最后由 szivanl 于 2013-01-21 11:59:10 编辑 已有一个时间为12:00:00,我想与当前系统时间对比大小,请问代码应该如何写(注意,只要时间,不要日期)?

------解决方案--------------------
var_dump('12:00:00' > date('H:i:s'));
Copy after login
Related labels:
source:php.cn
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!