title: calculating number of days between 2 days tcl
body: <p>I am calculating the number of days between two dates(the 2 dates are in seconds). The following gives me the coorect result but it gives me a negative value.</p>
  
  <p>For example -7.0. I am not sure why..</p>
  
  <p>Also can I remove the decimal point and display?        </p>
  
  <pre><code>        set interval [expr { $start_date - $get_date }]
          set days [expr { floor($interval / (60*60*24)) }]
          puts "Start Date: $start_date &lt;br&gt;"
          puts "Stop Date: $get_date &lt;br&gt;"
          puts "Total number of dates betwen 2 days: $days"
  </code></pre>