JDate/1.5
From Joomla! Documentation
< JDate(Difference between revisions)
(Layout updates) |
m (→See also: fixing link to API) |
||
| Line 63: | Line 63: | ||
<source lang="php">jimport( 'joomla.utilities.date' );</source> | <source lang="php">jimport( 'joomla.utilities.date' );</source> | ||
===See also=== | ===See also=== | ||
| − | * {{JVer|1.5}} '''JDate''' on [http://api.joomla.org/Joomla-Framework/Utilities/JDate.html api.joomla.org] | + | * {{JVer|1.5}} '''JDate''' on [http://api.joomla.org/1.5/Joomla-Framework/Utilities/JDate.html api.joomla.org] |
* {{JVer|1.5}} '''JDate source code''' on [[jframework15:utilities/date.php|JoomlaCode]] | * {{JVer|1.5}} '''JDate source code''' on [[jframework15:utilities/date.php|JoomlaCode]] | ||
* {{JVer|1.5}} Subpackage [[Subpackage Utilities/1.5|Utilities]] | * {{JVer|1.5}} Subpackage [[Subpackage Utilities/1.5|Utilities]] | ||
Latest revision as of 14:17, 13 February 2013
[edit]
JDate
[edit] Description
Description:JDate [Edit Descripton]
[edit] Methods
| Visibility | Method name | Description |
|---|---|---|
| public | __construct | Creates a new instance of representing a given date. |
| public | _dayToString | Translates day of week number to string. |
| public | _monthToString | Translates month number to string. |
| public | _strftime | Translates needed strings in for (see ). |
| public | getOffset | Get the date offset (in hours). |
| public | setOffset | Set the date offset (in hours). |
| public | toFormat | Gets the date in a specific format. |
| public | toISO8601 | Gets the date as an ISO 8601 date. |
| public | toMySQL | Gets the date as in MySQL datetime format. |
| public | toRFC822 | Gets the date as an RFC 822 date. |
| public | toUnix | Gets the date as UNIX time stamp. |
- Defined in libraries/joomla/utilities/date.php
- Extends JObject
[edit] Importing
jimport( 'joomla.utilities.date' );
[edit] See also
-
JDate on api.joomla.org
-
JDate source code on JoomlaCode
-
Subpackage Utilities
- Other versions of JDate
[edit] User contributed notes
<CodeExamplesForm />