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
Last revisionBoth sides next revision
datetime:adodb_gmmktime [2015/12/03 23:57] mnewnhamv5:datetime:adodb_gmmktime [2016/01/13 02:12] – ↷ Page moved from datetime:adodb_gmmktime to v5:datetime:adodb_gmmktime mnewnham
Line 16: Line 16:
 ===== 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.
 +--------------------------------------
 +===== Usage =====
 +<code php>
 +$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
 +*/
 +</code>
v5/datetime/adodb_gmmktime.txt · Last modified: 2023/05/18 18:54 by dregad