On Tue, Oct 13, 2009 at 10:14:56PM +0100, David Kirkby wrote:
> 2009/10/13 Poul-Henning Kamp <p...@phk.freebsd.dk>:
> > In message <286f7bad0910130703v6680affbx95905a4400000...@mail.gmail.com>, 
> > 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

        FWIW it works on Darwin (MacOS X) which is BSD derived...



-- 
  Dave Emery N1PRE/AE, d...@dieconsulting.com  DIE Consulting, Weston, Mass 
02493
"An empty zombie mind with a forlorn barely readable weatherbeaten
'For Rent' sign still vainly flapping outside on the weed encrusted pole - in 
celebration of what could have been, but wasn't and is not to be now either."


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

Reply via email to