PHP Class Morilog\Jalali\jDate

Datei anzeigen Open project: morilog/jalali Class Usage Examples

Protected Properties

Property Type Description
$dateTime DateTime
$formats array

Public Methods

Method Description
__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

Method Details

__construct() public method

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

ago() public method

public ago ( ) : string
return string

forge() public static method

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

format() public method

public format ( $format ) : boolean | string
$format
return boolean | string

getDateTime() public method

public getDateTime ( ) : DateTime | static
return DateTime | static

reforge() public method

public reforge ( string $str )
$str string

time() public method

public time ( ) : integer
return integer

until() public method

public until ( ) : boolean | string
return boolean | string

Property Details

$dateTime protected_oe property

protected DateTime $dateTime
return DateTime

$formats protected_oe property

protected array $formats
return array