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.

mysql datentyp timestamp und die Zeit allgemein

Empfohlene Antworten

Veröffentlicht

Ist das der Timestamp "sekunden seit 1970" wie in php?

komme da nicht klar.

kann ich eigentich per mysql auch solche 2 Daten vergleichen:

2005-04-23 > 2005-05-45

ob das eine größer ist als das andere ohne besondere Umrechnung

Zeitzonen:

Eine umfrage startet zu einem bestimmten Datum und Endet zu einem bestimmten Datum. Dieses Datum wird in der deutschen zeitzone eingegeben. der webserver ist ebenfalls in deutschland. Muss ich irgendwie aufpassen wenn andere Zeitzonen (teilnehmer aus anderen ländern) teilnehmen? Denn die Zeit kommt ja immer vom Server. Müsste also passen oder?

1)

Nein, das wird in MySql anders gehandelt

http://dev.mysql.com/doc/mysql/en/date-and-time-type-overview.html

From MySQL 4.1 on, TIMESTAMP is returned as a string with the format 'YYYY-MM-DD HH:MM:SS'. If you want to obtain the value as a number, you should add +0 to the timestamp column. Different timestamp display widths are not supported.

In MySQL 4.0 and earlier, TIMESTAMP values are displayed in YYYYMMDDHHMMSS, YYMMDDHHMMSS, YYYYMMDD, or YYMMDD format, depending on whether M is 14 (or missing), 12, 8, or 6, but allows you to assign values to TIMESTAMP columns using either strings or numbers. The M argument affects only how a TIMESTAMP column is displayed, not storage. Its values always are stored using four bytes each. From MySQL 4.0.12, the --new option can be used to make the server behave as in MySQL 4.1.

2)

Ja geht ganz easy

http://dev.mysql.com/doc/mysql/en/date-and-time-functions.html

3)

Da alles serverseitig läuft hast du damit nichts zu tun

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.