Posted By: Grat
hour() return wrong number - 06/17/20 08:53
Hi,
I have this code:
real hour UTC is 8 but fce hour return 9
Where is problem ( see the picture )
I have this code:
Code
#include <default.c> string datetime(){ return strf("%04d-%02d-%02d %02d:%02d", year(),month(),day(),hour(),minute()); } function run() { BarPeriod = 15; // 15 min LookBack = 0; assetList("Assets4"); asset("EUR/USD"); var dDateD=wdatef("%Y-%m-%d %H:%M", datetime()); printf("\n%s is %d",datetime(),utm(dDateD)); }
real hour UTC is 8 but fce hour return 9
Where is problem ( see the picture )