title: Get current time of day in seconds
body: <p>Is there a way to get the current time of the day in seconds? Notice I am asking the time of the day, not UTC time.</p>
  
  <p>What I want is a value (in seconds) between the range <strong>0 - 86,400</strong> (12:00AM - 11:59PM). I'm working on an app that works on a daily basis, and when the day ends, the time (in seconds) should restart back at <code>0</code> again. </p>
  
  <p>So let's say it's <code>10:00AM</code>. I should be getting <strong>36,000</strong> seconds, and if my time is <code>5:00PM</code>, I should be getting <strong>61,200</strong> seconds.</p>
  
  <p>PS: I do not know the time before hand. The program will figure it out by itself using a <code>currentTime()</code> function.</p>