How to get current Server Time?

Hello there,

We are developing an application over .NET Framework. At this point all is working well. But we didn’t found any documentation about to get the current datetime in a server. We know about protocol integration that is including the time on it’s header. This didn’t help us because we want to get the time only using the MIP SDK Component Integration.

Thanks.

There is no API to get current server time in MIP SDK but normally you can get the time with .net, for example -

https://stackoverflow.com/questions/22279525/get-current-date-time-from-server-and-convert-it-into-local-time-in-c-sharp

Two important notes: When communicating with Milestone servers you should always use UTC time. It is a general requirement that Milestone servers are in sync on the clock and therefore using a time server or similar is strongly recommended.

Thanks Rie for answering. I don’t need the GMT/UTC hours differences, I need a more exact value. For example I need to know the seconds of differece that exists between the server and local machine. If this is not possible using the MIP SDK is ok. Thank you anyway.