asp.net - Is there any library to fetch current time of any location from other servers? -
i want local time of logged in user based on location. want library connects universal time server (google etc.) , returns current time of location passed parameter.
one alternative have stored time difference in sql server table , calculate actual time utc time of logged user. approach won't give accurate results , doubt on how work.
timezonedb provides free api: http://timezonedb.com/api
genonames has restful api available current time given location: http://www.geonames.org/export/ws-overview.html.
you can use greenwich, uk if you'd gmt.
Comments
Post a Comment