1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2026-01-15 17:51:07 +00:00
uutils-coreutils/tests
Jeffrey Finkelstein 1d0dcb5962 stat: fix precision when rendering mtime (%Y)
Support precision when rendering the time of last data modification
with `stat`. For example, after this commit

    $ stat --printf='%.1Y\n' f
    1668645806.7

Previously, the precision in the format specification was
ignored. This is implemented with a custom renderer because GNU `stat`
seems to truncate the number as opposed to rounding the number as
would happen when using `format!` with a specified number of digits of
precision.

Fixes #3233
2025-01-10 21:31:01 -05:00
..
benches/factor num-prime => '0.4.4' 2024-10-15 22:46:44 +02:00
by-util stat: fix precision when rendering mtime (%Y) 2025-01-10 21:31:01 -05:00
common clippy: it is more idiomatic to use 'Option<&T>' instead of '&Option<T>' 2024-11-29 08:36:54 +01:00
fixtures sort: adapt fixtures to change in unicode-width 2024-12-09 09:20:19 +01:00
test_util_name.rs tests: fix some clippy warnings 2024-05-25 09:06:16 +02:00
tests.rs relpath: remove 2023-10-04 16:13:06 +02:00