9front - general discussion about 9front
 help / color / mirror / Atom feed
From: dave <dave@naffnet.org.uk>
To: 9front@9front.org
Cc: 有澤健治 <karisawa@gmail.com>
Subject: Re: [9front] time info of dos file
Date: Fri, 24 Nov 2023 13:15:11 +0000	[thread overview]
Message-ID: <sign.069278fc83.fab008ddd2a71cb5362fdc7054a4bd3a@naffnet.org.uk> (raw)
In-Reply-To: <CAN4cm2vOySNYD15f190o2DRxER=AzRHmsR7-DJpRAL0sNndRBw@mail.gmail.com>

On 2023-11-24 11:27, 有澤健治 wrote:
> Hello
> 
> I have a trouble with mtime of dos files
> 
> Hera is my file server running on 9front.
> A dos file in usb disk is mounted on /n/dos.
> /n/dox/x and /tmp/x is touched at the same time.
> However my system shows different mtime.
> How to fix this problem?
> 
> 
> hera# touch /n/dos/x /tmp/x; ls -l /n/dos/x /tmp/x; date
> --rw-rw-rw- M 372782 bill    trog       0 Nov 25 03:48 /n/dos/x
> --rw-r--r-- M     24 arisawa arisawa 1051 Nov 24 18:48 /tmp/x
> Fri Nov 24 18:48:32 JST 2023
> hera#
> hera# mtime /n/dos/x; mtime /tmp/x
>  1700851712 /n/dos/x
>  1700819312 /tmp/x
> hera#
> 
> Ntote: date command shows Japanese local time.
> 
> Kenji Arisawa

FAT filesystems store the timestamp in local time 
(https://learn.microsoft.com/en-us/windows/win32/sysinfo/file-times) 
other things will store this in UTC

Thus  (1700851712 - 1700819312) / 3600 = 9 (Japan is UTC + 9)

Dave


  reply	other threads:[~2023-11-24 13:19 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-11-24 11:27 有澤健治
2023-11-24 13:15 ` dave [this message]
2023-11-24 21:47   ` 有澤健治

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

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

  git send-email \
    --in-reply-to=sign.069278fc83.fab008ddd2a71cb5362fdc7054a4bd3a@naffnet.org.uk \
    --to=dave@naffnet.org.uk \
    --cc=9front@9front.org \
    --cc=karisawa@gmail.com \
    /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.
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 NNTP newsgroup(s).