WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: command: date and the N switch ..crazy thing  (Read 1705 times)

Offline halma

  • Full Member
  • ***
  • Posts: 164
command: date and the N switch ..crazy thing
« on: December 14, 2015, 11:45:04 AM »
Hi,

i have an crazy problem, before i wrote this text here, i wanted to write something else about the Time and %N switch was not working anymore... but forget this

yesterday, i installed with tce-ab "coreutils.tcz" and after that i tried the "N"(*nanosecs.) switch of "date", but the command was not found by the "date" command it was late and i logged out from my ssh session (around 2hours are gone since coreutils.tcz was installed..), today i am back into the same machine and i did not an reboot, "uptime shows me around 3days uptime!", and the date --help shows me the N switch .. what the hell is going on ... this took my yesterday around 2hours to find out why the N switch not works anymore and today it works .... CRAZY, wtf !!!!!!! and some time ago in my script i got an error, but i was sure i did not changed on that, stupid i forgot what is was, after while, i cant remember it works again without changed anything ....

Thanks for your time ;P
1 + 2 = 6  cause  10 - 6 = 78 ;-) lol

Offline patrikg

  • Wiki Author
  • Hero Member
  • *****
  • Posts: 713
Re: command: date and the N switch ..crazy thing
« Reply #1 on: December 15, 2015, 08:59:08 AM »
Have seen this before, maybe it's the locale settings because of changing language for the date command.

Have seen some workaround with this some doing something like this.

(export LANG=en_US.UTF-8;date)



Hi,

i have an crazy problem, before i wrote this text here, i wanted to write something else about the Time and %N switch was not working anymore... but forget this

yesterday, i installed with tce-ab "coreutils.tcz" and after that i tried the "N"(*nanosecs.) switch of "date", but the command was not found by the "date" command it was late and i logged out from my ssh session (around 2hours are gone since coreutils.tcz was installed..), today i am back into the same machine and i did not an reboot, "uptime shows me around 3days uptime!", and the date --help shows me the N switch .. what the hell is going on ... this took my yesterday around 2hours to find out why the N switch not works anymore and today it works .... CRAZY, wtf !!!!!!! and some time ago in my script i got an error, but i was sure i did not changed on that, stupid i forgot what is was, after while, i cant remember it works again without changed anything ....

Thanks for your time ;P