From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Heime Newsgroups: gmane.emacs.help Subject: Re: Storing hours, minutes, seconds, and nanoseconds from format-time-string Date: Tue, 06 Dec 2022 12:07:05 +0000 Message-ID: <-psrY2wYK8HlUfRq4IKqzum__jOD1lvFD9wlIWGpK1b2tXmBMM5Ym_mRV3j5tLKVV2ilMYPKu-BhiGoVcQsU-X3cq95PqfNiDSIxEgT70yo=@protonmail.com> References: <87pmcw6dhc.fsf@gmx.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8313"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Heime via Users list for the GNU Emacs text editor To: Stephen Berman Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Tue Dec 06 13:24:31 2022 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1p2Wzv-0001xe-Hb for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 06 Dec 2022 13:24:31 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p2WjS-0007nt-PQ; Tue, 06 Dec 2022 07:07:30 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p2WjR-0007nY-EA for help-gnu-emacs@gnu.org; Tue, 06 Dec 2022 07:07:29 -0500 Original-Received: from mail-40137.protonmail.ch ([185.70.40.137]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p2WjG-0004X3-J0 for help-gnu-emacs@gnu.org; Tue, 06 Dec 2022 07:07:29 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1670328435; x=1670587635; bh=C4zSLGsLiRKFHXJXJE2esag2JEd562bbgn2hHFxuPGw=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=osLgD/7OkIc7NDivgPJciCIJuNPCqzNLCkiXMMtbyXKfaCMGpZTPgYKn0/k/TSuvs yJ6fy7qsPlZwo1daEjk6ceHg7hXpJAYZbAK3vPB0fkMJGNFG/Qb2+jGQLkFz7NUVr3 e9TNWdxBBNuGOAKrHEG3Euq1iKfZeV12TiwxwL/0E8UF+gBvlDJb9CtgqhuZPYgFkz 0NBBtqfK0fh8eV0KVbBvS6el/BHhrbmBR4nd6BIb1fishImNbQCUcZ5A6F3w1dH3+B NHL3zlB9PgDhUyZAkJJjDhJy4k6+gHxcJk14TpbpRYCwDfkF5KvGGXd8drhCvnM13R GCTL6unbXyFnA== In-Reply-To: <87pmcw6dhc.fsf@gmx.net> Feedback-ID: 57735886:user:proton Received-SPF: pass client-ip=185.70.40.137; envelope-from=heimeborgia@protonmail.com; helo=mail-40137.protonmail.ch X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:141434 Archived-At: 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 wrote: > On Tue, 06 Dec 2022 09:23:24 +0000 Heime heimeborgia@protonmail.com wrote= : >=20 > > I am getting the time using the format "%FT%T.%N%z". > >=20 > > (format-time-string "%FT%T.%N%z" nil tzone) > >=20 > > From the result I need to get the hours, minutes, seconds, > > and nanoseconds to store them into four numeric variables. > >=20 > > How can I do this from the output of "format-time-string". >=20 >=20 > You can pass the output to string-split, splitting on non-digits, > i.e. using "[^[:digit:]]" as the value of the SEPARATORS argument. >=20 > Steve Berman