ADOdb

Database Abstraction Layer for PHP

User Tools

Site Tools


v5:datetime:adodb_gmmktime

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
datetime:adodb_gmmktime [2015/12/03 23:58] mnewnhamv5:datetime:adodb_gmmktime [2023/05/18 18:54] (current) – Deprecated dregad
Line 14: Line 14:
      )      )
 </WRAP> </WRAP>
 +
 +<WRAP important>
 +[[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.
 +</WRAP>
 +
 ===== Description ===== ===== Description =====
 This function converts a gmt date to a unix timestamp.  Unlike the function gmmktime(), it supports dates outside the 1901 to 2038 range. This function converts a gmt date to a unix timestamp.  Unlike the function gmmktime(), it supports dates outside the 1901 to 2038 range.
Line 26: Line 32:
 */ */
  
-$d = adodb_date('m/d/Y H:i:s',$t);+$d = adodb_gmdate('m/d/Y H:i:s',$t);
 print $d; print $d;
  
v5/datetime/adodb_gmmktime.1449183524.txt.gz · Last modified: 2017/04/21 11:27 (external edit)