27.12.2014, 02:28
I was wondering, is there a way to split decimal or float values? Something like:
Player is online for 3 hours and 5 minutes since he logged in, which is 12600 (stored) seconds. So 12600 divided by 3600 seconds (in an hour) is equal to 3.5 and now I want to display:
If there's a better way to do it then I'd like to know. Thank you!
Player is online for 3 hours and 5 minutes since he logged in, which is 12600 (stored) seconds. So 12600 divided by 3600 seconds (in an hour) is equal to 3.5 and now I want to display:
PHP код:
Name: John Doe - Online: 3 hours and 5 minutes


