Results 1 to 3 of 3

Thread: Mental block: HH:MM:SS To Seconds please

  1. #1

    Thread Starter
    Fanatic Member crispin's Avatar
    Join Date
    Aug 2000
    Location
    2 clicks west of a Quirkafleeg...Cornwall, England
    Posts
    754

    Mental block: HH:MM:SS To Seconds please

    Having a mare of a morning....

    completely forgot how to turn HHMMSS into seconds e.g.

    02:00:00 = 7200


    cheers
    Crispin
    VB6 ENT SP5
    VB.NET
    W2K ADV SVR SP3
    WWW.BLOCKSOFT.CO.UK

    [Microsoft Basic: 1976-2001, RIP]

  2. #2
    New Member
    Join Date
    Jul 2002
    Posts
    13
    just use the timer function, returns no elapsed seconds since midnight

  3. #3
    I'm about to be a PowerPoster! kleinma's Avatar
    Join Date
    Nov 2001
    Location
    NJ - USA (Near NYC)
    Posts
    23,373
    well i know this works.. although it is still early here so my brain is not functioning too well right now.. there is probably a better way
    VB Code:
    1. Hour(TimeValue("02:00:00")) * 60 * 60) + (Minute(TimeValue("02:00:00")) * 60) + Second(TimeValue("02:00:00")

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