[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: New MILLISECONDS “special” variable?
From: |
Alan Dipert |
Subject: |
Re: New MILLISECONDS “special” variable? |
Date: |
Fri, 3 Nov 2017 08:13:50 -0700 |
Thanks all, EPOCHREALTIME sounds perfect. I’m also glad to have learned
about loadable modules. Really cool.
Alan
On Thu, Nov 2, 2017 at 5:43 PM, Chet Ramey <chet.ramey@case.edu> wrote:
> On 11/2/17 4:09 PM, DJ Mills wrote:
> >
> >
> > On Thu, Nov 2, 2017 at 3:35 PM, Chet Ramey <chet.ramey@case.edu
> > <mailto:chet.ramey@case.edu>> wrote:
> >
> > There is a special builtin in the devel branch version
> (EPOCHREALTIME) that
> > gives you the epoch time with microsecond resolution. It will be in
> the
> > next release.
> >
> >
> > Out of curiosity, is that functionality going to extend to printf
> '%(fmt)T'
> > ? A %N or
> > so would be lovely
>
> It depends on what strftime(3) provides; the T format just passes what's
> between the parens to strftime().
>
> --
> ``The lyf so short, the craft so long to lerne.'' - Chaucer
> ``Ars longa, vita brevis'' - Hippocrates
> Chet Ramey, UTech, CWRU chet@case.edu http://cnswww.cns.cwru.edu/~
> chet/
>