remove seconds from time php

37

// 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.

Comments

Submit
0 Comments