显示全球的国家/地区名称和相应的当前日期时间 [英] display country name and respective current date time around the globe

查看:106
本文介绍了显示全球的国家/地区名称和相应的当前日期时间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在用户打开页面时显示国家/地区名称和相应的当前日期时间。我的意思是,如果一个用户在美国,他应该得到美国的时间。如果用户在非洲...它应该显示非洲时间...。请帮助我。在此先感谢

How can I display country name and respective current date time when a user opens my page. I mean if a user is in USA he should get USA time.if the user is in Africa…it should display African time….please help me out. Thanks in advance

推荐答案

您可以使用众多第三方提供商之一,根据用户IP确定位置。但是,这可能不准确。在网上搜索提供商。我猜geocity(或类似的东西)就是一个。
You can make use of one of the many third party providers that determine location based on user IP. However, this may not be accurate. Search web for provider. I guess geocity (or something similar) is one.


这篇关于显示全球的国家/地区名称和相应的当前日期时间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆