[?] Teamspeak Server Query | Clientinfo Idle Time

InSide24

New Member
Joined
Feb 3, 2019
Messages
13
Reaction score
11
Points
9
Hello, i have some Questions regarding Server Query.

I get the Idle time + Channels of Users over PHP but the Idle time is just an integer, how should i now transform that in a time?

Screenshot:
 

kalle

high minded
Contributor
Joined
Oct 28, 2015
Messages
411
Reaction score
253
Points
178
I didnt look at the code but I suppose that numbers are seconds.
For converting you can use native function

gmdate("H:i:s", $seconds);
Hope you understand.

 

InSide24

New Member
Joined
Feb 3, 2019
Messages
13
Reaction score
11
Points
9
Nope that are not seconds allready tried that, also tried to convert it from timestamp to time format.

Added a gif where i reload every second.

Gif:
 

InSide24

New Member
Joined
Feb 3, 2019
Messages
13
Reaction score
11
Points
9
Okay i found it out, they use
Milliseconds
 
Top