Re: date does not support pipes

2024-01-15 Thread Kaz Kylheku
On 2024-01-12 20:14, Philip Rogers wrote: > Hi, > > `date` seems not to support reading from stdin. > > So if you want the "last data modification" date of a file, in ISO8601 format > at the seconds level, you have to: > > stat --format "%Y" check.txt | { read ts; date -d@"$ts"; } You want

Possible ls locale bug

2024-01-15 Thread gnu . 3bp3s--- via GNU coreutils General Discussion
Hello, My locale is en_IE.UTF-8, so when I run the date command, the output at time of writing is "Mon 15 Jan 2024 20:39:04 GMT" Maybe I'm mistaken, but with that in mind I'd expect the following scenario: With time locale en_IE.UTF-8 the --time-style=locale within the past year should be