Server.Time

Created at 13 Mar 2019, 00:33
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!
A.

a.fernandez.martinez

Joined 02.03.2019

Server.Time
13 Mar 2019, 00:33


Hello,

 

Since I can't see the logs and therefore can't test anything I wanted to know what does Server.Time return ? is it a string ? if so what's the format of the date and time ? if not how to convert it to string or to something else ?

 

I want to measure difference in time between two ticks.

 

Thanks.


@a.fernandez.martinez
Replies

PanagiotisCharalampous
13 Mar 2019, 09:01

Hi a.fernandez.martinez,

Server.Time is a DateTiime. If you subtract two DateTime variables, you can find the TimeSpan between them.

Best Regards,

Panagiotis


@PanagiotisCharalampous