Jim Meyering wrote: > Andreas Schwab wrote: > > Jim Meyering 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.
I updated the 'date' FAQ section with an example of this type of usage. http://www.gnu.org/software/coreutils/faq/#The-date-command-is-not-working-right_002e Bob
