By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,706 Members | 1,452 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,706 IT Pros & Developers. It's quick & easy.

Converting timestamp into minutes and seconds

P: n/a
I am timing employees who take a test. I have the start time and end
time, which are unix epochs, and subtracing the start from the end
will give me a large number of seconds, for example 552.
I want to convert this into minutes and seconds.

How do I do this?

Thanks
Jul 17 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a

On 1-Apr-2004, wi************@yahoo.com (Frank) wrote:
I am timing employees who take a test. I have the start time and end
time, which are unix epochs, and subtracing the start from the end
will give me a large number of seconds, for example 552.
I want to convert this into minutes and seconds.


date()

--
Tom Thackrey
www.creative-light.com
tom (at) creative (dash) light (dot) com
do NOT send email to ja*********@willglen.net (it's reserved for spammers)
Jul 17 '05 #2

P: n/a
Tom Thackrey wrote:
On 1-Apr-2004, wi************@yahoo.com (Frank) wrote:
I want to convert [a number of seconds] into minutes and seconds.


date()


Reference at http://www.php.net/date
Or you could divide by 60 to get minutes,
and get that number modulo 60 for the seconds
--
USENET would be a better place if everybody read: : mail address :
http://www.catb.org/~esr/faqs/smart-questions.html : is valid for :
http://www.netmeister.org/news/learn2quote2.html : "text/plain" :
http://www.expita.com/nomime.html : to 10K bytes :
Jul 17 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.