string GetDT240(){ int h=hour()-hour()%4; printf("\n hour: %d now: %d",hour(),h); return strf("%04d-%02d-%02d %02d:00", year(),month(),day(),h); } // --------------------------- Main----------------------------- function main() { printf("\n %s",GetDT240()); }
function run() { BarPeriod=1; LookBack=0; printf("\n %s",GetDT240()); quit(""); }
string GetDT240(){ int h=hour(NOW)-hour(NOW)%4; printf("\n hour: %d now: %d",hour(NOW),h); return strf("%04d-%02d-%02d %02d:00", year(NOW),month(NOW),day(NOW),h); }
Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy
oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de