====== adodb_gmmktime ======
~~NOTOC~~
== See Also ==
[[http://php.net/manual/en/function.gmmktime.php|PHP Function gmmktime()]]
== Syntax ==
int adodb_gmmktime(
int $hr,
int $min,
int $sec ,
optional int $month,
optional int $day,
optional int $year
)
[[datetime_index#deprecated|Deprecated]] since ADOdb 5.22.6, and [[https://github.com/ADOdb/ADOdb/issues/970|removed in 5.23.0]].
Use 64-bit native PHP functions instead.
===== Description =====
This function converts a gmt date to a unix timestamp. Unlike the function gmmktime(), it supports dates outside the 1901 to 2038 range.
--------------------------------------
===== Usage =====
$t = adodb_gmmktime(12,10,0,6,20,1066);
print $t;
/*
* Prints -28512190200
*/
$d = adodb_gmdate('m/d/Y H:i:s',$t);
print $d;
/*
* prints 06/20/1066 12:10:00
*/