Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

remove seconds from time php

// 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.
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #remove #seconds #time #php
ADD COMMENT
Topic
Name
2+3 =