extends |
Base |
---|
Class Secondstohuman This Filter converts seconds into a human readable time string 'hh:mm:ss'. This is mainly for converting a player's connected time into a readable string. Note that most game servers DO NOT return a player's connected time. Source (A2S) based games generally do but not always. This class can also be used to convert other time responses into readable time
Methods | ||
---|---|---|
public
|
__construct(array $options = [])
|
# |
public
|
apply(array $result, Server $server): array
|
# |
Methods inherited from GameQ\Filters\Base |
---|
getOptions(), |
Constants | |||
---|---|---|---|
public
|
OPTION_TIMEKEYS = 'timekeys'
|
# | |
public
|
RESULT_KEY = 'gq_%s_human'
|
# |
Properties | |||
---|---|---|---|
protected
|
array
|
$timeKeysDefault = ['time']
|
# |
Properties inherited from GameQ\Filters\Base |
---|
$options |