time():返回unix时间戳。
date(): 格式化一个本地时间/日期
getdate — 取得日期/时间信息:
strtotime : 将任何英文文本的日期时间描述解析为 Unix 时间戳
echo strtotime('10:55:1 2011-10-11'); 1318301701
Powered by: 博客园 Copyright © 2024 hehexu Powered by .NET 8.0 on Kubernetes