12
Follow
3
Followers
LogStatus("时间:" + _D())
上面的这句显示出来的时间,好像托管者的机器上的UTC的时间,比如新加坡的服务器,但新加坡的当地时间也是和北京一样的,所以如果要本地时间的话,这里应该是用哪个函数呢?
backopentime = new Date()
Log("backopentime=", backopentime)
Log显示出的是正常的时间格式,比如 2022-03-06 23:29:17 ,而不是类似这样的时间数值:updateTime":1646356161044,怎么显示这个数值呢?
因为需要在程序中记录这个时间值,万一程序中断可以在重启后恢复,如果因为某种原因需要手动的输入更改这个时间值,那应该要填入类似1646356161044这样的数值,而不是2022-03-06 23:29:17
--记录
_G("backopentime", backopentime)
--恢复
backopentime = _G("backopentime")
谢谢!
Related Recommendations
Built-In Function_Cross Analysis and InstructionsHow to Specify Different Versions of Data for the Rented Strategy by Its Rental Code MetadataAdvanced Tutorial for FMZ Quant platform Strategy WritingElementary Tutorial for FMZ Quant platform Strategy WritingGet Started with FMZ Quant PlatformSECURITY BUGI keep getting error: Exchange_GetAccount: Invalid ContractTypeWe have an incredibly profitable market making algorithm for sideways markets on Bitmex - but need expert to help eliminate wait times during downward volatility in the marketError with deribitLimitations of the backtesting engine
Comment
All comments (5)
- 1
