Forum > General
TDateTime problem with 3.0.0
(1/1)
bigeno:
After update fpc to 3.0.0 my procedure don't work.
xd: TDateTime;
FloatToStr(xd) <- always return 0 ? Can you help me ? I try various dates.
GetMem:
It works fine for me:
--- Code: Pascal [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---var xd: TDateTime;begin xd := EncodeDate(2015, 12, 17); xd := xd + EncodeTime(18, 12, 10, 555); ShowMessage(FloatToStr(xd) + sLineBreak + FormatDateTime('YYYY/MM/DD hh:mm.ss.zzz', xd)); //result: 2015/12/17 18:12.10.555end; If returns 0 then TDateTime is zero.
bigeno:
Ohh. Sorry. My fault. It's all ok :-[
Navigation
[0] Message Index