mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-19 23:39:31 +02:00
* initial revision
git-svn-id: trunk@433 -
This commit is contained in:
parent
b6a96ef4b3
commit
0954402873
1
.gitattributes
vendored
1
.gitattributes
vendored
@ -5937,6 +5937,7 @@ tests/webtbs/tw4055.pp svneol=native#text/plain
|
||||
tests/webtbs/tw4058.pp svneol=native#text/plain
|
||||
tests/webtbs/tw4078.pp svneol=native#text/plain
|
||||
tests/webtbs/tw4089.pp svneol=native#text/plain
|
||||
tests/webtbs/tw4093.pp svneol=native#text/plain
|
||||
tests/webtbs/ub1873.pp svneol=native#text/plain
|
||||
tests/webtbs/ub1883.pp svneol=native#text/plain
|
||||
tests/webtbs/uw0555.pp svneol=native#text/plain
|
||||
|
29
tests/webtbs/tw4093.pp
Normal file
29
tests/webtbs/tw4093.pp
Normal file
@ -0,0 +1,29 @@
|
||||
{ Source provided for Free Pascal Bug Report 4093 }
|
||||
{ Submitted by "alphax" on 2005-06-16 }
|
||||
{ e-mail: acmui_2004@163.com }
|
||||
program test_var_dt;
|
||||
|
||||
{$IFDEF FPC}
|
||||
{$MODE OBJFPC}
|
||||
{$ENDIF}
|
||||
|
||||
uses
|
||||
SysUtils, Variants;
|
||||
|
||||
var
|
||||
DT: TDateTime;
|
||||
S: string;
|
||||
V: Variant;
|
||||
C: Currency;
|
||||
begin
|
||||
V := '1.0';
|
||||
C := V;
|
||||
WriteLn(CurrToStr(C));
|
||||
|
||||
S := DateTimeToStr(Now());
|
||||
V := S;
|
||||
writeln(v);
|
||||
DT := V;
|
||||
WriteLn(DateTimeToStr(DT));
|
||||
ReadLn;
|
||||
end.
|
Loading…
Reference in New Issue
Block a user