From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jean Louis Newsgroups: gmane.emacs.help Subject: Re: How to format this type of timestamp Date: Sun, 4 Oct 2020 17:08:03 +0300 Message-ID: <20201004140803.GB15516@protected.rcdrun.com> References: <20201003115510.GH32715@protected.rcdrun.com> <83pn5zfqik.fsf@gnu.org> <20201004042834.GJ32715@protected.rcdrun.com> <20201004074733.GA25970@tuxteam.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32314"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mutt/1.14.0 (2020-05-02) Cc: help-gnu-emacs@gnu.org To: tomas@tuxteam.de Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sun Oct 04 16:08:39 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 1kP4gp-0008L6-Kc for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 04 Oct 2020 16:08:39 +0200 Original-Received: from localhost ([::1]:33772 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kP4go-0007rR-Lw for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 04 Oct 2020 10:08:38 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41240) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kP4gP-0007po-8t for help-gnu-emacs@gnu.org; Sun, 04 Oct 2020 10:08:13 -0400 Original-Received: from stw1.rcdrun.com ([217.170.207.13]:42095) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kP4gM-0004uS-9j for help-gnu-emacs@gnu.org; Sun, 04 Oct 2020 10:08:12 -0400 Original-Received: from localhost ([::ffff:197.157.34.178]) (AUTH: PLAIN securesender, TLS: TLS1.2,256bits,ECDHE_RSA_AES_256_GCM_SHA384) by stw1.rcdrun.com with ESMTPSA id 000000000005A13D.000000005F79D746.0000035D; Sun, 04 Oct 2020 07:08:06 -0700 Content-Disposition: inline In-Reply-To: <20201004074733.GA25970@tuxteam.de> Received-SPF: pass client-ip=217.170.207.13; envelope-from=bugs@gnu.support; helo=stw1.rcdrun.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/10/04 04:25:23 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, 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.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:124280 Archived-At: * tomas@tuxteam.de [2020-10-04 10:48]: > On Sun, Oct 04, 2020 at 07:28:34AM +0300, Jean Louis wrote: > > * Eli Zaretskii [2020-10-03 15:23]: > > [...] > > > > Where did you get the value 1599712637489? What is its semantics? > > [...] > > > > (format-time-string "%c" 1599712637.489) > > > > > > where I divided the value you provided by 1000. > > > > Thank you, that is what I also search, how did developer made that > > number. It is export of SMS from encrypted SMS application named > > Silence. Maybe I will get answer soon. > > FWIW timestamps as "milliseconds from UNIX epoch" as an integral type > is one of the traditional Java time representations (these days they > prefer to slap the whole OO abstraction cream cake on top ;-) > > So this might well be a Javaism. Then I guess, this could be the way to get this type of time: 2020-10-02 20:24:37.664704+03 (format-time-string "%F %T.%6N+03" (/ 1599549641372 1000.0)) If there is anything to improve, let me know. Thank you. Jean