[dba-Tech] worldtime.io and the other ways to programmatically get the current UTC time

Jim Lawrence accessd at shaw.ca
Mon Nov 30 12:50:08 CST 2015


Hi Shamil:

That is a nice piece of code. I don't know where I would use it but have always collected smart code snippets.

Jim  

----- Original Message -----
From: "Salakhetdinov Shamil" <mcp2004 at mail.ru>
To: "Discussion of Hardware and Software issues" <dba-tech at databaseadvisors.com>
Sent: Sunday, November 29, 2015 2:07:43 PM
Subject: [dba-Tech] worldtime.io and the other ways to programmatically get the current UTC time

 Hi All --

The subject web site worldtime.io seems to be providing incorrect current time - compare with  http://www.timeanddate.com/worldclock/  (middle page).

I have to find a way to get correct current time independent from my MS Windows system - I'm using the code from checked answer from the following topic 

http://stackoverflow.com/questions/1193955/how-to-query-an-ntp-server-using-c

and the time value it returns seems to be in sync with my system time.

Do you now any other way to get the current UTC time preferably using a free  (RESTFul) webservice?

Thank you.

-- 
Салахетдинов Шамиль
_______________________________________________
dba-Tech mailing list
dba-Tech at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/dba-tech
Website: http://www.databaseadvisors.com



More information about the dba-Tech mailing list