ADOdb

Database Abstraction Layer for PHP

User Tools

Site Tools


v5:datetime:adodb_mktime

adodb_mktime

See Also

PHP Function mktime()

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

Deprecated since ADOdb 5.22.6, and removed in 5.23.0. Use 64-bit native PHP functions instead.

Description

This function converts a local date to a unix timestamp. Unlike the function mktime(), it supports dates outside the 1901 to 2038 range.


Usage

$t = adodb_mktime(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_mktime.txt · Last modified: 2023/05/18 18:52 by dregad