Registriert seit: 1. Feb 2018
3.691 Beiträge
Delphi 11 Alexandria
|
AW: Zeit zwischen zwei Time Felder
7. Jan 2024, 14:19
Vielleicht versteht es das?
Delphi-Quellcode:
SELECT
id,
departure,
arrival,
FLOOR(TIMESTAMPDIFF(SECOND, departure, arrival) / 3600 / 24), ' days ',
FLOOR(TIMESTAMPDIFF(SECOND, departure, arrival) % 3600 / 3600), ' hours ',
FLOOR(TIMESTAMPDIFF(SECOND, departure, arrival) % 3600 % 60), ' minutes ',
TIMESTAMPDIFF(SECOND, departure, arrival) % 60, ' seconds'
FROM travel;
|
|
Zitat
|