getting the "seconds since epoch" in HP-UX kernel

Hi!
I'm writing a kernel module on HP-UX 11.23,
and I can't find how to get the �number of seconds since epoch� (midnight of Jan 1st 1970).
Actually I'm trying to find an equivalent to the user-space �time()� function...
I found that in Linux, one can access �xtime.tv_sec� in the kernel and get the desired value, but
I can't seem to find it in HP-UX.

Can anyone help?
Thanks!

Hi Nati,
I only know how to get the seconds and number of days... Pls see the script below.
Regards,
Ren�
--------------------------------------------------------------------------
#! /bin/ksh
#epoch sec after 1.1.1970
integer EPOCH=$(date -j -f "%a %b %d %T %Z %Y" "$(date)" "+%s")
DAYSSINCE1970=$(( EPOCH % 86400 ))
echo "DAYSSINCE1970=${DAYSSINCE1970}"