Actions

API17

Difference between revisions of "JDate::toMySQL"

From Joomla! Documentation

(Layout updates)
(Updated to r1448:247ba8d88526)
Line 8: Line 8:
 
<nowiki>[</nowiki>[[Description:JDate::toMySQL|Edit Descripton]]<nowiki>]</nowiki>
 
<nowiki>[</nowiki>[[Description:JDate::toMySQL|Edit Descripton]]<nowiki>]</nowiki>
 
</span>
 
</span>
===Since===
 
{{JVer|11.1 }}
 
===Synopsis===
 
 
<source lang="php">
 
<source lang="php">
public JDate::toMySQL ($local=false)
+
public function toMySQL ($local=false)
 
</source>
 
</source>
 
{| class="wikitable"
 
{| class="wikitable"
Line 27: Line 24:
 
|-
 
|-
 
|}
 
|}
===Returns===
+
* '''Returns''' string The date string in MySQL datetime format.
string The date string in MySQL datetime format.
+
* '''Defined''' on line 475 of libraries/joomla/utilities/date.php
===Defined in===
+
* '''Since''' {{JVer|11.1 }}
libraries/joomla/utilities/date.php (line 475)
+
* see source code in [[jplatform:utilities/date.php#cl-475|BitBucket]]
+
===Referenced by===
+
 
===See also===
 
===See also===
 +
* {{JVer|11.1}} '''JDate::toMySQL source code''' on [[jplatform:utilities/date.php#cl-467|BitBucket]]
 +
* {{JVer|11.1}} Class [[JDate/11.1|JDate]]
 +
* {{JVer|11.1}} Subpackage [[Subpackage_Utilities/11.1|Utilities]]
 +
* [[JDate::toMySQL|Other versions of JDate::toMySQL]]
 +
{{SeeAlso:JDate::toMySQL}}
 
<span class="editsection" style="font-size:76%;">
 
<span class="editsection" style="font-size:76%;">
 
<nowiki>[</nowiki>[[SeeAlso:JDate::toMySQL|Edit See Also]]<nowiki>]</nowiki>
 
<nowiki>[</nowiki>[[SeeAlso:JDate::toMySQL|Edit See Also]]<nowiki>]</nowiki>
 
</span>
 
</span>
* [[JDate/11.1|JDate]]
+
===User contributed notes===
* [[JDate::toMySQL|Other versions of this method]]
+
{{SeeAlso:JDate::toMySQL}}
+
===Examples===
+
 
<CodeExamplesForm />
 
<CodeExamplesForm />
 
<dpl>
 
<dpl>
Line 48: Line 44:
 
category=MethodExample
 
category=MethodExample
 
include=*
 
include=*
 +
namespace=CodeExample
 
format= ,,,
 
format= ,,,
 
</dpl>
 
</dpl>
 
<noinclude>[[Category:JDate]][[Category:JDate::toMySQL]]</noinclude>
 
<noinclude>[[Category:JDate]][[Category:JDate::toMySQL]]</noinclude>

Revision as of 20:45, 27 April 2011

Replacement filing cabinet.png
This Namespace has been archived - Please Do Not Edit or Create Pages in this namespace. Pages contain information for a Joomla! version which is no longer supported. It exists only as a historical reference, will not be improved and its content may be incomplete.

Joomla 11.1 JDate::toMySQL

Description

Gets the date as an MySQL datetime string.

Description:JDate::toMySQL [Edit Descripton]

public function toMySQL ($local=false)
Parameter Type Default Description
$local boolean false True to return the date string in the local time zone, false to return it in GMT.
  • Returns string The date string in MySQL datetime format.
  • Defined on line 475 of libraries/joomla/utilities/date.php
  • Since Joomla 11.1

See also

SeeAlso:JDate::toMySQL [Edit See Also]

User contributed notes

<CodeExamplesForm />