Results 1 to 7 of 7

Thread: Converting HH:MM:SS Into Seconds (And Reversed!)

Hybrid View

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Dec 2013
    Location
    Earth
    Posts
    230

    Re: Converting HH:MM:SS Into Seconds (And Reversed!)

    I prefer my code because HMSToSeconds can work in either format HH:MM:SS / MM:SS and the Hour part can have as many digits as needed.

  2. #2
    Sinecure devotee
    Join Date
    Aug 2013
    Location
    Southern Tier NY
    Posts
    6,599

    Re: Converting HH:MM:SS Into Seconds (And Reversed!)

    I guess you could always put your code in the "Else" case, if the TimeSpan.TryParse can't handle the format.

Tags for this Thread

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