mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-03-27 14:45:13 +08:00
parent
3d8f98c395
commit
8b1da4b63d
@ -623,9 +623,9 @@ static int path_mtime(parser_t &parser, io_streams_t &streams, int argc, const w
|
|||||||
n_transformed++;
|
n_transformed++;
|
||||||
|
|
||||||
if (!opts.relative) {
|
if (!opts.relative) {
|
||||||
path_out(streams, opts, to_string(ret.change_seconds));
|
path_out(streams, opts, to_string(ret.mod_seconds));
|
||||||
} else {
|
} else {
|
||||||
path_out(streams, opts, to_string(t - ret.change_seconds));
|
path_out(streams, opts, to_string(t - ret.mod_seconds));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -216,3 +216,7 @@ or echo mtime is too small
|
|||||||
|
|
||||||
test $mtime -lt 20
|
test $mtime -lt 20
|
||||||
or echo mtime is too large
|
or echo mtime is too large
|
||||||
|
|
||||||
|
touch -m -t 197001020000.00 epoch
|
||||||
|
path mtime epoch
|
||||||
|
# CHECK: 82800
|
||||||
|
Loading…
x
Reference in New Issue
Block a user