Difference between revisions of "JDate"
From Joomla! Documentation
(New page: <span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>Edit Descripton<nowiki>]</nowiki>
</span>
{{Description:JDate}}
===Defined in===
libraries...) |
|||
Line 36: | Line 36: | ||
|Gets the date in a specific format | |Gets the date in a specific format | ||
|} | |} | ||
+ | |||
===Importing=== | ===Importing=== | ||
<source lang="php">jimport( 'joomla.utilities.date' );</source> | <source lang="php">jimport( 'joomla.utilities.date' );</source> |
Revision as of 12:40, 25 March 2010
The "API15" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.
[Edit Descripton] Template:Description:JDate
Defined in[edit]
libraries/joomla/utilities/date.php
Methods[edit]
Method name | Description |
---|---|
__construct | Creates a new instance of JDate representing a given date. |
setOffset | Set the date offset (in hours) |
getOffset | Get the date offset (in hours) |
toRFC822 | Gets the date as an RFC 822 date. |
toISO8601 | Gets the date as an ISO 8601 date. |
toMySQL | Gets the date as in MySQL datetime format |
toUnix | Gets the date as UNIX time stamp. |
toFormat | Gets the date in a specific format |
Importing[edit]
jimport( 'joomla.utilities.date' );
[Edit See Also] Template:SeeAlso:JDate
Examples[edit]
<CodeExamplesForm />