范例(t):
参考:…
EndT:=inttodate(20140117);
Return DateToStr(EndT); //输出 2014-01-17
Return DateToStr(EndT); //输出 2014-01-17
参考:…
范例(t):
//输入时间或者日期时间
Return timeToStr(0.5);
return timetostr(now());
参考:[ref]TDa…Return timeToStr(0.5);
return timetostr(now());
范例(t):
EndT:=now();
Return DateTimeToStr(EndT);//输出当前系统日期时间
参考:[ref]TDateTime[/r…Return DateTimeToStr(EndT);//输出当前系统日期时间
范例(t):
Return StrToDateDef("2010-02-30",date());//转换失败输出当前日期40763
参考:[r…范例(t):
[code]
If TryStrToDate("2010-02-04 ",date) then
Return date;//输出40213
[/code…
[code]
If TryStrToDate("2010-02-04 ",date) then
Return date;//输出40213
[/code…
范例(t):
[code]
time:=StrToTimeDef("15:61:34 ",time());
Return time; //输出当前系统时间
[/co…
[code]
time:=StrToTimeDef("15:61:34 ",time());
Return time; //输出当前系统时间
[/co…
范例(t):
If TryStrToTime("15:52:35",time) then
Return time;//输出0.66
参考:…Return time;//输出0.66
范例(t):
Return StrToDateTime("2011-08-08 16:00:16 ");//输出40763.67
参考:[re…范例(t):
[code]
Return StrToDateTimeDef("2011-08-08 16:61:16 ",now());//输出当前系统日期时间
[/co…
[code]
Return StrToDateTimeDef("2011-08-08 16:61:16 ",now());//输出当前系统日期时间
[/co…
范例(t):
[code]
If TryStrToDateTime("2010-02-04 16:11:35 ",datetime) then
Return datet…
[code]
If TryStrToDateTime("2010-02-04 16:11:35 ",datetime) then
Return datet…
范例(t):
[code]
Return FormatDateTime("C",now());//输出2011-08-08 16:27:08
Return FormatDateTime("D…
[code]
Return FormatDateTime("C",now());//输出2011-08-08 16:27:08
Return FormatDateTime("D…
范例(t):
[code]
DateTimeToString(result,'YYYY-MM-DD HH:NN:SS',now()) ;
Return result;//输出当期系统日期时…
[code]
DateTimeToString(result,'YYYY-MM-DD HH:NN:SS',now()) ;
Return result;//输出当期系统日期时…
范例(t):
1、把两个数字格式化为字符串:Format('First %d, Second %d', n1, n2);
其中n1和n2是两个整数值,第一个占位符由第一个值替代,第二个占位符由…
1、把两个数字格式化为字符串:Format('First %d, Second %d', n1, n2);
其中n1和n2是两个整数值,第一个占位符由第一个值替代,第二个占位符由…
范例(t):
SetFormatLocalCode(0);
return GetFormatLocalCode();//输出:0
参考:[ref]GetForm…return GetFormatLocalCode();//输出:0
范例(t):
SetFormatLocalCode(0);
return GetFormatLocalCode();//输出:0
参考:[ref]SetForm…return GetFormatLocalCode();//输出:0
范例(t):
[htm]<table><tbody><tr><td>
格式串</td><td>
1234</td><td>
-1234</td><td>
0.5</td><td>
0<…
[htm]<table><tbody><tr><td>
格式串</td><td>
1234</td><td>
-1234</td><td>
0.5</td><td>
0<…
范例(t):
Return FormatCurr('0.000E+00',232.24);
//输出:2.322E+02
参考:[ref]SetFormatL…//输出:2.322E+02
范例(t):
TryStrToCurr('1321.2333',s);
return s;
//输出:1321.2333
参考:[ref]IntToHex[/…return s;
//输出:1321.2333
范例(t):
[Code]
{读取本地文件:C:\Program Files\Tinysoft\Analyse.NET\Plugin\test.ini中节名称为Inidata2,键名称…
[Code]
{读取本地文件:C:\Program Files\Tinysoft\Analyse.NET\Plugin\test.ini中节名称为Inidata2,键名称…