- UID
- 2
- 积分
- 2874674
- 威望
- 1387366 布
- 龙e币
- 1487308 刀
- 在线时间
- 13156 小时
- 注册时间
- 2009-12-3
- 最后登录
- 2024-11-24
|
【ELTimeToString】
- [LegacyColorValue = true];
- { ELTimeToString Function}
- { This function accepts a EL time and returns the date string HH:MM }
- { Written by eKam 8/ 2/2003 }
- { TimeToStr, a different version, was also coded by Greg Ballard, 2004}
- { Bug fix eKam 4/27/2004 }
- inputs: TimeSelect( numericsimple );
- var: s(""),strl(0);
- s = NumToStr(TimeSelect,0);
- strl = strlen(s);
- if strl = 4 then
- ELTimeToString = LeftStr(s,2) + ":" + RightStr(s,2)
- else if strl = 3 then
- ELTimeToString = "0" + LeftStr(s,1) + ":" + RightStr(s,2)
- else if strl = 2 then
- ELTimeToString = "00:" + RightStr(s,2)
- else if strl = 1 then
- ELTimeToString = "00:0" + RightStr(s,1)
- else if strl = 0 then
- ELTimeToString = "00:00";
复制代码 |
论坛官方微信、群(期货热点、量化探讨、开户与绑定实盘)
|