in einer Firebird Abfrage will ich mit Datum und Zeitstempel rechnen.
Code: Alles auswählen
SELECT "ID", "1timestamp", "2timestamp", "date", "days", "hours", CURRENT_TIMESTAMP, "1timestamp" - "2timestamp" "1timestamp-2timestamp", "date" - "days" "date-days", "date" - "hours" / 24.0000 "date-hours", "1timestamp" - "days" "1timestamp-days", "1timestamp" - "hours" / 24.0000 "1timestamp-hours", "1timestamp" - CAST( "date" AS TIMESTAMP ) "1timestamp-date" FROM "time_date"
"1timestamp"- CURRENT_TIMESTAMP, "date" - CURRENT_TIMESTAMP führen zu Fehlermeldungen.
Das Ergebnis sollte in einem Formular sowohl als Zeitstempel wie als Dezimalzahl dargestellt werden können.
Grüße
Malt
Version: 7.2.5.2 (x64) / LibreOffice Community
Build ID: 499f9727c189e6ef3471021d6132d4c694f357e5
CPU threads: 6; OS: Windows 10.0 Build 22000; UI render: Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: de-DE
Calc: CL