📜  从时间中删除秒数php代码示例

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

代码示例1
// Use strtotime() -

echo date('g:ia', strtotime($timestamp));

// The date() function
// - string date ( string $format [, int $timestamp = time() ] )
//      - where $timestamp is to be an integer Unix timestamp.