![]() |
MinutesBetween Ungenau
Hi,
bei der Funktion MinutesBetween hab ich ein rundungsproblem!
Delphi-Quellcode:
Die Unit DateUtils muss eingebunden werden.
procedure TForm1.Button1Click(Sender: TObject);
var i : String; j : Integer; a : TStringList; begin a := TStringList.Create; for j := 0 to 22 do begin i := FloatToStr(MinutesBetween(StrToTime(IntToStr(j)+':30'),StrToTime(IntToStr(j+1)+':00'))); a.Add(IntToStr(j)+':30 - '+ IntToStr(j+1)+':00 = '+i+' Minuten') end; ShowMessage(a.Text); end; Kann mir irgendjemand weiterhelfen??? |
Alle Zeitangaben in WEZ +1. Es ist jetzt 10:12 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 by Thomas Breitkreuz