PHP Класс Morilog\Jalali\jDate

Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$dateTime DateTime
$formats array

Открытые методы

Метод Описание
__construct ( string | null $str = null, null $timezone = null )
ago ( ) : string
forge ( string | null $str = null, null $timezone = null )
format ( $format ) : boolean | string
getDateTime ( ) : DateTime | static
reforge ( string $str )
time ( ) : integer
until ( ) : boolean | string

Описание методов

__construct() публичный метод

public __construct ( string | null $str = null, null $timezone = null )
$str string | null
$timezone null

ago() публичный метод

public ago ( ) : string
Результат string

forge() публичный статический метод

public static forge ( string | null $str = null, null $timezone = null )
$str string | null
$timezone null

format() публичный метод

public format ( $format ) : boolean | string
$format
Результат boolean | string

getDateTime() публичный метод

public getDateTime ( ) : DateTime | static
Результат DateTime | static

reforge() публичный метод

public reforge ( string $str )
$str string

time() публичный метод

public time ( ) : integer
Результат integer

until() публичный метод

public until ( ) : boolean | string
Результат boolean | string

Описание свойств

$dateTime защищенное свойство

protected DateTime $dateTime
Результат DateTime

$formats защищенное свойство

protected array $formats
Результат array