[go: up one dir, main page]

CN103076738B - Automatic world clock replacing method and system based on mobile terminal equipment - Google Patents

Automatic world clock replacing method and system based on mobile terminal equipment Download PDF

Info

Publication number
CN103076738B
CN103076738B CN201310037207.1A CN201310037207A CN103076738B CN 103076738 B CN103076738 B CN 103076738B CN 201310037207 A CN201310037207 A CN 201310037207A CN 103076738 B CN103076738 B CN 103076738B
Authority
CN
China
Prior art keywords
world clock
world
mobile terminal
clock
terminal device
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201310037207.1A
Other languages
Chinese (zh)
Other versions
CN103076738A (en
Inventor
曾元清
李博宁
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201310037207.1A priority Critical patent/CN103076738B/en
Publication of CN103076738A publication Critical patent/CN103076738A/en
Application granted granted Critical
Publication of CN103076738B publication Critical patent/CN103076738B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Electric Clocks (AREA)

Abstract

The invention is suitable for the communication field, and provides a world clock automatic replacement method based on mobile terminal equipment, which comprises the following steps: establishing a world clock database according to the division of the global time zones; displaying a preset world clock group through a widget application program; starting a positioning function of the mobile terminal equipment; acquiring a city where the current mobile terminal equipment is located through a positioning function; judging whether the acquired city where the current mobile terminal device is located exists in a currently displayed preset world clock group or not; and if the world clock does not exist, automatically replacing one of the world clocks in the preset world clock group by the world clock searched in the world clock database. The invention also provides a system for automatically replacing the world clock based on the mobile terminal equipment. The method and the system for automatically replacing the world clock based on the mobile terminal equipment can automatically adjust the world clock so as to facilitate a user to accurately obtain the local time.

Description

一种基于移动终端设备的世界时钟自动更换方法及其系统A method and system for automatically changing world clocks based on mobile terminal equipment

技术领域technical field

本发明涉及通信领域,尤其涉及一种基于移动终端设备的世界时钟自动更换方法及其系统。The present invention relates to the communication field, in particular to a method and system for automatically changing a world clock based on mobile terminal equipment.

背景技术Background technique

随着生活条件的不断提高,越来越多的人已经步入世界潮流,像旅游、出差、探亲等活动越来越频繁,和世界的交流在不断增大,同样对世界时钟的使用也在不断增加,尤其是随着手机的快速普及,这已经成为了人们出差、旅游必备的通信工具了。但是当人们进行跨时区的长途旅行时,目前的手机只能进行手动的时间调整,并且还要知道当前手机显示的时间与旅行目的地所在时区的时间差以及对应的换算方法才能正确的调整到旅行目的地的当地标准时间,这样一来,每次出差到一个新时区的目的地就要手动调整一下手机的显示时间,这样无疑会给经常旅游、出差的人们带来极大的不便。With the continuous improvement of living conditions, more and more people have entered the world trend, activities such as tourism, business trips, and family visits are becoming more and more frequent, and exchanges with the world are increasing, and the use of the world clock is also increasing. Continuously increasing, especially with the rapid popularization of mobile phones, it has become a necessary communication tool for people on business trips and tourism. However, when people travel long distances across time zones, the current mobile phone can only adjust the time manually, and it is necessary to know the time difference between the time displayed on the current mobile phone and the time zone where the travel destination is located and the corresponding conversion method in order to correctly adjust the travel time. The local standard time of the destination. In this way, every time a business trip arrives at a destination in a new time zone, the display time of the mobile phone must be manually adjusted. This will undoubtedly bring great inconvenience to people who often travel and travel.

因此,亟需设计一种能根据出差地所在的时区自动调整世界时钟的方法,以方便用户准确的获取到当地的时间。Therefore, it is urgent to design a method that can automatically adjust the world clock according to the time zone where the business trip is located, so that the user can accurately obtain the local time.

发明内容Contents of the invention

有鉴于此,本发明实施例的目的在于提供一种基于移动终端设备的世界时钟自动更换方法及其系统,旨在解决现有技术中需要手动调整移动终端设备的世界时钟的问题。In view of this, the purpose of the embodiments of the present invention is to provide a method and system for automatically changing a world clock based on a mobile terminal device, aiming at solving the problem in the prior art that the world clock of a mobile terminal device needs to be manually adjusted.

本发明实施例是这样实现的,一种基于移动终端设备的世界时钟自动更换方法,所述方法包括:The embodiment of the present invention is achieved in this way, a method for automatically replacing a world clock based on a mobile terminal device, the method comprising:

根据全球时区的划分建立世界时钟数据库,其中,所述世界时钟数据库包括全球每一个时区的世界时钟、世界时钟城市名称以及不同时区的世界时钟之间的对应转换关系;Establish a world clock database according to the division of the global time zone, wherein the world clock database includes the world clock in each time zone in the world, the world clock city name and the corresponding conversion relationship between the world clocks in different time zones;

通过widget应用程序显示预设世界时钟组;Display the preset world clock group through the widget application;

开启所述移动终端设备的定位功能;Turn on the positioning function of the mobile terminal device;

通过定位功能获取当前所述移动终端设备所处的城市;Obtaining the city where the mobile terminal device is currently located through the positioning function;

判断获取到的当前所述移动终端设备所处的城市是否存在于当前显示的所述预设世界时钟组中;judging whether the acquired city where the mobile terminal device is currently located exists in the currently displayed preset world clock group;

如果不存在,则在所述世界时钟数据库中搜索与获取到的当前所述移动终端设备所处的城市相对应的世界时钟,并将搜索到的世界时钟自动替换所述预设世界时钟组中的其中一个世界时钟,同时显示替换后的世界时钟。If it does not exist, search in the world clock database for a world clock corresponding to the city where the mobile terminal device is currently located, and automatically replace the searched world clock in the preset world clock group One of the world clocks in , showing the replaced world clock at the same time.

优选的,所述预设世界时钟组至少包括两个世界时钟,其中,所述显示预设世界时钟组包括显示当前的实时世界时钟,以及显示与实时世界时钟相对应的世界时钟城市名称。Preferably, the preset world clock group includes at least two world clocks, wherein the displaying the preset world clock group includes displaying the current real-time world clock and displaying the world clock city name corresponding to the real-time world clock.

优选的,所述定位功能具体为GPS定位功能,或者WiFi定位功能。Preferably, the positioning function is specifically a GPS positioning function, or a WiFi positioning function.

优选的,所述判断获取到的当前所述移动终端设备所处的城市是否存在于当前显示的所述预设世界时钟组中的步骤之后还包括:Preferably, after the step of judging whether the acquired city where the mobile terminal device is currently located exists in the currently displayed preset world clock group, the step further includes:

如果存在,则继续通过widget应用程序显示预设世界时钟组。If it exists, continue to display the preset world clock group through the widget application.

另一方面,本发明还提供一种基于移动终端设备的世界时钟自动更换系统,包括:On the other hand, the present invention also provides a system for automatically changing world clocks based on mobile terminal equipment, including:

数据库建立模块,用于根据全球时区的划分建立世界时钟数据库,其中,所述世界时钟数据库包括全球每一个时区的世界时钟、世界时钟城市名称以及不同时区的世界时钟之间的对应转换关系;The database building module is used to establish a world clock database according to the division of global time zones, wherein the world clock database includes the world clock in each time zone in the world, the world clock city name and the corresponding conversion relationship between the world clocks in different time zones;

时钟显示模块,用于通过Widget应用程序显示预设世界时钟组;The clock display module is used to display the preset world clock group through the Widget application program;

开启定位模块,用于开启所述移动终端设备的定位功能;Opening the positioning module, used to open the positioning function of the mobile terminal device;

城市获取模块,用于通过定位功能获取当前所述移动终端设备所处的城市;A city acquiring module, configured to acquire the city where the mobile terminal device is currently located through a positioning function;

判断模块,用于判断获取到的当前所述移动终端设备所处的城市是否存在于当前显示的所述预设世界时钟组中;A judging module, configured to judge whether the acquired city where the mobile terminal device is currently located exists in the currently displayed preset world clock group;

替换模块,用于如果所述判断模块判断不存在,则在所述世界时钟数据库中搜索与获取到的当前所述移动终端设备所处的城市相对应的世界时钟,并将搜索到的世界时钟自动替换所述预设世界时钟组中的其中一个世界时钟,同时显示替换后的世界时钟。A replacement module, configured to search the world clock database for a world clock corresponding to the acquired city where the mobile terminal device is currently located if the judging module judges that it does not exist, and use the searched world clock Automatically replace one of the world clocks in the preset world clock group, and display the replaced world clock at the same time.

优选的,所述预设世界时钟组至少包括两个世界时钟,其中,所述显示预设世界时钟组包括显示当前的实时世界时钟,以及显示与实时世界时钟相对应的世界时钟城市名称。Preferably, the preset world clock group includes at least two world clocks, wherein the displaying the preset world clock group includes displaying the current real-time world clock and displaying the world clock city name corresponding to the real-time world clock.

优选的,所述定位功能具体为GPS定位功能,或者WiFi定位功能。Preferably, the positioning function is specifically a GPS positioning function, or a WiFi positioning function.

优选的,所述时钟显示模块,还用于如果所述判断模块判断存在,则继续通过widget应用程序显示预设世界时钟组。Preferably, the clock display module is further configured to continue to display the preset world clock group through the widget application program if the judging module judges that it exists.

在本发明实施例中,本发明提供的技术方案,可以根据出差地所在的时区自动调整世界时钟,以方便用户准确的获取到当地的时间。In the embodiment of the present invention, the technical solution provided by the present invention can automatically adjust the world clock according to the time zone where the business trip is located, so as to facilitate the user to accurately obtain the local time.

附图说明Description of drawings

图1为本发明一实施方式中基于移动终端设备的世界时钟自动更换方法流程图;Fig. 1 is a flowchart of a method for automatically replacing a world clock based on a mobile terminal device in an embodiment of the present invention;

图2为本发明一实施方式中显示预设世界时钟组的示意图;Fig. 2 is a schematic diagram showing a preset world clock group in an embodiment of the present invention;

图3为本发明一实施方式中基于移动终端设备的世界时钟自动更换系统的结构示意图。FIG. 3 is a schematic structural diagram of a system for automatically changing world clocks based on mobile terminal equipment in an embodiment of the present invention.

具体实施方式detailed description

为了使本发明的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

本发明具体实施方式提供了一种基于移动终端设备的世界时钟自动更换方法,如图1所示,该方法由移动终端设备完成,主要包括如下步骤:The specific embodiment of the present invention provides a method for automatically changing a world clock based on a mobile terminal device, as shown in Figure 1, the method is completed by a mobile terminal device, and mainly includes the following steps:

S101、根据全球时区的划分建立世界时钟数据库,其中,所述世界时钟数据库包括全球每一个时区的世界时钟、世界时钟城市名称以及不同时区的世界时钟之间的对应转换关系;S101. Establish a world clock database according to the division of global time zones, wherein the world clock database includes a world clock in each time zone in the world, a world clock city name, and a corresponding conversion relationship between world clocks in different time zones;

S102、通过widget应用程序显示预设世界时钟组;S102, displaying the preset world clock group through the widget application program;

S103、开启所述移动终端设备的定位功能;S103. Turn on the positioning function of the mobile terminal device;

S104、通过定位功能获取当前所述移动终端设备所处的城市;S104. Obtain the city where the mobile terminal device is currently located through the positioning function;

S105、判断获取到的当前所述移动终端设备所处的城市是否存在于当前显示的所述预设世界时钟组中;S105. Determine whether the acquired city where the mobile terminal device is currently located exists in the currently displayed preset world clock group;

S106、如果不存在,则在所述世界时钟数据库中搜索与获取到的当前所述移动终端设备所处的城市相对应的世界时钟,并将搜索到的世界时钟自动替换所述预设世界时钟组中的其中一个世界时钟,同时显示替换后的世界时钟。S106. If it does not exist, search the world clock database for a world clock corresponding to the acquired city where the mobile terminal device is currently located, and automatically replace the preset world clock with the searched world clock One of the world clocks in the group, showing the replaced world clock at the same time.

本发明所提供的一种基于移动终端设备的世界时钟自动更换方法,可以根据出差地所在的时区自动调整世界时钟,以方便用户准确的获取到当地的时间。The method for automatically changing the world clock based on the mobile terminal equipment provided by the present invention can automatically adjust the world clock according to the time zone where the business trip is located, so as to facilitate the user to accurately obtain the local time.

以下将对本发明所提供的一种基于移动终端设备的世界时钟自动更换方法进行详细说明。A method for automatically replacing a world clock based on a mobile terminal device provided by the present invention will be described in detail below.

请参阅图1,为本发明一实施方式中基于移动终端设备的世界时钟自动更换方法流程图。在本实施方式中,该方法由移动终端设备来实现。Please refer to FIG. 1 , which is a flowchart of a method for automatically replacing a world clock based on a mobile terminal device in an embodiment of the present invention. In this implementation manner, the method is implemented by a mobile terminal device.

在步骤S101中,根据全球时区的划分建立世界时钟数据库,其中,所述世界时钟数据库包括全球每一个时区的世界时钟、世界时钟城市名称以及不同时区的世界时钟之间的对应转换关系。In step S101, a world clock database is established according to the division of global time zones, wherein the world clock database includes world clocks in each time zone in the world, world clock city names, and corresponding conversion relationships between world clocks in different time zones.

在本实施方式中,世界时钟数据库包括全球按经度分为24个时区的世界时钟、每个时区对应的世界时钟城市名称以及不同时区的世界时钟之间的对应转换关系。举例来说明,世界时钟数据库包括位于东八时区的世界时钟(即北京时间)、东九时区的世界时钟(即东京时间)、西五时区的世界时钟(即纽约时间)等等,世界时钟数据库还包括每个时区对应的世界时钟城市名称,例如北京、东京、纽约等,世界时钟数据库还包括不同时区的世界时钟之间的对应转换关系,例如,当东京时间为5月1日12:00时,北京时间=12:00-(东京时间所在时区数-北京时间所在时区数)=12:00-(9-8)=11:00,也就是说东京时间为5月1日12:00相对于北京时间的5月1日11:00,在此就不对所有不同时区的世界时钟之间的对应转换关系做一一举例说明。In this embodiment, the world clock database includes the world clocks divided into 24 time zones according to the longitude, the world clock city names corresponding to each time zone, and the corresponding conversion relationship between the world clocks in different time zones. For example, the world clock database includes the world clock in the eighth east time zone (i.e. Beijing time), the world clock in the ninth east time zone (i.e. Tokyo time), the world clock in the fifth west time zone (i.e. New York time), etc., the world clock database It also includes the names of world clock cities corresponding to each time zone, such as Beijing, Tokyo, New York, etc. The world clock database also includes the corresponding conversion relationship between world clocks in different time zones, for example, when Tokyo time is 12:00 on May 1 Time, Beijing time=12:00-(Tokyo time zone number-Beijing time time zone number)=12:00-(9-8)=11:00, that is to say, Tokyo time is 12:00 on May 1 Relative to 11:00 on May 1st, Beijing time, no examples will be given to illustrate the corresponding conversion relationships between world clocks in all different time zones.

在步骤S102中,通过widget应用程序显示预设世界时钟组。在本实施方式中,预设世界时钟组至少包括两个世界时钟,其中,显示预设世界时钟组包括显示当前的实时世界时钟,以及显示与实时世界时钟相对应的世界时钟城市名称,如图2所示。In step S102, a preset world clock group is displayed through the widget application program. In this embodiment, the preset world clock group includes at least two world clocks, wherein displaying the preset world clock group includes displaying the current real-time world clock, and displaying the world clock city name corresponding to the real-time world clock, as shown in FIG. 2.

请参阅图2,为本发明一实施方式中显示预设世界时钟组的示意图。如图2所示,预设世界时钟组包括纽约时间与伦敦时间两个世界时钟,显示预设世界时钟组包括显示当前的实时世界时钟,如纽约时间当前为2:19AM、伦敦时间当前为7:19AM,同时显示预设世界时钟组还包括显示与实时世界时钟相对应的世界时钟城市名称,即“纽约”“伦敦”,这样可以让用户直观了解在预设世界时钟组内的不同世界时钟的当前实时时间。Please refer to FIG. 2 , which is a schematic diagram showing a preset world clock group in an embodiment of the present invention. As shown in Figure 2, the preset world clock group includes two world clocks, New York time and London time, and the display preset world clock group includes displaying the current real-time world clock, such as the current time in New York is 2:19 AM, and the current time in London is 7 :19AM, at the same time, displaying the preset world clock group also includes displaying the world clock city names corresponding to the real-time world clock, that is, "New York" and "London", so that users can intuitively understand the different world clocks in the preset world clock group The current real time of .

当然,在预设世界时钟组中还可以包括两个以上的世界时钟,这个可以由用户的需要而设定,同样也可以通过widget应用程序来显示包括两个以上的世界时钟的预设世界时钟组,在此就不一一举例说明。Of course, more than two world clocks can be included in the preset world clock group, which can be set according to the needs of the user, and the preset world clock including more than two world clocks can also be displayed through the widget application program group, no examples are given here.

请继续参阅图1,在步骤S103中,开启移动终端设备的定位功能。在本实施方式中,该定位功能具体为GPS定位功能,或者WiFi定位功能,具体由设置在移动终端设备内GPS定位模块或者WiFi定位模块来实现定位功能。Please continue to refer to FIG. 1. In step S103, the positioning function of the mobile terminal device is turned on. In this embodiment, the positioning function is specifically a GPS positioning function, or a WiFi positioning function, and is specifically implemented by a GPS positioning module or a WiFi positioning module disposed in the mobile terminal device.

在步骤S104中,通过定位功能获取当前移动终端设备所处的城市。在本实施方式中,具体可以先由GPS定位模块或者WiFi定位模块获取到的当前城市所在经纬度值,然后将获取到的经纬度值与世界各城市经纬度列表中的对应数据进行对比以获取所处的城市。In step S104, the city where the mobile terminal device is currently located is acquired through the positioning function. In this embodiment, specifically, the latitude and longitude value of the current city can be obtained by the GPS positioning module or the WiFi positioning module, and then the obtained latitude and longitude value is compared with the corresponding data in the list of latitude and longitude of various cities in the world to obtain the current city. City.

在步骤S105中,判断获取到的当前移动终端设备所处的城市是否存在于当前显示的预设世界时钟组中。在本实施方式中,如果预设世界时钟组包括两个世界时钟,以图2为例,那么就判断获取到的当前移动终端设备所处的城市是否存在于图2所示的预设世界时钟组中。In step S105, it is judged whether the acquired city where the mobile terminal device is currently located exists in the currently displayed preset world clock group. In this embodiment, if the preset world clock group includes two world clocks, taking FIG. 2 as an example, it is judged whether the acquired city of the current mobile terminal device exists in the preset world clock shown in FIG. 2 group.

在步骤S106中,如果步骤S105判断不存在,则在世界时钟数据库中搜索与获取到的当前移动终端设备所处的城市相对应的世界时钟,并将搜索到的世界时钟自动替换预设世界时钟组中的其中一个世界时钟,同时显示替换后的世界时钟。以图2为例进行说明,如果步骤S104中通过定位功能获取当前移动终端设备所处的城市为“北京”,那么步骤S105判断不存在,这时在步骤S106中则在世界时钟数据库中搜索与“北京”城市相对应的世界时钟(即北京时间),并将搜索到的世界时钟(即北京时间)自动替换预设世界时钟组中的其中一个世界时钟,例如可以将北京时间替换“纽约”时间或者替换“伦敦”时间,同时显示替换后的北京时间。In step S106, if step S105 judges that it does not exist, then search in the world clock database for the world clock corresponding to the city where the current mobile terminal device is located, and automatically replace the preset world clock with the searched world clock One of the world clocks in the group, showing the replaced world clock at the same time. Taking Fig. 2 as an example, if the city where the current mobile terminal device is located is obtained as "Beijing" through the positioning function in step S104, then step S105 judges that it does not exist, and then searches in the world clock database in step S106. The world clock corresponding to the city "Beijing" (i.e. Beijing time), and the searched world clock (i.e. Beijing time) will automatically replace one of the world clocks in the preset world clock group, for example, Beijing time can be replaced by "New York" Time or replace the "London" time, and display the replaced Beijing time at the same time.

在本实施方式中,如果步骤S105判断存在,则继续通过widget应用程序显示预设世界时钟组,如步骤S102所示,在此就不重复说明。In this embodiment, if it is determined in step S105 that it exists, the preset world clock group will continue to be displayed through the widget application program, as shown in step S102, and the description will not be repeated here.

本发明所提供的一种基于移动终端设备的世界时钟自动更换方法,可以根据出差地所在的时区自动调整世界时钟,以方便用户准确的获取到当地的时间。The method for automatically changing the world clock based on the mobile terminal equipment provided by the present invention can automatically adjust the world clock according to the time zone where the business trip is located, so as to facilitate the user to accurately obtain the local time.

本发明具体实施方式还提供一种基于移动终端设备的世界时钟自动更换系统10,如图3所示,主要包括:The specific embodiment of the present invention also provides a mobile terminal equipment-based automatic world clock replacement system 10, as shown in Figure 3, mainly including:

数据库建立模块101,用于根据全球时区的划分建立世界时钟数据库,其中,所述世界时钟数据库包括全球每一个时区的世界时钟、世界时钟城市名称以及不同时区的世界时钟之间的对应转换关系;The database building module 101 is used to set up a world clock database according to the division of global time zones, wherein the world clock database includes the world clock in each time zone in the world, the world clock city name and the corresponding conversion relationship between the world clocks in different time zones;

时钟显示模块102,用于通过Widget应用程序显示预设世界时钟组;The clock display module 102 is used to display the preset world clock group through the Widget application program;

开启定位模块103,用于开启所述移动终端设备的定位功能;Open the positioning module 103, for opening the positioning function of the mobile terminal device;

城市获取模块104,用于通过定位功能获取当前所述移动终端设备所处的城市;A city acquiring module 104, configured to acquire the city where the mobile terminal device is currently located through a positioning function;

判断模块105,用于判断获取到的当前所述移动终端设备所处的城市是否存在于当前显示的所述预设世界时钟组中;A judging module 105, configured to judge whether the acquired city where the mobile terminal device is currently located exists in the currently displayed preset world clock group;

替换模块106,用于如果所述判断模块判断不存在,则在所述世界时钟数据库中搜索与获取到的当前所述移动终端设备所处的城市相对应的世界时钟,并将搜索到的世界时钟自动替换所述预设世界时钟组中的其中一个世界时钟,同时显示替换后的世界时钟。A replacement module 106, configured to search the world clock database for a world clock corresponding to the acquired city where the mobile terminal device is currently located if the judging module judges that it does not exist, and use the searched world clock The clock automatically replaces one of the world clocks in the preset world clock group, and displays the replaced world clock at the same time.

本发明所提供的一种基于移动终端设备的世界时钟自动更换系统10,可以根据出差地所在的时区自动调整世界时钟,以方便用户准确的获取到当地的时间。An automatic world clock replacement system 10 based on mobile terminal equipment provided by the present invention can automatically adjust the world clock according to the time zone where the business trip is located, so that the user can accurately obtain the local time.

以下将对本发明所提供的一种基于移动终端设备的世界时钟自动更换系统10进行详细说明。A mobile terminal device-based automatic world clock replacement system 10 provided by the present invention will be described in detail below.

请参阅图3,所示为本发明一实施方式中基于移动终端设备的世界时钟自动更换系统10的结构示意图。在本实施方式中,基于移动终端设备的世界时钟自动更换系统10包括数据库建立模块101、时钟显示模块102、开启定位模块103、城市获取模块104、判断模块105、替换模块106、处理器107及存储媒介108。其中,模块101~106为存储于存储媒介108中的可执行程序,处理器107执行这些可执行程序,以实现其各自功能。在本实施方式中,移动终端设备可以为手机、个人数字助理(Personal DigitalAssistant,PDA)等,在此不做限定。Please refer to FIG. 3 , which is a schematic structural diagram of a mobile terminal device-based automatic world clock replacement system 10 in an embodiment of the present invention. In this embodiment, the world clock automatic replacement system 10 based on mobile terminal equipment includes a database building module 101, a clock display module 102, an open positioning module 103, a city acquisition module 104, a judgment module 105, a replacement module 106, a processor 107 and storage medium 108 . Wherein, the modules 101-106 are executable programs stored in the storage medium 108, and the processor 107 executes these executable programs to realize their respective functions. In this implementation manner, the mobile terminal device may be a mobile phone, a personal digital assistant (Personal Digital Assistant, PDA), etc., which is not limited here.

数据库建立模块101,用于根据全球时区的划分建立世界时钟数据库,其中,所述世界时钟数据库包括全球每一个时区的世界时钟、世界时钟城市名称以及不同时区的世界时钟之间的对应转换关系。The database building module 101 is used to create a world clock database according to the division of global time zones, wherein the world clock database includes the world clocks in each time zone in the world, the world clock city names, and the corresponding conversion relationship between world clocks in different time zones.

在本实施方式中,世界时钟数据库包括全球按经度分为24个时区的世界时钟、每个时区对应的世界时钟城市名称以及不同时区的世界时钟之间的对应转换关系。举例来说明,世界时钟数据库包括位于东八时区的世界时钟(即北京时间)、东九时区的世界时钟(即东京时间)、西五时区的世界时钟(即纽约时间)等等,世界时钟数据库还包括每个时区对应的世界时钟城市名称,例如北京、东京、纽约等,世界时钟数据库还包括不同时区的世界时钟之间的对应转换关系,例如,当东京时间为5月1日12:00时,北京时间=12:00-(东京时间所在时区数-北京时间所在时区数)=12:00-(9-8)=11:00,也就是说东京时间为5月1日12:00相对于北京时间的5月1日11:00,在此就不对所有不同时区的世界时钟之间的对应转换关系做一一举例说明。In this embodiment, the world clock database includes the world clocks divided into 24 time zones according to the longitude, the world clock city names corresponding to each time zone, and the corresponding conversion relationship between the world clocks in different time zones. For example, the world clock database includes the world clock in the eighth east time zone (i.e. Beijing time), the world clock in the ninth east time zone (i.e. Tokyo time), the world clock in the fifth west time zone (i.e. New York time), etc., the world clock database It also includes the names of world clock cities corresponding to each time zone, such as Beijing, Tokyo, New York, etc. The world clock database also includes the corresponding conversion relationship between world clocks in different time zones, for example, when Tokyo time is 12:00 on May 1 Time, Beijing time=12:00-(Tokyo time zone number-Beijing time time zone number)=12:00-(9-8)=11:00, that is to say, Tokyo time is 12:00 on May 1 Relative to 11:00 on May 1st, Beijing time, no examples will be given to illustrate the corresponding conversion relationships between world clocks in all different time zones.

时钟显示模块102,用于通过widget应用程序显示预设世界时钟组。在本实施方式中,预设世界时钟组至少包括两个世界时钟,其中,显示预设世界时钟组包括显示当前的实时世界时钟,以及显示与实时世界时钟相对应的世界时钟城市名称,如图2所示,预设世界时钟组包括纽约时间与伦敦时间两个世界时钟,显示预设世界时钟组包括显示当前的实时世界时钟,如纽约时间当前为2:19AM、伦敦时间当前为7:19AM,同时显示预设世界时钟组还包括显示与实时世界时钟相对应的世界时钟城市名称,即“纽约”“伦敦”,这样可以让用户直观了解在预设世界时钟组内的不同世界时钟的当前实时时间。The clock display module 102 is configured to display a preset world clock group through a widget application program. In this embodiment, the preset world clock group includes at least two world clocks, wherein displaying the preset world clock group includes displaying the current real-time world clock, and displaying the world clock city name corresponding to the real-time world clock, as shown in FIG. As shown in 2, the preset world clock group includes two world clocks, New York time and London time, and the display preset world clock group includes displaying the current real-time world clock, such as the current time in New York is 2:19AM, and the current time in London is 7:19AM , while displaying the preset world clock group also includes displaying the world clock city names corresponding to the real-time world clock, that is, "New York" and "London", so that users can intuitively understand the current status of different world clocks in the preset world clock group real time.

当然,在预设世界时钟组中还可以包括两个以上的世界时钟,这个可以由用户的需要而设定,同样也可以通过widget应用程序来显示包括两个以上的世界时钟的预设世界时钟组,在此就不一一举例说明。Of course, more than two world clocks can be included in the preset world clock group, which can be set according to the needs of the user, and the preset world clock including more than two world clocks can also be displayed through the widget application program group, no examples are given here.

请继续参阅图3,开启定位模块103,用于开启移动终端设备的定位功能。在本实施方式中,该定位功能具体为GPS定位功能,或者WiFi定位功能,具体由设置在移动终端设备内GPS定位模块或者WiFi定位模块来实现定位功能。Please continue to refer to FIG. 3 , the positioning module 103 is enabled, which is used to enable the positioning function of the mobile terminal device. In this embodiment, the positioning function is specifically a GPS positioning function, or a WiFi positioning function, and is specifically implemented by a GPS positioning module or a WiFi positioning module disposed in the mobile terminal device.

城市获取模块104,用于通过定位功能获取当前移动终端设备所处的城市。在本实施方式中,具体可以先由GPS定位模块或者WiFi定位模块获取到的当前城市所在经纬度值,然后将获取到的经纬度值与世界各城市经纬度列表中的对应数据进行对比以获取所处的城市。The city acquisition module 104 is configured to acquire the city where the mobile terminal device is currently located through the positioning function. In this embodiment, specifically, the latitude and longitude value of the current city can be obtained by the GPS positioning module or the WiFi positioning module, and then the obtained latitude and longitude value is compared with the corresponding data in the list of latitude and longitude of various cities in the world to obtain the current city. City.

判断模块105,用于判断获取到的当前移动终端设备所处的城市是否存在于当前显示的预设世界时钟组中。在本实施方式中,如果预设世界时钟组包括两个世界时钟,以图2为例,那么就判断获取到的当前移动终端设备所处的城市是否存在于图2所示的预设世界时钟组中。The judging module 105 is configured to judge whether the acquired city where the current mobile terminal device is located exists in the currently displayed preset world clock group. In this embodiment, if the preset world clock group includes two world clocks, taking FIG. 2 as an example, it is judged whether the acquired city of the current mobile terminal device exists in the preset world clock shown in FIG. 2 group.

替换模块106,用于如果判断模块105判断不存在,则在世界时钟数据库中搜索与获取到的当前移动终端设备所处的城市相对应的世界时钟,并将搜索到的世界时钟自动替换预设世界时钟组中的其中一个世界时钟,同时显示替换后的世界时钟。以图2为例进行说明,如果城市获取模块104通过定位功能获取当前移动终端设备所处的城市为“北京”,那么判断模块105判断不存在,这时替换模块106则在世界时钟数据库中搜索与“北京”城市相对应的世界时钟(即北京时间),并将搜索到的世界时钟(即北京时间)自动替换预设世界时钟组中的其中一个世界时钟,例如可以将北京时间替换“纽约”时间或者替换“伦敦”时间,同时显示替换后的北京时间。Replacement module 106, for if judging module 105 judges not to exist, then search in the world clock database and obtain the world clock corresponding to the city where the current mobile terminal device is located, and automatically replace the preset world clock with the searched world clock One of the world clocks in the world clock group, showing the replaced world clock at the same time. Taking Fig. 2 as an example, if the city acquisition module 104 acquires the city where the current mobile terminal device is located as "Beijing" through the positioning function, then the judging module 105 judges that it does not exist, and the replacement module 106 then searches in the world clock database. The world clock corresponding to the city "Beijing" (i.e. Beijing time), and the searched world clock (i.e. Beijing time) will automatically replace one of the world clocks in the preset world clock group, for example, Beijing time can be replaced by "New York time" " time or replace the "London" time, and display the replaced Beijing time at the same time.

在本实施方式中,时钟显示模块102还用于如果判断模块105判断存在,则继续通过widget应用程序显示预设世界时钟组,在此就不重复说明。In this embodiment, the clock display module 102 is also configured to continue to display the preset world clock group through the widget application program if the judging module 105 judges that it exists, and the description will not be repeated here.

本发明所提供的一种基于移动终端设备的世界时钟自动更换系统10,可以根据出差地所在的时区自动调整世界时钟,以方便用户准确的获取到当地的时间。An automatic world clock replacement system 10 based on mobile terminal equipment provided by the present invention can automatically adjust the world clock according to the time zone where the business trip is located, so that the user can accurately obtain the local time.

在本发明实施例中,本发明提供的技术方案,可以根据出差地所在的时区自动调整世界时钟,以方便用户准确的获取到当地的时间。In the embodiment of the present invention, the technical solution provided by the present invention can automatically adjust the world clock according to the time zone where the business trip is located, so as to facilitate the user to accurately obtain the local time.

值得注意的是,上述实施例中,所包括的各个单元只是按照功能逻辑进行划分的,但并不局限于上述的划分,只要能够实现相应的功能即可;另外,各功能单元的具体名称也只是为了便于相互区分,并不用于限制本发明的保护范围。It is worth noting that in the above embodiments, the units included are only divided according to the functional logic, but are not limited to the above division, as long as the corresponding functions can be realized; in addition, the specific names of the functional units are also It is only for the convenience of distinguishing each other, and is not intended to limit the protection scope of the present invention.

另外,本领域普通技术人员可以理解实现上述各实施例方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,相应的程序可以存储于一计算机可读取存储介质中,所述的存储介质,如ROM/RAM、磁盘或光盘等。In addition, those of ordinary skill in the art can understand that all or part of the steps in the methods of the above-mentioned embodiments can be completed by instructing related hardware through programs, and the corresponding programs can be stored in a computer-readable storage medium. Storage media, such as ROM/RAM, magnetic disk or optical disk, etc.

以上所述仅为本发明的较佳实施例而已,并不用以限制本发明,凡在本发明的精神和原则之内所作的任何修改、等同替换和改进等,均应包含在本发明的保护范围之内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the present invention. Any modifications, equivalent replacements and improvements made within the spirit and principles of the present invention should be included in the protection of the present invention. within range.

Claims (8)

1., based on the automatic replacing options of World clock of mobile terminal device, it is characterized in that, described method comprises:
Set up World clock database according to the division of whole world time zone, wherein, described World clock database comprises the corresponding conversion relation between the World clock of the whole world World clock in each time zone, World clock city title and different time zone;
By widget application program display preset world clock group; Described display preset world clock group comprises the current real-time World clock of display, and the World clock city title that display is corresponding with real-time World clock;
Open the positioning function of described mobile terminal device;
The city residing for current described mobile terminal device is obtained by positioning function;
Judge whether the city residing for current described mobile terminal device got is present in the described preset world clock group of current display;
If there is no, the World clock that then search is corresponding with the city residing for the current described mobile terminal device got in described World clock database, and one of them World clock World clock searched replaced automatically in described preset world clock group, show the World clock after replacing simultaneously.
2. as claimed in claim 1 based on the automatic replacing options of World clock of mobile terminal device, it is characterized in that, described preset world clock group at least comprises two worlds clock, wherein, described display preset world clock group comprises the current real-time World clock of display, and the World clock city title that display is corresponding with real-time World clock.
3., as claimed in claim 1 based on the automatic replacing options of World clock of mobile terminal device, it is characterized in that, described positioning function is specially GPS positioning function, or WiFi positioning function.
4. as claimed in claim 1 based on the automatic replacing options of World clock of mobile terminal device, it is characterized in that, the city residing for current described mobile terminal device that described judgement gets also comprises after whether being present in the step in the described preset world clock group of current display:
If existed, then continue through widget application program display preset world clock group.
5. based on a World clock automatic-exchanging system for mobile terminal device, it is characterized in that, described system comprises:
Database module, for setting up World clock database according to the division of whole world time zone, wherein, described World clock database comprises the corresponding conversion relation between the World clock of the whole world World clock in each time zone, World clock city title and different time zone;
Clock display module, for showing preset world clock group by Widget application program; Described display preset world clock group comprises the current real-time World clock of display, and the World clock city title that display is corresponding with real-time World clock;
Open locating module, for opening the positioning function of described mobile terminal device;
City acquisition module, for obtaining the city residing for current described mobile terminal device by positioning function;
Judge module, for judging whether the city residing for the current described mobile terminal device that gets is present in the described preset world clock group of current display;
Replacement module, if judge not exist for described judge module, the World clock that then search is corresponding with the city residing for the current described mobile terminal device got in described World clock database, and one of them World clock World clock searched replaced automatically in described preset world clock group, show the World clock after replacing simultaneously.
6. as claimed in claim 5 based on the World clock automatic-exchanging system of mobile terminal device, it is characterized in that, described preset world clock group at least comprises two worlds clock, wherein, described display preset world clock group comprises the current real-time World clock of display, and the World clock city title that display is corresponding with real-time World clock.
7., as claimed in claim 5 based on the World clock automatic-exchanging system of mobile terminal device, it is characterized in that, described positioning function is specially GPS positioning function, or WiFi positioning function.
8. as claimed in claim 5 based on the World clock automatic-exchanging system of mobile terminal device, it is characterized in that, described clock display module, if also judge to exist for described judge module, then continues through widget application program display preset world clock group.
CN201310037207.1A 2013-01-30 2013-01-30 Automatic world clock replacing method and system based on mobile terminal equipment Active CN103076738B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310037207.1A CN103076738B (en) 2013-01-30 2013-01-30 Automatic world clock replacing method and system based on mobile terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310037207.1A CN103076738B (en) 2013-01-30 2013-01-30 Automatic world clock replacing method and system based on mobile terminal equipment

Publications (2)

Publication Number Publication Date
CN103076738A CN103076738A (en) 2013-05-01
CN103076738B true CN103076738B (en) 2015-08-05

Family

ID=48153305

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310037207.1A Active CN103076738B (en) 2013-01-30 2013-01-30 Automatic world clock replacing method and system based on mobile terminal equipment

Country Status (1)

Country Link
CN (1) CN103076738B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103473259A (en) * 2013-06-18 2013-12-25 展讯通信(上海)有限公司 Display interface change system and display interface change method
US10496044B2 (en) 2014-12-26 2019-12-03 Citizen Watch Co., Ltd. Satellite radio-controlled watch
CN105911860A (en) 2016-04-25 2016-08-31 惠州Tcl移动通信有限公司 Time zone automatic updating method of bluetooth watch and time zone automatic updating system thereof
CN106446058A (en) * 2016-09-05 2017-02-22 乐视控股(北京)有限公司 World clock recommendation processing method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101825866A (en) * 2009-03-02 2010-09-08 精工爱普生株式会社 Electronic device and satellite signal receiving method for electronic device
CN102004442A (en) * 2009-09-01 2011-04-06 精工爱普生株式会社 Clocks with built-in antennas
CN102608907A (en) * 2011-01-20 2012-07-25 精工爱普生株式会社 Time adjustment device, timekeeping device with a time adjustment device, and time adjustment method
CN102883071A (en) * 2012-10-18 2013-01-16 天翼电信终端有限公司 Mobile terminal and time display method of mobile terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101825866A (en) * 2009-03-02 2010-09-08 精工爱普生株式会社 Electronic device and satellite signal receiving method for electronic device
CN102004442A (en) * 2009-09-01 2011-04-06 精工爱普生株式会社 Clocks with built-in antennas
CN102608907A (en) * 2011-01-20 2012-07-25 精工爱普生株式会社 Time adjustment device, timekeeping device with a time adjustment device, and time adjustment method
CN102883071A (en) * 2012-10-18 2013-01-16 天翼电信终端有限公司 Mobile terminal and time display method of mobile terminal

Also Published As

Publication number Publication date
CN103076738A (en) 2013-05-01

Similar Documents

Publication Publication Date Title
US11243087B2 (en) Device and method for providing content to user
US10469994B2 (en) Labeling locations based on contact information
CN106209935B (en) Information processing method, terminal and server
CN101790002A (en) Method, system and device for managing images and geographic position data of mobile device
US12436975B2 (en) Visual search system for finding trip destination
CN103278155B (en) Navigation method and mobile navigation device
CN103076738B (en) Automatic world clock replacing method and system based on mobile terminal equipment
CN107807759B (en) Address display method, device, equipment and user interface system
US9892176B2 (en) Method and apparatus for providing a smart address finder
CN107883976A (en) City tour's route planning method and device based on cloud computing
CN108712477A (en) The method and apparatus for obtaining the information of the user equipment in communication system
CN107995375A (en) Information pushing method, mobile terminal and storage medium
CN104132667A (en) Implementation method of fast navigation among contacts of smart mobile phone
CN103237290A (en) Method, mobile terminal and system for displaying festival information
JP6006338B2 (en) Method, device and terminal for SNS system application prompt
WO2019128269A1 (en) Alert method and device
US9031978B1 (en) Provision of location-based business information
CN108255371A (en) Information pushing method, mobile terminal and storage medium
US20150178355A1 (en) Systems and methods for determining the operating hours of an entity
CN103900601A (en) Event reminding method and device based on navigation map
CN103310702B (en) The system and method for mobile terminal after-sale service data is quickly shown based on LBS service
WO2018053789A1 (en) Clock addition method and device
Ertugrul et al. RemindMe: an enhanced mobile location-based reminder application
CN103575266A (en) Method and system of mobile navigation as well as GIS (geographic information system) server
CN103020036A (en) Method, device and terminal equipment for place name recognition

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Patentee after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP., Ltd.

Address before: Changan town in Guangdong province Dongguan 523841 usha Beach Road No. 18

Patentee before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP., Ltd.