API17:JHtml::date
From Joomla! Documentation
(Difference between revisions)
(Layout updates) |
(Updated to r1448:247ba8d88526) |
||
| Line 8: | Line 8: | ||
<nowiki>[</nowiki>[[Description:JHtml::date|Edit Descripton]]<nowiki>]</nowiki> | <nowiki>[</nowiki>[[Description:JHtml::date|Edit Descripton]]<nowiki>]</nowiki> | ||
</span> | </span> | ||
| − | |||
| − | |||
| − | |||
<source lang="php"> | <source lang="php"> | ||
| − | public static | + | public static function date ( |
| + | $input= 'now' | ||
| + | $format=null | ||
| + | $tz=true | ||
| + | $gregorian=false | ||
| + | ) | ||
</source> | </source> | ||
{| class="wikitable" | {| class="wikitable" | ||
| Line 42: | Line 44: | ||
|- | |- | ||
|} | |} | ||
| − | + | * '''Returns''' string A date translated by the given format and time zone. | |
| − | string A date translated by the given format and time zone. | + | * '''Defined''' on line 567 of libraries/joomla/html/html.php |
| − | + | * '''Since''' {{JVer|11.1 }} | |
| − | libraries/joomla/html/html.php | + | |
| − | * | + | |
| − | + | ||
===See also=== | ===See also=== | ||
| + | * {{JVer|11.1}} '''JHtml::date source code''' on [[jplatform:html/html.php#cl-559|BitBucket]] | ||
| + | * {{JVer|11.1}} Class [[JHtml/11.1|JHtml]] | ||
| + | * {{JVer|11.1}} Subpackage [[Subpackage_Html/11.1|Html]] | ||
| + | * [[JHtml::date|Other versions of JHtml::date]] | ||
| + | {{SeeAlso:JHtml::date}} | ||
<span class="editsection" style="font-size:76%;"> | <span class="editsection" style="font-size:76%;"> | ||
<nowiki>[</nowiki>[[SeeAlso:JHtml::date|Edit See Also]]<nowiki>]</nowiki> | <nowiki>[</nowiki>[[SeeAlso:JHtml::date|Edit See Also]]<nowiki>]</nowiki> | ||
</span> | </span> | ||
| − | + | ===User contributed notes=== | |
| − | + | ||
| − | + | ||
| − | === | + | |
<CodeExamplesForm /> | <CodeExamplesForm /> | ||
<dpl> | <dpl> | ||
| Line 63: | Line 64: | ||
category=MethodExample | category=MethodExample | ||
include=* | include=* | ||
| + | namespace=CodeExample | ||
format= ,,, | format= ,,, | ||
</dpl> | </dpl> | ||
<noinclude>[[Category:JHtml]][[Category:JHtml::date]]</noinclude> | <noinclude>[[Category:JHtml]][[Category:JHtml::date]]</noinclude> | ||
Revision as of 21:04, 27 April 2011
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.
JHtml::date
Description
Returns formated date according to a given format and time zone.
Description:JHtml::date [Edit Descripton]
public static function date ( $input= 'now' $format=null $tz=true $gregorian=false )
| Parameter | Type | Default | Description |
|---|---|---|---|
| $input | string | 'now' | String in a format accepted by , defaults to "now". |
| $format | string | null | format optional format for strftime |
| $tz | mixed | true | Time zone to be used for the date. Special cases: boolean true for user setting, boolean false for server setting. |
| $gregorian | false |
- Returns string A date translated by the given format and time zone.
- Defined on line 567 of libraries/joomla/html/html.php
- Since
See also
-
JHtml::date source code on BitBucket
-
Class JHtml
-
Subpackage Html
- Other versions of JHtml::date
SeeAlso:JHtml::date [Edit See Also]
User contributed notes
<CodeExamplesForm />
