idate(PHP 5) idate — Format a local time/date as integer Описание
int idate
( string $format
[, int $timestamp
] )
Returns a number formatted according to the given format string using the given integer timestamp or the current local time if no timestamp is given. In other words, timestamp is optional and defaults to the value of time(). Unlike the function date(), idate() accepts just one char in the format parameter. Список параметров
Возвращаемые значенияReturns an integer. As idate() always returns an integer and as they can't start with a "0", idate() may return fewer digits than you would expect. See the example below. Errors/ExceptionsEvery call to a date/time function will generate a E_NOTICE if the time zone is not valid, and/or a E_STRICT message if using the system settings or the TZ environment variable. See also date_default_timezone_set() Список изменений
Примеры
Пример #1 idate() example
<?php |
|
|
| © 2009 Тест скорости интернета | Boont.Ru |