L. MIS's Archiver
論壇
›
PHP函數(5.4版)
› strtotime()-將任何英文文本的日期時間描述解析為 Unix 時間
admin
發表於 2023-7-21 11:14:02
strtotime()-將任何英文文本的日期時間描述解析為 Unix 時間
strtotime($time,$now)
說明:
$time:規定要解析的時間字串
$now:用來計算返回值的時間戳,如果省略該參數,則使用當前時間
該函數預期接受一個包含美國英語日期格式的字串並嘗試將其解析為 Unix 時間戳記(自 January 1 1970 00:00:00 GMT 起的秒數),其值相對於 now 參數給出的時間,如果沒有提供此參數,則用系統當前時間。
程式碼範例如連結
頁:
[1]
查看完整版本:
strtotime()-將任何英文文本的日期時間描述解析為 Unix 時間