From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.devel Subject: Re: fractional file timestamps in tramp-adb Date: Thu, 14 Feb 2019 21:23:00 +0100 Message-ID: <878syidsrf.fsf@gmx.de> References: <281200e8-bc54-e390-94f8-895345af524c@cs.ucla.edu> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="8555"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: Emacs development discussions To: Paul Eggert Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Feb 14 21:29:49 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1guNdl-00029J-A5 for ged-emacs-devel@m.gmane.org; Thu, 14 Feb 2019 21:29:49 +0100 Original-Received: from localhost ([127.0.0.1]:54634 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1guNdk-0006wd-8S for ged-emacs-devel@m.gmane.org; Thu, 14 Feb 2019 15:29:48 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:43726) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1guNXT-0002Jm-1r for emacs-devel@gnu.org; Thu, 14 Feb 2019 15:23:19 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1guNXS-0008SZ-6L for emacs-devel@gnu.org; Thu, 14 Feb 2019 15:23:19 -0500 Original-Received: from mout.gmx.net ([212.227.17.20]:57749) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1guNXR-0008Qm-Sw for emacs-devel@gnu.org; Thu, 14 Feb 2019 15:23:18 -0500 Original-Received: from detlef.gmx.de ([212.86.59.221]) by mail.gmx.com (mrgmx103 [212.227.17.168]) with ESMTPSA (Nemesis) id 0LpsmR-1hX1ft2UXn-00fmel; Thu, 14 Feb 2019 21:23:02 +0100 In-Reply-To: <281200e8-bc54-e390-94f8-895345af524c@cs.ucla.edu> (Paul Eggert's message of "Thu, 14 Feb 2019 10:43:30 -0800") X-Provags-ID: V03:K1:XpHQfiQhmrE0yF1qCLC0kmOUb6bgL3hZRg7nJ+DMMIZenhKXEE+ xW14GH1EeuCD4Ld98dNT/q4EVrFhOTrGs9Zj+Y8LV+naYCLAPWqYGAgCKY+FhvlGJV0ru8a sMr6wwbPvP/bVTtfrZmTtWea0olAzTBGX9XZTFueUCjzmh9F5Br9beg3KJ1GxMgKwFFlK+T 8OLB8iSDsXle6zSZZ9lrA== X-UI-Out-Filterresults: notjunk:1;V03:K0:24D62adgH5A=:XCbEujrcdVrt/CzRCBzhut uatZrpK3YxakSYAxNA3pV1d6Rjc5sjfmhP2sDgCdIe/M/uUYZXiAzhbxV5Ii1z/J4q93BJCCt CwXaIKTZmDGTrLqTpMtLGNDN4A8bS8J7XhD0MlapHaurOpXEZrJRzVcic6jY7X9uVn+UIFAYq s9tNjsqYSUhFetFpGEVF+GbHns0eS47Z1eHdzL4Hf3+Gen8jFgZzneghqeVkRfsT8cQy/B0jE Y5Q6bBnQqUCuhcHo2/A1MuA4mHC/TmIlHvX3txSc40K9XK/8az16iddBIRHRL4f8GCMJhMUhN h3zEYS9FFwrPLT6eVLTw48/c/VWAREbzCZdhg8I8o4cJp/DA+2Xkc1BST5AGlPg9cFpelXxtq RbovQ1WTKaWVvpIMALzt2SW3XsS+FSD28XVyZQzqCD+3sowmaW1nsruTnSmE5F4zUlr/nnFtX zI0nc674/a2DbMVq9yXpgDJt850q7dRqYri1L0OfCfHDbp6nyCff1jts/bGE1ty8BqMUzmwTO EA92aPQtDuVCktSVTcHnyzcLYNbJKSFtDvRl4fnKR/TEEs3im9OA2nN9Jx/qWpagXT3XZOGAw vTZ2lnrJ0U6umJwITniqF8FBQk7kGvvUwHQkAyvkscLAePWW36YoRPB7LaPfOmLqXqoovV4mi TsWro1UlncsHJT+z9ttDMycs00PtRgCcNvvkPs70Xhv4WSBmi6woRsuR+7MJ9CHwo132jg9PS wmGyDC/WsVSktTYseAJ2qI0WLz8pxrJmNdedcGX3CNx2YiE+kpdrVaOl9ZmuxM0WkmEjQbO1 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 212.227.17.20 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:233344 Archived-At: Paul Eggert writes: Hi Paul, > A downside of the new approach is that it assumes POSIX.1-2008 or > later, but I guess that's OK nowadays. An upside is that 'touch -d' > lets one specify the fractional part of the timestamp, and also lets > one specify that the timestamp is UTC by appending "Z" (I don't see > how the current code is arranging for UTC). So, how about the attached > followup patch? It would change the format to: > > touch -d 2019-02-14T18:23:17.318491822Z file It doesn't work, at least on my Galaxy S6: --8<---------------cut here---------------start------------->8--- $ touch -d 2019-02-14T18:23:17.318491822Z /sdcard/tmp/foo touch: bad '2019-02-14T18:23:17.318491822': Value too large for defined data type --8<---------------cut here---------------end--------------->8--- It runs Android 7.0, as identified by Tramp: --8<---------------cut here---------------start------------->8--- $ echo \"`getprop ro.product.model` `getprop ro.product.version` `getprop ro.build.version.release`\" "SM-G920F 7.0" --8<---------------cut here---------------end--------------->8--- OTOH, touch doesn't work at all on my device, because it isn't rooted: --8<---------------cut here---------------start------------->8--- $ touch -d 2019-02-14T18:23:17 /sdcard/tmp/foo touch: '/sdcard/tmp/foo': Operation not permitted --8<---------------cut here---------------end--------------->8--- But that's another story; I don't want to modify my device that way. Best regards, Michael.