unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Michael Albinus <michael.albinus@gmx.de>
To: Paul Eggert <eggert@cs.ucla.edu>
Cc: Emacs development discussions <emacs-devel@gnu.org>
Subject: Re: fractional file timestamps in tramp-adb
Date: Thu, 14 Feb 2019 21:23:00 +0100	[thread overview]
Message-ID: <878syidsrf.fsf@gmx.de> (raw)
In-Reply-To: <281200e8-bc54-e390-94f8-895345af524c@cs.ucla.edu> (Paul Eggert's message of "Thu, 14 Feb 2019 10:43:30 -0800")

Paul Eggert <eggert@cs.ucla.edu> 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.



  reply	other threads:[~2019-02-14 20:23 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-02-14 18:43 fractional file timestamps in tramp-adb Paul Eggert
2019-02-14 20:23 ` Michael Albinus [this message]
2019-02-14 23:41   ` Paul Eggert
2019-02-15  8:11     ` Michael Albinus
2019-02-15 22:37       ` Paul Eggert
2019-02-16  8:33         ` Michael Albinus

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=878syidsrf.fsf@gmx.de \
    --to=michael.albinus@gmx.de \
    --cc=eggert@cs.ucla.edu \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).