Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: PATCH: zsh/datetime $EPOCHREALTIME



On 10 August 2011 13:21, Peter Stephenson <Peter.Stephenson@xxxxxxx> wrote:
> I had a need for the current time to better than one second precision in
> a shell function, which currently (as far as I can see) the shell
> doesn't do.  It does for SECONDS, but that's not useful for comparison
> with times used by the rest of the system.

Curious, I made a similar patch last week but didn't post it yet :)
Your patch looks better though, my variable just had the nanoseconds
part in it, and no docs. I did put a --disable-rt option in mine
though.

http://cgit.mika.l3ib.org/cgit/zsh-cvs/patch/?id=975f61fe05a0bd79fe3c4ad86cbc5a9c02eca202

-- 
Mikael Magnusson



Messages sorted by: Reverse Date, Date, Thread, Author