Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: EPOCHSECONDS
- X-seq: zsh-users 12123
- From: Peter Stephenson <pws@xxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: EPOCHSECONDS
- Date: Fri, 26 Oct 2007 10:25:10 +0100
- In-reply-to: <20071026011315.81340.qmail@xxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20071026011315.81340.qmail@xxxxxxxxxxx>
Atom Smasher wrote:
> would it be reasonable to expect EPOCHSECONDS (zsh/datetime) to allow the
> same `typeset -F` trick as SECONDS? is that feasible?
I don't know about reasonable, but it looks like it should be possible
since gettimeofday() provides that information. As zsh uses double
precision for floating point numbers it should be useful for a good few
centuries, too.
It needs some changes to the main shell since SECONDS is a special case
in the typeset code. It would be neater to make it a flag. I think
we're going to need a second flags word in the parameter structure
before too long.
pws
Messages sorted by:
Reverse Date,
Date,
Thread,
Author