2009/10/13 Poul-Henning Kamp <[email protected]>:
> In message <[email protected]>, 
> David
>  Kirkby writes:
>>I've asked this on comp.unix.shell, but never got a 100% satsifactory
>>answer. Perhaps someone here might know.
>>
>>Does anyone know how to get the number of seconds since 1/1/1970 on a
>>Unix system using the shell - not compiling C code. I can't assume the
>>computer has perl, python or a C compiler.
>
> On FreeBSD you can use the strftime facility in date(1):
>
>        $ date +%s
>        1255442977
>
> Poul-Henning
But it does not work on Solaris or HP-UX

_______________________________________________
time-nuts mailing list -- [email protected]
To unsubscribe, go to https://www.febo.com/cgi-bin/mailman/listinfo/time-nuts
and follow the instructions there.

Reply via email to