12
Follow
3
Followers
LogStatus (시간: +1)_D())
위 문장에서는 상용화되어 있는 시간은 마치 싱가포르의 서버와 같은 호스트의 기계에서 UTC를 사용하는 것과 같습니다. 하지만 싱가포르의 현지 시간은 베이징과 동일합니다. 그래서 만약 현지 시간을 원한다면, 어떤 함수를 사용해야 할까요?
backopentime = new Date()
Log("backopentime=", backopentime)
로그는 2022-03-06 23:29:17 같은 정상적인 시간 형식을 표시하고, 이와 같은 시간 값이 아닌:updateTime":1646356161044, 어떻게 이 값을 표시합니까?
이 시간값을 프로그램에서 기록해야 하기 때문에, 프로그램 중단이 재부팅 후 복원될 수 있는 경우에, 어떤 이유로 수동 입력이 이 시간값을 변경해야 하는 경우, 2022-03-06 23:29:17 대신에 1646356161044와 같은 값을 채워야 한다.
-- 기록
_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
