[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #64933] Stat sometimes produces wrong timestam
From: |
Nicholas Jankowski |
Subject: |
[Octave-bug-tracker] [bug #64933] Stat sometimes produces wrong timestamp |
Date: |
Tue, 28 Nov 2023 08:47:39 -0500 (EST) |
Follow-up Comment #11, bug #64933 (project octave):
my local is USA,so those times correspond with the dst shift here. see
https://en.wikipedia.org/wiki/Daylight_saving_time_by_country
in both cases I created the new file in the time before the change then
checked the stat results before & after the change.
In hindsight, though, as i was choosing times _just_ before the change so that
I could quickly do before/after, the november change occurs during the time
where you roll back and repeat an hour and that might have obscured the
issue.
here i changed time back to the summer, created an new file, then returned to
present time. You can see that there is a discrepancy with the
stat(<filename>) return for after returning to normal time.
at time of file creation (July 1 2023):
>> time
ans = 1688215020.935662
>> stat('testfilesummer.txt')
ans =
scalar structure containing the fields:
dev = 2
ino = 0
mode = 33206
modestr = -rw-rw-rw-
nlink = 1
uid = 0
gid = 0
rdev = 2
size = 0
atime = 1688214989
mtime = 1688214989
ctime = 1688214989
blksize = NaN
blocks = NaN
>> stat(fopen('testfilesummer.txt'))
ans =
scalar structure containing the fields:
dev = 0
ino = 0
mode = 33206
modestr = -rw-rw-rw-
nlink = 1
uid = 0
gid = 0
rdev = 0
size = 0
atime = 1688214989
mtime = 1688214989
ctime = 1688214989
blksize = NaN
blocks = NaN
after return to correct time (nov 28 2023)
>> time
ans = 1701178973.715555
>> stat('testfilesummer.txt')
ans =
scalar structure containing the fields:
dev = 2
ino = 0
mode = 33206
modestr = -rw-rw-rw-
nlink = 1
uid = 0
gid = 0
rdev = 2
size = 0
atime = 1688211389
mtime = 1688211389
ctime = 1688211389
blksize = NaN
blocks = NaN
>> stat(fopen('testfilesummer.txt'))
ans =
scalar structure containing the fields:
dev = 0
ino = 0
mode = 33206
modestr = -rw-rw-rw-
nlink = 1
uid = 0
gid = 0
rdev = 0
size = 0
atime = 1688214989
mtime = 1688214989
ctime = 1688214989
blksize = NaN
blocks = NaN
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?64933>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #64933] Stat sometimes produces wrong timestamp, (continued)
- [Octave-bug-tracker] [bug #64933] Stat sometimes produces wrong timestamp, Markus Mützel, 2023/11/27
- [Octave-bug-tracker] [bug #64933] Stat sometimes produces wrong timestamp, INVALID.NOREPLY, 2023/11/27
- [Octave-bug-tracker] [bug #64933] Stat sometimes produces wrong timestamp, Markus Mützel, 2023/11/27
- [Octave-bug-tracker] [bug #64933] Stat sometimes produces wrong timestamp, INVALID.NOREPLY, 2023/11/27
- [Octave-bug-tracker] [bug #64933] Stat sometimes produces wrong timestamp, John W. Eaton, 2023/11/27
- [Octave-bug-tracker] [bug #64933] Stat sometimes produces wrong timestamp, John W. Eaton, 2023/11/27
- [Octave-bug-tracker] [bug #64933] Stat sometimes produces wrong timestamp, Markus Mützel, 2023/11/27
- [Octave-bug-tracker] [bug #64933] Stat sometimes produces wrong timestamp, Nicholas Jankowski, 2023/11/27
- [Octave-bug-tracker] [bug #64933] Stat sometimes produces wrong timestamp, Nicholas Jankowski, 2023/11/27
- [Octave-bug-tracker] [bug #64933] Stat sometimes produces wrong timestamp, INVALID.NOREPLY, 2023/11/28
- [Octave-bug-tracker] [bug #64933] Stat sometimes produces wrong timestamp,
Nicholas Jankowski <=
- [Octave-bug-tracker] [bug #64933] Stat sometimes produces wrong timestamp, INVALID.NOREPLY, 2023/11/28
- [Octave-bug-tracker] [bug #64933] Stat sometimes produces wrong timestamp, anonymous, 2023/11/28
- Message not available
- [Octave-bug-tracker] [bug #64933] Stat sometimes produces wrong timestamp, INVALID.NOREPLY, 2023/11/28
- [Octave-bug-tracker] [bug #64933] Stat sometimes produces wrong timestamp, John W. Eaton, 2023/11/28
- [Octave-bug-tracker] [bug #64933] Stat sometimes produces wrong timestamp, Markus Mützel, 2023/11/28
- [Octave-bug-tracker] [bug #64933] Stat sometimes produces wrong timestamp, John W. Eaton, 2023/11/28