How to get the current seconds in the current month?
<p>I am trying to calculate the current second in the current month, but I'm having trouble creating a simple function that does it.</p>

<p>My best guess involves using getTime() - the current milliseconds since January 1 1970 - and then subtracting X, where X is the number of milliseconds up to the end of the previous month. </p>

<p>Can you help me think of a better way to do this? </p>

<p>Thank you very much for your help.</p>

<p>Cheers,</p>
