var secondsPastMidnight = now.getSeconds() + 60 *
            now.getMinutes() + 60 * 60 * now.getHours();