there are many ways that this can be acomplished

you can format $time() to return however u like.

so say we take $time(H) to return the current hour in 24hr mode .. * 60 to convert that to minits ..

now .. we add $time(n) which returns the current minits in the current hour .. so now we know how many total minits have past since 0:00:00 .. 60 seconds in a minit .. * 60 to return seconds, now add $time(s) which is the current seconds..

$calc(($time(H) * 60 + $time(n)) * 60 + $time(s))

anouther way would be to use $ctime() to get the ctime value of the current date at 00:00:00 .. and subtract that from the current ctime value (notice ctime is the numbe rof seconds past since jan 01 1970)

$calc($ctime - $ctime($time(mmm dd yyyy 00:00:00)))

$time(mmm dd yyyy 00:00:00) will return the current date, but set the time to 00:00:00, $ctime() of that value is the number of seconds that have past since jan 01 1970 00:00:00 to that time. so we subtract the current $ctime from that value and we get how many seconds have past since today at 00:00:00 to present

hope this was helpful.. there are a few other ways it could be done .. but i'd say these are probly the easiest ..

Cobra^