Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
Класс Date
+ Граф наследования:Date:

Открытые члены

 __construct (Type\Date $date=null, string $dateFormat=null)
 
 getFields ()
 
 toString ()
 
 setTimezone (DateTimeZone $timeZone)
 
 format (string $format=null)
 
 add (string $addTime)
 
 getTimestamp ()
 
 sub (string $subtractTime)
 
 __clone ()
 
 setTime (int $hour, int $minutes, int $seconds)
 
 resetTime ()
 
 isDateTime ()
 
 getDate ()
 
 getHour ()
 
 getMinutes ()
 
 getSeconds ()
 
 getMonth ()
 
 getDay ()
 
 getYear ()
 
 isStartDay ()
 
 setDateTimeFormat (string $format)
 
 getDateTimeFormat ()
 
- Открытые члены унаследованные от BaseProperty
 __toString ()
 

Открытые статические члены

static createDateTimeFromFormat (string $date, string $format)
 
static createDateFromFormat (string $date, string $format)
 

Подробное описание

См. определение в файле date.php строка 9

Конструктор(ы)

◆ __construct()

__construct ( Type\Date $date = null,
string $dateFormat = null )
Аргументы
Type\Date | null$date
string | null$dateFormat
Исключения

Bitrix\Main\ObjectException

См. определение в файле date.php строка 60

Методы

◆ __clone()

__clone ( )
Возвращает
void

См. определение в файле date.php строка 151

◆ add()

add ( string $addTime)

return clone object. original object not change

Аргументы
string$addTime
Возвращает
Date

См. определение в файле date.php строка 118

◆ createDateFromFormat()

static createDateFromFormat ( string $date,
string $format )
static
Аргументы
string$date
string$format
Возвращает
Date
Исключения

Bitrix\Main\ObjectException

См. определение в файле date.php строка 50

◆ createDateTimeFromFormat()

static createDateTimeFromFormat ( string $date,
string $format )
static
Аргументы
string$date
string$format
Возвращает
Date
Исключения

Bitrix\Main\ObjectException

См. определение в файле date.php строка 26

◆ format()

format ( string $format = null)
Аргументы
string | null$format
Возвращает
string

См. определение в файле date.php строка 107

◆ getDate()

getDate ( )
Возвращает
Type\Date

См. определение в файле date.php строка 191

◆ getDateTimeFormat()

getDateTimeFormat ( )
Возвращает
mixed|string

См. определение в файле date.php строка 266

◆ getDay()

getDay ( )
Возвращает
int

См. определение в файле date.php строка 231

◆ getFields()

getFields ( )
Возвращает
array

Переопределяет метод предка BaseProperty.

См. определение в файле date.php строка 73

◆ getHour()

getHour ( )
Возвращает
int

См. определение в файле date.php строка 199

◆ getMinutes()

getMinutes ( )
Возвращает
int

См. определение в файле date.php строка 207

◆ getMonth()

getMonth ( )
Возвращает
int

См. определение в файле date.php строка 223

◆ getSeconds()

getSeconds ( )
Возвращает
int

См. определение в файле date.php строка 215

◆ getTimestamp()

getTimestamp ( )
Возвращает
int

См. определение в файле date.php строка 129

◆ getYear()

getYear ( )
Возвращает
int

См. определение в файле date.php строка 239

◆ isDateTime()

isDateTime ( )
Возвращает
bool

См. определение в файле date.php строка 183

◆ isStartDay()

isStartDay ( )
Возвращает
bool

См. определение в файле date.php строка 247

◆ resetTime()

resetTime ( )
Возвращает
$this

См. определение в файле date.php строка 175

◆ setDateTimeFormat()

setDateTimeFormat ( string $format)
Аргументы
string$format
Возвращает
$this

См. определение в файле date.php строка 256

◆ setTime()

setTime ( int $hour,
int $minutes,
int $seconds )
Аргументы
int$hour
int$minutes
int$seconds
Возвращает
$this

См. определение в файле date.php строка 162

◆ setTimezone()

setTimezone ( DateTimeZone $timeZone)
Аргументы
DateTimeZone$timeZone
Возвращает
$this

См. определение в файле date.php строка 93

◆ sub()

sub ( string $subtractTime)

return clone object. original object not change

Аргументы
string$subtractTime
Возвращает
Date

См. определение в файле date.php строка 140

◆ toString()

toString ( )
Возвращает
string

Переопределяет метод предка BaseProperty.

См. определение в файле date.php строка 84