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:59:14 +0200 Message-ID: <86cypejbvx.fsf@fastmail.fm> References: <26189.54659.295857.993689@woitok.gmail.com> <86o78yjd7q.fsf@fastmail.fm> <874jaq12su.fsf@web.de> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31400"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Michael Heerdegen To: Michael Heerdegen via Users list for the GNU Emacs text editor Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Wed May 22 13:59:52 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 1s9kdL-0007sX-0j for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 22 May 2024 13:59:52 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s9kcs-0000Gu-GZ; Wed, 22 May 2024 07:59:22 -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 1s9kcr-0000Gg-7y for help-gnu-emacs@gnu.org; Wed, 22 May 2024 07:59:21 -0400 Original-Received: from fout7-smtp.messagingengine.com ([103.168.172.150]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1s9kco-0007lV-BM for help-gnu-emacs@gnu.org; Wed, 22 May 2024 07:59:20 -0400 Original-Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailfout.nyi.internal (Postfix) with ESMTP id 72578138011C; Wed, 22 May 2024 07:59:17 -0400 (EDT) Original-Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Wed, 22 May 2024 07:59:17 -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=1716379157; x=1716465557; bh=8D9NFswYrL OgHgLexzXtqYNFIxd+Pnl8U7rutlX6UuA=; b=TiFYH9CNdH4LC58P+xyBzIIeSo zP5pSGnjTo/RYF6L5bHceiYd6bX7XfoumScWbJa15ql9dLof+KwN+Y9Jv6m85kEU UCZDxd05q0Cq4xVfWUHG/eNak8VLxF0VY7ZKTHbiX/0iZzZZc5n24L7CnAvuQek6 tgBAdQLVwhde4ckuJTimXJ8OUHQnsGJxyaKm6U5TAiWh4qXbC9ZSYwp/Vfvpxaho dN1OyocmWG1uvy27e/U+VMjU57/BHEV+M5gpA6DWMdWeALHNTadX00NKHo9oq4MZ G5kuj6b7xYqLQ7hZ1ini74T8cSJrriM2wboQKyPCwYfMp/pmMCSfzSJbOwJw== 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=1716379157; x=1716465557; bh=8D9NFswYrLOgHgLexzXtqYNFIxd+ Pnl8U7rutlX6UuA=; b=S+lbznk7j/smGCJBlwMzurDnr85CL5WgNsruuap8Z/j3 Z9SMKWnd+8kJWlD8h+z2PGLvgVRbiKUhAtd6syk6RmTk5hCwVzvJT5NW6im0vZC+ Dl5MqZIhpRZ+ClFjDH09t1WGDxcroXBMTjd0Vryaf5s56YSJM9C+/xaw+KLU7xJ/ 6WR+Zr8gAWQje8mL5zTv01mTgDo2RA+RMQYf9BApkHZyzgIdRfqrQ4dmAis1KH7B fcMccA+np0MNSa0iqhc4QfffDr/TBYzFmT/XSRfjWGI0QqZ2dHPg1wgxOXdaWF2w m8nKZoFf4c7rkggMEHhhyzpjX0cCSkV9fd8bw9amJg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrvdeigedgtdekucetufdoteggodetrfdotf 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:59:16 -0400 (EDT) In-Reply-To: <874jaq12su.fsf@web.de> (Michael Heerdegen via Users list for the's message of "Wed, 22 May 2024 13:52:49 +0200") Received-SPF: pass client-ip=103.168.172.150; envelope-from=joostkremers@fastmail.fm; helo=fout7-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_DNSWL_LOW=-0.7, 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:146794 Archived-At: On Wed, May 22 2024, Michael Heerdegen via Users list for the GNU Emacs text editor wrote: > Joost Kremers writes: > >> You'll want a combination of `current-time` and >> `format-time-string`. See (info "(elisp) Time of Day") and (info >> "(elisp) Time Parsing"), respectively. > > Or `current-time-string'. Possibly, but IIUC it won't give you the time in the format that the OP is looking for. -- Joost Kremers Life has its moments