Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Frage zu date

Empfohlene Antworten

Veröffentlicht

Hallo

Warum ist da ein Unterschied?

wiki:~/Scripts # date --date='14 Feb 2012 14:21:21 GMT' +%s

1329229281

wiki:~/Scripts # echo $ZZZ

14 Feb 2012 14:21:21 GMT

wiki:~/Scripts # date --date='´echo $ZZZ´' +%s

1330902000

wiki:~/Scripts # date --date='14 Feb 2012' +%s

1329174000

wiki:~/Scripts # ZZZ='14 Feb 2012'

wiki:~/Scripts # date --date='´echo $ZZZ´' +%s

1330902000

Ist ein SLES10SP2 x86

Ciao

Bearbeitet von ToFe

Das liegt an dem überflüssigen Echo. Dessen Output wird von date irgendwie missverstanden, habe aber gerade keine Lust, das weiter zu debuggen. Ist auch auf CentOS 5 x86_64 so.

date --date="$ZZZ" +%s liefert das erwartete Ergebnis

Der Lordy hats, der Lordy kanns. Danke.

Wahrscheinlich wärs mir auch aufgefallen, wenn ich zusätzlich ein anderes Datum ausprobiert hätte. Aber "hinterher schlauer sein ist 100% einfach".

Eines Tages muss ich mir mal eine Handkurbel für mein Gehirn kaufen, oder mir Lordys äh "eine Weile" äh "ausleihen" :-)

Das echo ist wirklich nur ein _echo_ ;)


notenbuch ~ # strace date --date='´echo $ZZZ´' +%s

execve("/bin/date", ["date", "--date=[B][COLOR="red"]\302\264echo $ZZZ\302\264[/COLOR][/B]", "+%s"], [/* 69 vars */]) = 0


notenbuch ~ # strace date --date="$ZZZ" +%s

execve("/bin/date", ["date", "--date=14 Feb 2012 14:21:21 GMT", "+%s"], [/* 69 vars */]) = 0

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.