bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#40220: date command set linux epoch time failed


From: Paul Eggert
Subject: bug#40220: date command set linux epoch time failed
Date: Sun, 29 Mar 2020 23:26:30 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1

On 3/29/20 9:32 PM, Bob Proulx wrote:
Both calls from GNU date are returning EINVAL.  Those are Linux kernel
system calls.  Those Linux kernel system calls are using
CLOCK_MONOTONIC.

OK, I think I understand now. For some reason Linux prohibits you from setting CLOCK_REALTIME to a value less than what CLOCK_MONOTONIC would report. I don't know why Linux has this restriction - it violates POSIX as near as I can tell - but at any rate as you say it's a problem with the Linux kernel, not with GNU 'date'.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]