Function : Converts a local Unix timestamp to GMT
Convert Local UNIX Timestamp to GMT
This function converts local unix timestamp to GMT time format. It accepts local unix timestamp as input parameter. This is very simple function made using php time and date functions.
..
// ------------------------------------------------------------------------
/**
* Converts a local Unix timestamp to GMT
*
* @param integer Unix timestamp = $time
* @return integer
*/
if ( ! function_exists('local_to_gmt'))
{
function local_to_gmt($time = '')
{
if ($time == '')
$time = time();
return mktime( gmdate("H", $time), gmdate("i", $time), gmdate("s", $time), gmdate("m", $time), gmdate("d", $time), gmdate("Y", $time));
}
}












[...] Convert Local UNIX Timestamp to GMT | My PHP Scripts | A Hub for … Related Posts:Photoshop Tutorial: Remove a Timestamp from a Photo! : Script Stan …Function : [...]
Caselogic SLRC-201 SLR Zoom Holster (Black)…
Our Obsession: Case Logic is obsessed with organization! No matter who you are, what toys, tools or technology you have, where you are, or where you are going, Case Logic is your partner in managing the things that matter to you. We are the “stuff wra…
[...] Continue reading here: Convert Local UNIX Timestamp to GMT | My PHP Scripts | A Hub for … [...]
[...] link: Convert Local UNIX Timestamp to GMT | My PHP Scripts | A Hub for … Related Posts:Photoshop Tutorial: Remove a Timestamp from a Photo! : Script Stan … Script [...]
[...] This post was mentioned on Twitter by Abhishek Sanghvi. Abhishek Sanghvi said: Function : Converts a local Unix timestamp to GMT: Convert Local UNIX Timestamp to GMT This function converts lo… http://bit.ly/ho5deZ [...]