title: How do I add time to the current countdown clock using VB6 ? When I try to add additional minutes it reverts back to orignal time.
body: <p>This is a code snippet inside a loop. This is a countdown clock. </p>
  
  <p>How do I add additional time to the countdown clock?</p>
  
  <p>I don't understand why I can't just add additional minutes or hours
  by saying "minutes = minutes + 20" for example. I am new at VB6. Sorry!</p>
  
  <pre><code>Dim time_now As Date
  Dim hours As Long
  Dim minutes As Long
  Dim seconds As Long
  
  time_now = Now
  
  If time_now &gt;= m_StopTime Then
  
      tmrWait.Enabled = False
      lblRemaining.Caption = "0:00:00" 'Time has reached 0. Boom!
  Else
  </code></pre>
  
  <p>Here we divide the seconds into seconds, mins, hours</p>
  
  <pre><code>    seconds = DateDiff("s", time_now, m_StopTime)
  
      minutes = seconds \ 60
      seconds = seconds - minutes * 60
      hours = minutes \ 60
      minutes = minutes - hours * 60
  </code></pre>
  
  <p>Now we display the result</p>
  
  <pre><code>    lblRemaining.Caption = _
          Format$(hours) &amp; ":" &amp; _
          Format$(minutes, "00") &amp; ":" &amp; _
          Format$(seconds, "00")
  </code></pre>
  
  <p>end if</p>