[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Storing hours, minutes, seconds, and nanoseconds from format-time-st
From: |
Heime |
Subject: |
Re: Storing hours, minutes, seconds, and nanoseconds from format-time-string |
Date: |
Tue, 06 Dec 2022 12:07:05 +0000 |
Am getting (void-function string-split) on "string-split".
Sent with Proton Mail secure email.
------- Original Message -------
On Tuesday, December 6th, 2022 at 10:19 AM, Stephen Berman
<stephen.berman@gmx.net> wrote:
> On Tue, 06 Dec 2022 09:23:24 +0000 Heime heimeborgia@protonmail.com wrote:
>
> > I am getting the time using the format "%FT%T.%N%z".
> >
> > (format-time-string "%FT%T.%N%z" nil tzone)
> >
> > From the result I need to get the hours, minutes, seconds,
> > and nanoseconds to store them into four numeric variables.
> >
> > How can I do this from the output of "format-time-string".
>
>
> You can pass the output to string-split, splitting on non-digits,
> i.e. using "[^[:digit:]]" as the value of the SEPARATORS argument.
>
> Steve Berman
- Storing hours, minutes, seconds, and nanoseconds from format-time-string, Heime, 2022/12/06
- Re: Storing hours, minutes, seconds, and nanoseconds from format-time-string, Stephen Berman, 2022/12/06
- Re: Storing hours, minutes, seconds, and nanoseconds from format-time-string,
Heime <=
- Re: Storing hours, minutes, seconds, and nanoseconds from format-time-string, Stephen Berman, 2022/12/06
- Re: Storing hours, minutes, seconds, and nanoseconds from format-time-string, Emanuel Berg, 2022/12/06
- Re: Storing hours, minutes, seconds, and nanoseconds from format-time-string, Thibaut Verron, 2022/12/06
- Re: Storing hours, minutes, seconds, and nanoseconds from format-time-string, Thibaut Verron, 2022/12/06
- Prev by Date:
Re: Storing hours, minutes, seconds, and nanoseconds from format-time-string
- Next by Date:
Re: Storing hours, minutes, seconds, and nanoseconds from format-time-string
- Previous by thread:
Re: Storing hours, minutes, seconds, and nanoseconds from format-time-string
- Next by thread:
Re: Storing hours, minutes, seconds, and nanoseconds from format-time-string
- Index(es):