API Joomla 1.5.26
Documentation des API du CMS Joomla en version 1.5
|
JDate::__construct | ( | $ | date = 'now' , |
$ | tzOffset = 0 |
||
) |
JDate::_dayToString | ( | $ | day, |
$ | abbr = false |
||
) |
Translates day of week number to string
protected
int | $day | The numeric day of the week |
bool | $abbr | Return the abreviated day string? |
Références JText::_().
JDate::_monthToString | ( | $ | month, |
$ | abbr = false |
||
) |
Translates month number to string
protected
int | $month | The numeric month of the year |
bool | $abbr | Return the abreviated month string? |
Références JText::_().
JDate::_strftime | ( | $ | format, |
$ | time | ||
) |
Translates needed strings in for JDate::toFormat (see PHP_MANUAL#strftime)
protected
string | $format | The date format specification string (see PHP_MANUAL#strftime) |
int | $time | Unix timestamp |
Références $date.
JDate::getOffset | ( | ) |
Get the date offset (in hours)
public
JDate::setOffset | ( | $ | offset | ) |
Set the date offset (in hours)
public
float | The offset in hours |
JDate::toFormat | ( | $ | format = '%Y-%m-%d %H:%M:%S' | ) |
Gets the date in a specific format
Returns a string formatted according to the given format. Month and weekday names and other language dependent strings respect the current locale
string | $format | The date format specification string (see PHP_MANUAL#strftime) |
Références $date.
JDate::toISO8601 | ( | $ | local = false | ) |
Gets the date as an ISO 8601 date.
Références $date.
JDate::toMySQL | ( | $ | local = false | ) |
Gets the date as in MySQL datetime format
Références $date.
JDate::toRFC822 | ( | $ | local = false | ) |
Gets the date as an RFC 822 date.
Références $date.
JDate::toUnix | ( | $ | local = false | ) |
JDate::$_date = false |
JDate::$_offset = 0 |