I have a $time
variable set some time in the future. In this format 2011-02-15 23:19:44
. Now I need to set time remaining in this format 00:00:10
.
If for example the $time is 1 hour, 3 minutes and 10 sec in the future. The format would be 01:03:10