JDate/1.5
From Joomla! Documentation
JDate
Description
Description:JDate [Edit Descripton]
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
Importing
jimport( 'joomla.utilities.date' );
See also
-
JDate on api.joomla.org
-
JDate source code on JoomlaCode
-
Subpackage Utilities
- Other versions of JDate
User contributed notes
<CodeExamplesForm />