📌  相关文章
📜  24 小时格式的 laravel 表单 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:45.908000             🧑  作者: Mango

代码示例1
// 24-hour time to 12-hour time 
$time_in_12_hour_format  = date("g:i a", strtotime("13:30"));

// 12-hour time to 24-hour time 
$time_in_24_hour_format  = date("H:i", strtotime("1:30 PM"));