Jump to content

[SOLVED] time


ghqwerty

Recommended Posts

i am soo confused. i am trying to devise a formula to work out how many minutes are in a lengthof time and store that in a variable and then store the leftover as a variable

 

eg

$timetowait = 621;

//work out how many minutes (lots of 60) are in it in this case 10

$minutes = 10;

//work out leftover

$seconds = 21;

 

 

however i cant think of a way to do this

Link to comment
https://forums.phpfreaks.com/topic/130269-solved-time/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.