![]() |
DateTime to UnixTimestamp und zurück
Delphi-Quellcode:
function TForm1.CodeUnixDateTime(DatumZeit: TDateTime): Integer;
begin Result := ((Trunc(DatumZeit) - 25569) * 86400) + Trunc(86400 * (DatumZeit - Trunc(DatumZeit))) - 7200; end;
Delphi-Quellcode:
Viel Spaß damit.
function TForm1.DeCodeUnixDateTime(DatumZeit: Integer): TDateTime;
begin Result := ((DatumZeit + 7200) / 86400) + 25569; end; mfg Robert [edit=Daniel B]Delphi-Tags ergänzt. MfG Daniel B.[/edit] |
Alle Zeitangaben in WEZ +1. Es ist jetzt 23:10 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz