首页 » 外汇 » 正文

MQL4基础

数据类型转换
一:datetime to string
函数:string TimeToStr( datetime value, void mode)
时间类型(从 1970 1 月 1 日通过的相当数量秒数)转换为 “yyyy.mm.dd hh:mi”格式。
参量:
value ‐ 自 1970 年 1 月所通过的数量秒数。
mode ‐ 选择数据输出模式可以是以下的一个或者组合:
TIME_DATE 结果格式为 “yyyy.mm.dd”,
TIME_MINUTES 结果格式为 “hh:mi”,
TIME_SECONDS 结果格式为 “hh:mi:ss”。
示例:string var1=TimeToStr(TimeCurrent(),TIME_DATE|TIME_SECONDS);

赞 (0)

Warning: Illegal string offset 'single' in /www/wwwroot/justchen.com/wp-content/themes/9IPHP-master/inc/post-format/single.php on line 57

Warning: Illegal string offset 'single' in /www/wwwroot/justchen.com/wp-content/themes/9IPHP-master/inc/post-format/single.php on line 87

发表评论