[Cialug] Seconds only timestamp

kristau kristau at gmail.com
Wed Jun 18 12:57:42 CDT 2014


The following, perhaps?

date +%S


On Wed, Jun 18, 2014 at 11:54 AM, Dave Weis <djweis at sjdjweis.com> wrote:

> Number of seconds since when?
>
>
>
> On Sun, Jun 15, 2014 at 6:52 PM, Brian Wood <woodbrian77 at gmail.com> wrote:
>
> > Is there an api that returns just the number of seconds?  Currently
> > I'm using clock_gettime and  CLOCK_REALTIME_COARSE.  The
> > docs say that CLOCK_REALTIME_COARSE is;
> >
> > "A faster but less precise version of CLOCK_REALTIME."
> >
> > I don't know how coarse it is, but I only care about the seconds.
> >
> > Thanks.
> >
> > --
> > Brian
> > Ebenezer Enterprises - So far G-d has helped us.
> > http://webEbenezer.net
> > _______________________________________________
> > Cialug mailing list
> > Cialug at cialug.org
> > http://cialug.org/mailman/listinfo/cialug
> >
> _______________________________________________
> Cialug mailing list
> Cialug at cialug.org
> http://cialug.org/mailman/listinfo/cialug
>



-- 
Tired programmer
Coding late into the night
The core dump follows


More information about the Cialug mailing list