X-Git-Url: http://www.lcore.org/git/lcore.git/blobdiff_plain/935f8f3fc8915049b0bd70fdb9050bbd1ca65b7c..d63fdd677fc6ab221d92999630627bd1a0b8afd4:/btime.pas?ds=sidebyside diff --git a/btime.pas b/btime.pas index 33b32d0..62b957d 100644 --- a/btime.pas +++ b/btime.pas @@ -53,7 +53,7 @@ function unixtimefloat_systemtime:float; function oletounixfloat(t:float):float; function oletounix(t:tdatetime):integer; -function unixtoole(i:integer):tdatetime; +function unixtoole(i:float):tdatetime; {$ifdef win32} function mmtimefloat:float; @@ -130,7 +130,7 @@ begin result := trunc(oletounixfloat(t)); end; -function unixtoole(i:integer):tdatetime; +function unixtoole(i:float):tdatetime; begin result := ((i)/86400)+daysdifference; end;