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 07:28:34 +0300 Message-ID: <20201004042834.GJ32715@protected.rcdrun.com> References: <20201003115510.GH32715@protected.rcdrun.com> <83pn5zfqik.fsf@gnu.org> 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="40591"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mutt/1.14.0 (2020-05-02) Cc: help-gnu-emacs@gnu.org To: Eli Zaretskii Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sun Oct 04 06:29:41 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 1kOveW-000ASO-Pf for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 04 Oct 2020 06:29:40 +0200 Original-Received: from localhost ([::1]:42058 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kOveV-0001kX-No for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 04 Oct 2020 00:29:39 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60734) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kOve9-0001j8-Fc for help-gnu-emacs@gnu.org; Sun, 04 Oct 2020 00:29:17 -0400 Original-Received: from stw1.rcdrun.com ([217.170.207.13]:43697) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kOve6-0006kr-TE; Sun, 04 Oct 2020 00:29:16 -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.000000005F794F76.00005862; Sat, 03 Oct 2020 21:28:37 -0700 Content-Disposition: inline In-Reply-To: <83pn5zfqik.fsf@gnu.org> 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 00:28:39 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:124264 Archived-At: * Eli Zaretskii [2020-10-03 15:23]: > > Date: Sat, 3 Oct 2020 14:55:10 +0300 > > From: Jean Louis > > > > I would like to format this: (date . "1599712637489") to something > > like 2020-10-02 20:06:41.119184+03 > > > > Here it works, I get: Saturday, March 24, 2018 6:08:38.010 PM > > https://www.epochconverter.com/ > > > > That is probably the right time. > > > > Which function should I use, I tried format-time-string, but is not > > working. > > Where did you get the value 1599712637489? What is its semantics? > The number of seconds since the epoch is several orders of magnitude > smaller. E.g., this works: > > (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. Thank you. Jean