Type/to search
0
Follow
0
Followers
Le timing de mon inventeur est mauvais
Help
Created 2022-04-19 02:04:22  Updated 2022-04-19 11:38:12
 11
 1124

function main(){
var ts = new Date().getTime()
Log(_D(ts))
}
J'ai toujours rêvé de trouver une solution, mais je me suis trompé de date, merci !
Date plateforme type prix quantité informations
Le 19 avril 2022 à 18 heures 53
Pourquoi les inventeurs n'ont-ils pas un forum pour aider ceux qui en ont besoin ?

Comment
All comments (11)

    时区不一样,北京时间加8小时就行,例如:new Date().getTime()+时区差(86060*1000)

    4 years ago

    要考虑偏移,不确定托管者服务器所在时区,所以要先转到UTC再加8小时

    4 years ago

    平台时间是2022-04-19 02:00:53,但是用_D出来的时间是2022-04-18 18:00:53

    4 years ago

    考虑时区问题。

    4 years ago

    是实盘

    4 years ago

    考虑下时区问题。

    4 years ago

    平台时间是2022-04-19 02:00:53,但是用_D出来的时间是2022-04-18 18:00:53

    4 years ago

    回测还是实盘。

    4 years ago

    new Date()是在你托管者运行的,所以是你托管者所在的服务器时间不对,不是+8的时区,可以搜一下javascript 转北京时间

    4 years ago

    当前页面就是论坛哇~ X.X
    这打印出来的时间没什么问题呀:

    日期 平台 类型 价格 数量 信息 2022-04-19 02:00:53 信息 2022-04-18 18:00:53

    没看出问题。

    4 years ago

    _D不就是提取当前时间吗2022-04-18 18:00:53?但是提取的时间跟实际的当前时间差了几个小时2022-04-18 18:00:53

    4 years ago
  • 1
Forums
PINE Language
Get the app
iPhone Download
© 2015 - ∞ INVENTOR PTE LTD (SG)