From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: tomas@tuxteam.de Newsgroups: gmane.emacs.help Subject: Re: How to format this type of timestamp Date: Sun, 4 Oct 2020 17:01:18 +0200 Message-ID: <20201004150117.GA9423@tuxteam.de> References: <20201003115510.GH32715@protected.rcdrun.com> <83pn5zfqik.fsf@gnu.org> <20201004042834.GJ32715@protected.rcdrun.com> <20201004074733.GA25970@tuxteam.de> <20201004140803.GB15516@protected.rcdrun.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="UugvWAfsgieZRqgk" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34673"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mutt/1.5.21 (2010-09-15) Cc: help-gnu-emacs@gnu.org To: Jean Louis Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sun Oct 04 17:06:34 2020 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 1kP5ar-0008xi-PQ for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 04 Oct 2020 17:06:33 +0200 Original-Received: from localhost ([::1]:56810 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kP5aq-00052N-R3 for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 04 Oct 2020 11:06:32 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47726) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kP5W0-0002ph-S4 for help-gnu-emacs@gnu.org; Sun, 04 Oct 2020 11:01:33 -0400 Original-Received: from mail.tuxteam.de ([5.199.139.25]:44333) by eggs.gnu.org with esmtps (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.90_1) (envelope-from ) id 1kP5Vr-00024t-9B for help-gnu-emacs@gnu.org; Sun, 04 Oct 2020 11:01:32 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tuxteam.de; s=mail; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date; bh=zoRmGGxFOAVBLDZKfmywYjMnIaLPNggDyehmEb4yeN0=; b=tNrE3QZft0Ab5zGrqwPW4qOcBUd3m5zi9EsqYVOS9AQ/E8bZVFyTU0uD96/rVQ5fIC1lfA+fTksZnGZ0yZsz2XSsGybmY8RnFqv8G/xmYklOPgVRJg3yxa1ErOLNWvmGCRS4anB7btIpuB60ie0reKpkT5le4fWZJPR1aNo8kfXVyLG30PzpCY2mBzPK66ylKDUUAhFbz2zk8RpEgdt4UQP0T5v0hT5Cm8Jq0tKC1tL5A1UbklDLufE2XHYg6pwQepYvOgMIcH/rKdYkxAcEahGlm2vTAodw9EzWGbQU4KOghNM6r9cpdFUgapAU9T8Num1fNsI4RaShdhZF2C+9FA==; Original-Received: from tomas by mail.tuxteam.de with local (Exim 4.80) (envelope-from ) id 1kP5Vm-0002Vd-1e; Sun, 04 Oct 2020 17:01:18 +0200 Content-Disposition: inline In-Reply-To: <20201004140803.GB15516@protected.rcdrun.com> Received-SPF: pass client-ip=5.199.139.25; envelope-from=tomas@tuxteam.de; helo=mail.tuxteam.de X-detected-operating-system: by eggs.gnu.org: First seen = 2020/10/04 11:01:21 X-ACL-Warn: Detected OS = Linux 3.1-3.10 [fuzzy] 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, SPF_HELO_NONE=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.23 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" Xref: news.gmane.io gmane.emacs.help:124283 Archived-At: --UugvWAfsgieZRqgk Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Oct 04, 2020 at 05:08:03PM +0300, Jean Louis wrote: > * tomas@tuxteam.de [2020-10-04 10:48]: [...] > > So this might well be a Javaism. >=20 > Then I guess, this could be the way to get this type of time: > 2020-10-02 20:24:37.664704+03 >=20 > (format-time-string "%F %T.%6N+03" (/ 1599549641372 1000.0)) >=20 > If there is anything to improve, let me know. If you don't care to be precise about timezones, that might do the job ;-) Cheers - t --UugvWAfsgieZRqgk Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iEYEARECAAYFAl95470ACgkQBcgs9XrR2kZi6QCfQQUnMx1GIDUp90h9SbdZ6T2r 0VQAmwZ0KZcmtZ7lAkywP2CSXdPIbQwl =CR4z -----END PGP SIGNATURE----- --UugvWAfsgieZRqgk--