JDate/1.5
From Joomla! Documentation
[Edit Descripton] Description:JDate
Defined in
libraries/joomla/utilities/date.php
Subpackage
Extends
Extended by
Methods
| Method name | Description |
|---|---|
| __construct | Creates a new instance of representing a given date. |
| _dayToString | Translates day of week number to string. |
| _monthToString | Translates month number to string. |
| _strftime | Translates needed strings in for (see ). |
| getOffset | Get the date offset (in hours). |
| setOffset | Set the date offset (in hours). |
| toFormat | Gets the date in a specific format. |
| toISO8601 | Gets the date as an ISO 8601 date. |
| toMySQL | Gets the date as in MySQL datetime format. |
| toRFC822 | Gets the date as an RFC 822 date. |
| toUnix | Gets the date as UNIX time stamp. |
Importing
jimport( 'joomla.utilities.date' );
See also
Examples
<CodeExamplesForm />