* [9front] time info of dos file
@ 2023-11-24 11:27 有澤健治
2023-11-24 13:15 ` dave
0 siblings, 1 reply; 3+ messages in thread
From: 有澤健治 @ 2023-11-24 11:27 UTC (permalink / raw)
To: 9front
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [9front] time info of dos file
2023-11-24 11:27 [9front] time info of dos file 有澤健治
@ 2023-11-24 13:15 ` dave
2023-11-24 21:47 ` 有澤健治
0 siblings, 1 reply; 3+ messages in thread
From: dave @ 2023-11-24 13:15 UTC (permalink / raw)
To: 9front; +Cc: 有澤健治
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [9front] time info of dos file
2023-11-24 13:15 ` dave
@ 2023-11-24 21:47 ` 有澤健治
0 siblings, 0 replies; 3+ messages in thread
From: 有澤健治 @ 2023-11-24 21:47 UTC (permalink / raw)
To: dave; +Cc: 9front
thanks for the info.
it seems that I need another mtime command.
2023年11月24日(金) 22:15 dave <dave@naffnet.org.uk>:
>
> 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
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-11-24 21:49 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-11-24 11:27 [9front] time info of dos file 有澤健治
2023-11-24 13:15 ` dave
2023-11-24 21:47 ` 有澤健治
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).