PHP 클래스 Morilog\Jalali\jDate

파일 보기 프로젝트 열기: morilog/jalali 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$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