Results 1 to 3 of 3

Thread: Seconds/Minutes

  1. #1

    Thread Starter
    Fanatic Member Wynd's Avatar
    Join Date
    Dec 2000
    Location
    In a bar frequented by colossal death robots
    Posts
    772

    Seconds/Minutes

    If i want to get the number of minutes and seconds since the computer was turned on, how can I get it to do the minutes and seconds in the minute? Like right now for me it says 3030 seconds, but how can I get 50 minutes, 30 seconds out of that?
    Alcohol & calculus don't mix.
    Never drink & derive.

  2. #2
    The Devil crptcblade's Avatar
    Join Date
    Aug 2000
    Location
    Quetzalshacatenango
    Posts
    9,091
    however you got 3030 seconds...
    PHP Code:
    long lngSeconds 3030 60//3030 will be the real value
    long lngMinutes  = (3030-lngSeconds)/60;  //minutes 
    try that

    Laugh, and the world laughs with you. Cry, and you just water down your vodka.


    Take credit, not responsibility

  3. #3
    PowerPoster abdul's Avatar
    Join Date
    Dec 2000
    Location
    Ontario,Canada
    Posts
    2,827
    Baaaaaaaaah

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width