Click to See Complete Forum and Search --> : elapsed time


DonMArtin
12-01-2003, 06:04 PM
Dear Programmers,

I want to show the visitors the elapsed time from a previously set date (by me) and their time of visit. The format should be days, hours, minutes, seconds.
I understand that I can get both timestamps with mktime() and time(). But I don't know how to handle the difference and how to recovert it to the wanted format.

Any ideas?

Thanks Alex

pyro
12-01-2003, 08:00 PM
If your previously set time is a timestamp, it will be simple. Is it? If not, it will be a bit harder, but not much. Just need to know the format of the date.

gizmo
12-03-2003, 12:37 PM
A simiiar question has been asked before, try the search facility of the php topics