[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Using variable in let for different data
From: |
Stefan Monnier |
Subject: |
Re: Using variable in let for different data |
Date: |
Tue, 06 Dec 2022 20:07:08 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
> Is it acceptable to store the nanosecond from `split-string`, then to
> convert it to a number using the same variable name?
>
> (let* ( (tm (format-time-string "%FT%T.%N%z" nil tzone))
> (ns (nth 6 (split-string tm "[^[:digit:]]")))
> (ns (string-to-number ns)) ; nanoseconds
Yes. The second `ns` just shadows the first in the rest of the code.
Stefan