PHP Class Camroncade\Timezone\Timezone

Show file Open project: camroncade/timezone

Public Properties

Property Type Description
$timezoneList

Public Methods

Method Description
convertFromUTC ( integer $timestamp, string $timezone, string $format = 'Y-m-d H:i:s' ) : string
convertToUTC ( integer $timestamp, string $timezone, string $format = 'Y-m-d H:i:s' ) : string
getTimezones ( ) : array
selectForm ( null $selected = null, null $placeholder = null, array $selectAttributes = [], array $optionAttributes = [] ) : string

Method Details

convertFromUTC() public method

public convertFromUTC ( integer $timestamp, string $timezone, string $format = 'Y-m-d H:i:s' ) : string
$timestamp integer
$timezone string
$format string
return string

convertToUTC() public method

public convertToUTC ( integer $timestamp, string $timezone, string $format = 'Y-m-d H:i:s' ) : string
$timestamp integer
$timezone string
$format string
return string

getTimezones() public method

public getTimezones ( ) : array
return array

selectForm() public method

public selectForm ( null $selected = null, null $placeholder = null, array $selectAttributes = [], array $optionAttributes = [] ) : string
$selected null
$placeholder null
$selectAttributes array
$optionAttributes array
return string

Property Details

$timezoneList public property

public $timezoneList