ADOdb

Database Abstraction Layer for PHP

User Tools

Site Tools


v5:datetime:adodb_gmmktime

This is an old revision of the document!


adodb_gmmktime

See Also

PHP Function gmmktime()

Syntax
int adodb_gmmktime(
   int $hr, 
   int $min, 
   int $sec ,
   optional int $month,
   optional int $day,
   optional int $year
   )

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_date('m/d/Y H:i:s',$t);
print $d;
 
/*
* prints 06/20/1066 12:10:00
*/
v5/datetime/adodb_gmmktime.1449183524.txt.gz · Last modified: 2017/04/21 11:27 (external edit)