lib/private/legacy/template/functions.php
/**
 * Strips the timestamp of its time value
 * @param int $timestamp UNIX timestamp to strip
 * @return $timestamp without time value
 */
Strips the timestamp of its time value
@param int $timestamp UNIX timestamp to strip
@return $timestamp without time value
Strips the timestamp of its time value @param int $timestamp UNIX timestamp to strip @return $timestamp without time value
function strip_time($timestamp){
	$date = new \DateTime("@{$timestamp}");
	$date->setTime(0, 0, 0);
	return intval($date->format('U'));
}
function strip_time ( $ timestamp ) { $ date = new \ DateTime ( " @ { $ timestamp } " ) ; $ date -> setTime ( 0 , 0 , 0 ) ; return intval ( $ date -> format ( 'U' ) ) ; }
Strips the timestamp of its time value
 @param int $timestamp UNIX timestamp to strip
 @return $timestamp without time value
Strips the timestamp of its time value @param int $timestamp UNIX timestamp to strip @return $timestamp without time value