ADOdb

Database Abstraction Layer for PHP

User Tools

Site Tools


v5:datetime:adodb_date_locale

Differences

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

Link to this comparison view

Next revision
Previous revision
datetime:adodb_date_locale [2015/11/26 16:39] – created mnewnhamv5:datetime:adodb_date_locale [2023/05/18 18:55] (current) – Deprecated dregad
Line 1: Line 1:
 ====== $ADODB_DATE_LOCALE ====== ====== $ADODB_DATE_LOCALE ======
-<WRAP right info> +~~NOTOC~~ 
 +<WRAP right box>
 |Type|Mixed| |Type|Mixed|
 |Default|false| |Default|false|
-|Format|array ('Date Format','Time Format'+|Format|array ($dateFormat,$timeFormat)| 
-               +</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> </WRAP>
  
 +
 +===== Description =====
 +This global variable provides a default format to [[v5:datetime:adodb_strftime|adodb_strftime()]] to improve the speed of date/time conversions.
 +The format is an array:
 +  * 1st element is date format using [[v5:datetime:adodb_date]] syntax
 +  * 2nd element is the time format, also in [[v5:datetime:adodb_date]] syntax
 + 
 +===== Usage =====
 +<code php>
 +
 +$ADODB_DATE_LOCALE = array('d/m/Y','H:i:s');
 +
 +</code>
  
v5/datetime/adodb_date_locale.1448552360.txt.gz · Last modified: 2017/04/21 11:27 (external edit)