From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Joost Kremers Newsgroups: gmane.emacs.help Subject: Re: Get current date and time as a string? Date: Wed, 22 May 2024 13:30:33 +0200 Message-ID: <86o78yjd7q.fsf@fastmail.fm> References: <26189.54659.295857.993689@woitok.gmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32593"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Help-Gnu-Emacs@Gnu.Org To: Dr Rainer Woitok Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Wed May 22 13:31:38 2024 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 1s9kC1-0008DD-FH for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 22 May 2024 13:31:38 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s9kBK-0003Zl-Qg; Wed, 22 May 2024 07:30:54 -0400 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 1s9kBI-0003ZM-CB for Help-Gnu-Emacs@Gnu.Org; Wed, 22 May 2024 07:30:52 -0400 Original-Received: from fhigh5-smtp.messagingengine.com ([103.168.172.156]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1s9kB4-0002Jx-Vd for Help-Gnu-Emacs@Gnu.Org; Wed, 22 May 2024 07:30:52 -0400 Original-Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailfhigh.nyi.internal (Postfix) with ESMTP id E2ABC11401D9; Wed, 22 May 2024 07:30:37 -0400 (EDT) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Wed, 22 May 2024 07:30:37 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.fm; h= cc:cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm1; t=1716377437; x=1716463837; bh=eT3HkmdkeF KqySSGZ40OZWDDPwsrL8+JCjkqJ+UMLXA=; b=Ul4js+fZIl+6N4Yfj2H3D8sQsH GcpUhm7Oam4ddVQCPb+ExT/Gq6w7fsP6Nrj6VdEbeHqDt2a8wp5OaaiEWeaIxNqC 3FBM/Eg3G6fIOwp6pkcH1FsYLd19+1OLpK1RG0ScmzS9zTGwVVeJyb+SWK4csv2V xU9XOTxbLAF6DTs1pYUgvxiXXxjdATL/Jd1fwA6kwB2h4ItH41Iq/XeX94Z2EYdJ v1L05CZG4HTHWqgDRRHxDuExeoNw7dnLqsOW1JhxfT9VV+pXZxw00hAHnZxKM/1T WrIg4Sk+YRbtww1B/AhMPFIgZXS5NlrNeml7JpbkfBW8R5I87y16SH390Irg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; t=1716377437; x=1716463837; bh=eT3HkmdkeFKqySSGZ40OZWDDPwsr L8+JCjkqJ+UMLXA=; b=MUkbB41UQ3c4bzMkyRL5r48Vbd55JdNIQxrZrluei6So B9Dr+M+CnV/CwTmvzUAJTtVeiQmtqICI8RCkDqZAbfRz/djIyGHMoMeBQCUAPt7r P6HLIemRsKhVaGwZ08Tvry1PxTVJebtlObPrKqxWKWl/G4ktnS9p41B+M86kB3wD GqYx0HS/SnInNsHMN5/FtRor2cfsRR7Cnuz6BPqRUkB9SW2uHjzf4TrGUYTvnl5b pG/HVcocsdr4AygUkzOgxXqcNAvjgf8h1U/qWMpq5H6x5/7/t0jrR9S4SvxYIsL1 sUaTSRQzc+y3Odb7lFfcA8DI6Tii8x3yY8Z29+OlFA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrvdeigedgtdehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvvefujghffffkgggtsehttdertddttddtnecuhfhrohhmpeflohhoshht ucfmrhgvmhgvrhhsuceojhhoohhsthhkrhgvmhgvrhhssehfrghsthhmrghilhdrfhhmqe enucggtffrrghtthgvrhhnpeekveelieeuleettdefueegvddukefhgeevleduveeileet keeggfekhfeuffffieenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrih hlfhhrohhmpehjohhoshhtkhhrvghmvghrshesfhgrshhtmhgrihhlrdhfmh X-ME-Proxy: Feedback-ID: ie15541ac:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 22 May 2024 07:30:36 -0400 (EDT) In-Reply-To: <26189.54659.295857.993689@woitok.gmail.com> (Rainer Woitok's message of "Wed, 22 May 2024 13:22:43 +0200") Received-SPF: pass client-ip=103.168.172.156; envelope-from=joostkremers@fastmail.fm; helo=fhigh5-smtp.messagingengine.com 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, 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:146792 Archived-At: On Wed, May 22 2024, Dr Rainer Woitok wrote: > Greetings, > > after having unsuccessfully used "C-h a" to find a command returning the > current date and time (preferably as "YYYY-MM-DDThh:mm:ss") I'm now ask- > ing the combined wisdom of this list: is there such a thing? You'll want a combination of `current-time` and `format-time-string`. See (info "(elisp) Time of Day") and (info "(elisp) Time Parsing"), respectively. HTH -- Joost Kremers Life has its moments