Property | Type | Description | |
---|---|---|---|
$phonePrefixMap |
Method | Description | |
---|---|---|
__construct ( $map ) | ||
lookupCountryLevelTimeZonesForNumber ( |
Returns the list of time zones {@code number}'s calling country code corresponds to. | |
lookupTimeZonesForNumber ( |
As per {@link #lookupTimeZonesForNumber(long)}, but receives the number as a PhoneNumber instead of a long. |
Method | Description | |
---|---|---|
lookupTimeZonesForNumberKey ( $key ) : array | Returns the list of time zones {@code key} corresponds to. | |
tokenizeRawOutputString ( $timezonesString ) : array | Split {@code timezonesString} into all the time zones that are part of it. |
public lookupCountryLevelTimeZonesForNumber ( |
||
$number | PhoneNumber the phone number to look up | |
return | array | the list of corresponding time zones |
public lookupTimeZonesForNumber ( |
||
$number | PhoneNumber the phone number to look up | |
return | array | the list of corresponding time zones |
{@code key} could be the calling country code and the full significant number of a certain number, or it could be just a phone-number prefix. For example, the full number 16502530000 (from the phone-number +1 650 253 0000) is a valid input. Also, any of its prefixes, such as 16502, is also valid.
protected lookupTimeZonesForNumberKey ( $key ) : array | ||
$key | int the key to look up | |
return | array | the list of corresponding time zones |
protected tokenizeRawOutputString ( $timezonesString ) : array | ||
$timezonesString | String | |
return | array |