• Sign up >>

How to set date & time to New York Time

To add comments, please log in or register
Kim Foong Chan
1466
Kim Foong Chan  
Hi,

Kindly teach me how to set date & time to New York Time?

Regards
Tony
Tatyana
101
Tatyana  
Only broker on server side can adjust time zone. You cannot change time zone using client terminal.
chayutra sriboonruang
112
chayutra sriboonruang  

compare the different between server time and NY time in hour(s) then

get the curtime() function , this result in seconds

add the curtime() with the different hour(s) in seconds

ie. server time is gmt+1 and you are in gmt+4 then
the different between you and server is 3 hours or 3*60*60 seconds
then your time is curtime()+(3*60*60)

To add comments, please log in or register