ADOdb

Database Abstraction Layer for PHP

User Tools

Site Tools


v5:datetime:adodb_gmstrftime

Differences

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

Link to this comparison view

Next revision
Previous revision
Last revisionBoth sides next revision
datetime:adodb_gmstrftime [2015/11/26 16:26] – created mnewnhamv5:datetime:adodb_gmstrftime [2023/05/18 18:34] – Fix broken link dregad
Line 11: Line 11:
 </WRAP> </WRAP>
 ===== Description ===== ===== Description =====
-This function converts a timestamp to a formatted GMT date.+This function converts a timestamp to a formatted GMT date. See [[adodb_strftime|adodb_strftime()]] for information about supported locales and format codes. 
 + 
 +-------------------------------------- 
 +===== Usage ===== 
 +<code php> 
 +$t = adodb_gmmktime(12,10,0,6,20,1066); 
 +print $t; 
 +/* 
 +* Prints -28512215400 
 +*/ 
 +$d = adodb_gmstrftime("%b %d %Y %H:%M:%S", $t) . "\n"; 
 +print $d; 
 +/* 
 +* Prints Jun 20 1066 12:10:00 
 +*/ 
 +</code>
v5/datetime/adodb_gmstrftime.txt · Last modified: 2023/05/18 18:53 by dregad