bug-coreutils
[Top][All Lists]
Advanced

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

bug#11843: date -s vs encoding bug.


From: Jim Meyering
Subject: bug#11843: date -s vs encoding bug.
Date: Mon, 02 Jul 2012 19:58:44 +0200

Andreas Schwab wrote:
> Jim Meyering <address@hidden> writes:
>
>> To get the behavior you want (a nominally no-op date-setting command),
>> you should use this instead:
>>
>>     date -s "$(date '+%F %T.%N')"
>
> That fails to be a no-op during the ambigous end-of-dst period.  Better
> use an unambigous format.
>
> # date -s @$(date +%s.%N)

Yep.  That is both shorter *and* better :-)
Thanks.





reply via email to

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