Converting timestamp into minutes and seconds

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Frank

    Converting timestamp into minutes and seconds

    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
  • Tom Thackrey

    #2
    Re: Converting timestamp into minutes and seconds


    On 1-Apr-2004, williamzim2000@ yahoo.com (Frank) wrote:
    [color=blue]
    > 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.[/color]

    date()

    --
    Tom Thackrey

    tom (at) creative (dash) light (dot) com
    do NOT send email to jamesbutler@wil lglen.net (it's reserved for spammers)

    Comment

    • Pedro Graca

      #3
      Re: Converting timestamp into minutes and seconds

      Tom Thackrey wrote:[color=blue]
      > On 1-Apr-2004, williamzim2000@ yahoo.com (Frank) wrote:[color=green]
      >> I want to convert [a number of seconds] into minutes and seconds.[/color]
      >
      > date()
      >[/color]

      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 :

      Comment

      Working...