How to get server time

Created at 20 Jul 2021, 09:19
How’s your experience with the cTrader Platform?
Your feedback is crucial to cTrader's development. Please take a few seconds to share your opinion and help us improve your trading experience. Thanks!
BU

budda_dan2020

Joined 10.09.2020

How to get server time
20 Jul 2021, 09:19


Hi,

How can I get the server time from cTrader server?

I receive the historical trendbars and other information with timestamp in relation to the server time.

I need to know what time is now in server.

 

Kind regards


@budda_dan2020
Replies

amusleh
20 Jul 2021, 09:30

Hi,

The trenbars has a utcTimestampInMinutes, its not in server time, the field name is very clear, its UTC time stamp.


@amusleh

budda_dan2020
30 Jul 2021, 10:25

RE: Server time

amusleh said:

Hi, 

The trenbars has a utcTimestampInMinutes, its not in server time, the field name is very clear, its UTC time stamp.

Hi Amusleh,

thanks for the reply.

But at the time I get the trendbar, my computer time has no longer same time as trendbar. So I don't know the current server time.


@budda_dan2020

amusleh
30 Jul 2021, 13:44

The trendbars time zone is UTC as I said.


@amusleh