WO2019061109A1 - 一种用于智能设备的时钟的显示方法及显示装置 - Google Patents
一种用于智能设备的时钟的显示方法及显示装置 Download PDFInfo
- Publication number
- WO2019061109A1 WO2019061109A1 PCT/CN2017/103797 CN2017103797W WO2019061109A1 WO 2019061109 A1 WO2019061109 A1 WO 2019061109A1 CN 2017103797 W CN2017103797 W CN 2017103797W WO 2019061109 A1 WO2019061109 A1 WO 2019061109A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- time zone
- time
- location
- smart device
- information
- 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.)
- Ceased
Links
Images
Classifications
-
- G—PHYSICS
- G04—HOROLOGY
- G04B—MECHANICALLY-DRIVEN CLOCKS OR WATCHES; MECHANICAL PARTS OF CLOCKS OR WATCHES IN GENERAL; TIME PIECES USING THE POSITION OF THE SUN, MOON OR STARS
- G04B19/00—Indicating the time by visual means
- G04B19/22—Arrangements for indicating different local apparent times; Universal time pieces
-
- G—PHYSICS
- G04—HOROLOGY
- G04R—RADIO-CONTROLLED TIME-PIECES
- G04R20/00—Setting the time according to the time information carried or implied by the radio signal
Definitions
- the present invention relates to the field of smart devices, and in particular, to a display method and a display device for a clock of a smart device.
- the time on mobile phones is becoming more and more important to people.
- the world time function on the mobile phone platform is for the user to query in the world time corresponding to the countries and regions preset on the mobile phone flash memory, but only the fixed countries and regions can be queried, and the time in all regions of the world is not covered. Queries, which lack real-time and require manual phone time setting. If the user does not know where they are, they will not be able to query and set the local time through the World Time feature in the current mobile phone.
- the alarm function as one of the basic functions of mobile terminals such as mobile phones has also been widely used. More and more users who travel frequently, I hope to keep the alarm in a certain time zone when I am in different time zones. For example, when the user is in New York or South Africa, I want to fix the alarm at 10 o'clock in Beijing time and participate in Beijing. 10 minutes video conference at headquarters.
- the existing alarm clock can only set the alarm time of the current time zone. If the user changes the time zone, the alarm time is not updated. For example, the user sets the alarm to 10 o'clock every day in Beijing.
- the alarm clock The time is still 10 o'clock in New York time, while Beijing time is 2 o'clock. At this point, if the user still wants to ring at 10 o'clock in Beijing time, he needs to manually reset the alarm time to 18 o'clock in the afternoon. This alarm setting method brings inconvenience to the user.
- an object of the present invention is to provide a display method and a display device for a clock of a smart device.
- the invention discloses a display method for a clock of a smart device, characterized in that the display method comprises:
- the time information of the current time zone and the time information of the default time zone are simultaneously displayed.
- the location information of the location of the smart device is obtained, and the time zone corresponding to the location information is obtained according to the location information, including:
- a list of correspondences between the dwell times corresponding to the smart devices in each of the time zones is recorded, including:
- selecting the time zone corresponding to the longest stay time in the list of the corresponding relationships is a default time zone, including:
- the time information of the current time zone and the time information of the default time zone are simultaneously displayed, including:
- the display area of the smart device is simultaneously displayed. Time information of the previous time zone and time information of the default time zone.
- the present invention also discloses a display device for a clock of a smart device, wherein the display device comprises: a position module, a recording module, a selection module, and a display module, wherein
- the location module is configured to acquire location information of a location of the smart device by using at least one communication manner, and obtain a time zone corresponding to the location information according to the location information;
- the recording module is configured to be in communication with the location module, and is configured to record, when the time zone corresponding to the location information of the location of the smart device changes, a stop corresponding to the smart device in each of the time zones. a list of correspondences between times;
- the selection module is in communication with the recording module, and is configured to select the time zone corresponding to the longest stay time in the list of the corresponding relationship as a default time zone;
- the display module is configured to be in communication with the selection module, configured to simultaneously display time information of the current time zone and the default time zone when a current time zone corresponding to a current location of the smart device is different from the default time zone. Time information.
- the location module comprises:
- a latitude and longitude acquisition unit configured to acquire latitude and longitude information of a location of the smart device by using one of a GPS or a wireless network;
- the time zone obtaining unit is configured to be in communication with the latitude and longitude acquisition unit, and configured to acquire the time zone corresponding to the latitude and longitude information according to the latitude and longitude information.
- the recording module comprises:
- a setting unit configured to set a list of correspondence between the time zone and the dwell time
- an update unit configured to be in communication with the setting unit, configured to update, when the time zone corresponding to the location information of the location of the smart device changes, and the time zone matches the list of the corresponding relationship, update the time zone corresponding to the time zone The residence time;
- a new unit in communication with the setting unit, configured to: when the time zone corresponding to the location information of the location of the smart device changes and the time zone does not match the list of the corresponding relationship, in the corresponding relationship A correspondence between the time zone and the dwell time is newly created in the list.
- the selection module comprises:
- a sorting unit configured to sort the stay time in the list of the corresponding relationships
- the time zone setting unit is in communication with the sorting unit, configured to acquire the longest time zone corresponding to the dwell time, and set the time zone as a default time zone.
- the display module comprises:
- a current location unit configured to acquire location information of the current location of the smart device
- the current time zone unit is in communication with the current location unit, and is configured to acquire a current time zone corresponding to the location information of the current location according to the location information of the current location;
- a clock display unit configured to communicate with the current time zone unit, to display time information of the current time zone and the default time zone simultaneously in the display area of the smart device when the current time zone is different from the default time zone Time information.
- the method and device for setting a dual time zone clock according to the present invention can automatically update the display clock time according to the change of the time zone of the user's location, which is convenient for the user to use.
- FIG. 1 is a schematic flow chart in accordance with a preferred embodiment of the present invention.
- FIG. 2 is a schematic flow chart of a specific implementation of step 101 shown in FIG. 1;
- step 102 shown in FIG. 1 is a schematic flow chart of a specific implementation of step 102 shown in FIG. 1;
- step 103 shown in FIG. 1;
- FIG. 5 is a schematic flow chart of a specific implementation of step 104 shown in FIG. 1;
- Figure 6 is a schematic view of the structure in accordance with a preferred embodiment of the present invention.
- Figure 7 is a schematic view of the structure in accordance with a preferred embodiment of the present invention.
- Figure 8 is a schematic view of the structure in accordance with a preferred embodiment of the present invention.
- Figure 9 is a schematic view of the structure in accordance with a preferred embodiment of the present invention.
- Figure 10 is a schematic view of the structure in accordance with a preferred embodiment of the present invention.
- the smart device used herein includes a device of a wireless signal receiver, a device having only a wireless signal receiver without a transmitting capability, and a device for receiving and transmitting hardware, which has the capability to A device that performs bidirectional communication reception and transmission hardware on a two-way communication link.
- Such devices may include cellular or other communication devices having a single line display or a multi-line display or a cellular or other communication device without a multi-line display; PCS (Personal Communications Services, personal communication system), which may combine voice, data processing, Fax and / or data communication capabilities; PDA (Personal Digital Assistant, personal digital assistant), which can include radio frequency receiver, pager, Internet / intranet access, web browser, notepad, calendar and / or GPS (Global Positioning System, Global Positioning System Receiver; conventional laptop and/or palmtop computer or other device having and/or including a conventional laptop and/or palmtop computer or other device of a radio frequency receiver.
- PCS Personal Communications Services, personal communication system
- PDA Personal Digital Assistant, personal digital assistant
- GPS Global Positioning System, Global Positioning System Receiver
- conventional laptop and/or palmtop computer or other device having and/or including a conventional laptop and/or palmtop computer or other device of a radio frequency receiver.
- device may be portable, transportable, installed in a vehicle (aviation, sea and/or land), or adapted and/or configured to operate locally, and/or Run in any other location on the Earth and/or space in a distributed form.
- the "device” and “smart device” used herein may also be a communication device, a connection device, a music/video playback device, such as a PDA, a MID (Mobile Internet Device), and/or a music/video playback function.
- Mobile phones can also be smart TVs, set-top boxes and other devices.
- first, second, third, etc. may be used in the present disclosure to describe various information, such information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other.
- first information may also be referred to as second information without departing from the scope of the present disclosure.
- second information may also be referred to as first information.
- word "if” as used herein may be interpreted as "when” or "when” or "in response to determination.”
- GPS Global Positioning System
- NMEA National Marine Alliances Association
- UTC UniversalTimeCoordinated
- Buffer buffer
- GPRMC Global Positioning System
- GPGGA Global Positioning System
- GPGSV Global Positioning System
- GPGSA Global Positioning System
- NMEA National Marine Alliances Association
- a flow diagram consistent with a preferred embodiment of the present invention includes:
- Step 101 Acquire location information of a location of the smart device, and obtain a time zone corresponding to the location information according to the location information.
- the latitude and longitude information of the location of the smart device is obtained by one of a GPS or a wireless network.
- a GPS is provided on the smart device, the data is received by the GPS and the location information it includes is included, the location information including longitude information.
- the predetermined standard time of the smart device is calculated according to the parsed location information by a predetermined rule. Specifically, if the longitude information is determined to be east longitude, the obtained UTC time is added to the time zone value to obtain the local standard time. If the longitude information is determined to be the west longitude, the obtained UTC time is subtracted from the time zone value. Standard time of the place.
- the hardware abstraction layer initialization is first performed, that is, the serial port is opened and the new log output directory is opened; secondly, the GPS initialization is performed, which in turn includes: driving initialization of the GPS chip, opening and sending a series of initialization commands to the A-GPS chip, ready to receive satellite data.
- the device startup mode cold start, warm start, warm start
- the initialization of the received NMEA data that is, the primary end of the pseudo terminal (virtual terminal) is turned on to receive the NMEA data of the satellite; finally, the port completion data is closed. Reception.
- NMEA data has four formats: GPRMC, GPGGA, GPGSV, GPGSA.
- GPRMC statement fully satisfies the requirements.
- the GPRMC statement includes fields such as latitude and longitude, speed, time and magnetic declination. Adequate information is provided to determine the time zone of the location.
- time zone of the location of the smart device and the standard time of the time zone are calculated by analyzing the data.
- the predetermined rule in the calculating module is: the longitude information is the UTC time and the obtained UTC time The time zone values are added to obtain the local standard time; when the longitude information is west longitude, the obtained UTC time is subtracted from the time zone value to obtain the local standard time.
- Step 102 When the time zone corresponding to the location information of the location of the smart device changes, record a list of correspondences between the dwell times corresponding to the smart devices in each of the time zones;
- the foregoing correspondence may be stored in a data file or may be stored in a database.
- the data file or the database may be set locally on the smart device or may be set on the server.
- the server When the data file or the database is set on the server, the specific information is obtained through a storage communication structure, and the server includes a backplane, and the chip, the processor, the memory, the bridge chip and the like are mounted on the bottom board, and is used for controlling other extended devices to implement The function of the server.
- the server is configured to obtain a storage operation request, generate a storage instruction sequence according to the storage operation request, and determine an operation type of the storage operation request, a storage type identifier, and a memory address of the storage instruction sequence, and then store the operation type and storage according to the storage operation request.
- the type identifier and the memory address of the stored instruction sequence generate a storage request queue, and finally the storage request is queued to the storage controller.
- the connection between the server and the storage controller is PCIE, and the connection mode between the server and the storage controller is implemented.
- the server includes a memory, a processor, a communication bus, a bridge, and a communication interface.
- the memory stores the program code
- the processor calls the program code stored in the memory for executing the storage method
- the communication interface is used to implement communication between the server and the storage controller
- the communication bus is used to implement the connection communication between the memory and the processor. .
- the minimum unit for storing the dwell time is hour.
- the dwell time corresponding to the time zone is increased by one hour based on the dwell time, which is 24 hours.
- the hour round is one day, and the 365 days round is one year, and the correspondence is updated in real time.
- the correspondence relationship is stored as a correspondence relationship between the information of the time zone and the dwell time corresponding to the information of the time zone.
- a table for indicating a correspondence between a category in the area and a dwell time of the smart device in the time zone is stored in the correspondence relationship.
- An example of the contents of the correspondence table is shown as follows. The entries of "time zone information" and "time zone in time zone” are stored in a table associated with each other in a manner associated with each other. In these entries, information indicating the kind of information of each time zone is stored in the entry of "information of time zone", and storage in the entry of "dwell time in time zone" indicates that the smart device is in the time zone.
- the information of the "(UTC+08:00)" time zone should be associated with “4 days and 20 hours", and the information of the "(UTC+10:00)" time zone should be related to "5 days and 20 hours”.
- the correspondence is set as a list of correspondences.
- the corresponding relationship between the time zone of the location and the dwell time is set and added to the list of the corresponding relationship.
- Step 103 Select the time zone corresponding to the longest stay time in the list of the corresponding relationship as a default time zone;
- the corresponding relationship is read, and the time zone corresponding to the maximum dwell time is obtained, and a default flag is set for the time zone, and the time zone is marked as the default time zone.
- the corresponding relationship On the condition of the maximum dwell time, the corresponding relationship is read, the time zone corresponding to the maximum dwell time is obtained, a default mark is set for the time zone, and the time zone is marked as the default time zone; and the dwell time of the corresponding relationship is detected in real time. After the update operation is added, the corresponding relationship is read on the condition of the maximum dwell time, and the time zone corresponding to the maximum dwell time is obtained. When the time zone is different from the default time zone, a default tag is set for the time zone, and the time zone is marked as The default time zone.
- Step 104 When the current time zone corresponding to the current location of the smart device is different from the default time zone, time information of the current time zone and time information of the default time zone are simultaneously displayed;
- the time information of the current time zone and the time information of the default time zone are simultaneously displayed.
- the update clock time is the clock time of the current time zone, and the clock time of the default time zone is also displayed.
- the data is received by the GPS and the location information it includes is included, the location information including longitude information.
- the current location standard time of the smart device is calculated according to the parsed location information. Specifically, if the longitude information is determined to be east longitude, the obtained UTC time is added to the time zone value to obtain the current local standard time. If the longitude information is determined to be the west longitude, the obtained UTC time is subtracted from the time zone value. Get the current local standard time.
- the time information of the current time zone and the time information of the default time zone are simultaneously displayed in the display area of the smart device.
- the default time zone is searched in the time zone correspondence list that has been set by the smart device, and the correspondence relationship list includes a time zone corresponding to the time zone, and the time zone corresponding to the time zone is updated in real time, that is, when the smart time is When the device is in a time zone, it increases the dwell time of the smart device in the time zone in real time, and finally sets the time zone with the longest dwell time as the default time zone.
- the display area of the smart device By comparing the current time zone with the default time zone, when the two time zones are different, the display area of the smart device will set two clocks to display the time of the mode time zone and the time of the current time zone, and at the same time, the time zone of the time zone will still be updated in real time. .
- the smart device first needs to determine the current time zone. If the current time zone and the default time zone of the clock belong to each other, the clock time and the alarm time displayed to the user are the set clock time. If the current time zone does not match the default time zone of the clock, the current time zone clock time displayed to the user and the time of the default time zone clock need to be converted by world time. Searching in the time zone table preset by the smart device, the time zone table includes time zones corresponding to each city and each city, and the time difference between the two time zones can be obtained by searching the time zone table, and the set clock time is added or subtracted from the time difference. , that is, the clock time corresponding to the current time zone, and also the clock time displayed to the user.
- a default time zone clock of Beijing time is set in the smart device of a user in New York, first select the clock option as the world time clock, then select the Beijing time zone and clock time.
- the smart device first determines that the current time zone is New York. After time conversion, the New York time corresponding to 10:00 Beijing time is 18 points, then the smart device displays the default time zone clock time of 18 points and displays New York time 18 points. If the user switches to the London time zone after setting the clock, the default time zone clock time displayed by the smart device after conversion is 2 am.
- time zone table of the world time clock should be consistent with the world time setting list of the smart device to avoid errors, and the update of the clock time is applicable to the time zone change, excluding the user's change of the smart device clock.
- the device according to the present invention can be implemented by a display device 10, and includes: a position module 11, a recording module 12, a selection module 13, and a display module 14
- the latitude and longitude acquisition unit is configured to acquire latitude and longitude information of a location of the smart device by one of a GPS or a wireless network.
- the location module 11 sets a GPS on the smart device, and the latitude and longitude acquisition unit receives data through the GPS and parses the location information it includes, and the location information includes longitude information.
- the time zone obtaining unit is configured to be in communication with the latitude and longitude acquisition unit, and configured to acquire the time zone corresponding to the latitude and longitude information according to the latitude and longitude information.
- the time zone obtaining unit calculates a local standard time of the smart device according to the parsed location information by using a predetermined rule. Specifically, if the longitude information is determined to be east longitude, the obtained UTC time is added to the time zone value to obtain the local standard time. If the longitude information is determined to be the west longitude, the obtained UTC time is subtracted from the time zone value. Standard time of the place.
- the predetermined rule can be:
- the hardware abstraction layer initialization is first performed, that is, the serial port is opened and the new log output directory is opened; secondly, the GPS initialization is performed, which in turn includes: driving initialization of the GPS chip, opening and sending a series of initialization commands to the A-GPS chip, ready to receive satellite data.
- the device startup mode cold start, warm start, warm start
- the initialization of the received NMEA data that is, the primary end of the pseudo terminal (virtual terminal) is turned on to receive the NMEA data of the satellite; finally, the port completion data is closed. Reception.
- NMEA data has four formats: GPRMC, GPGGA, GPGSV, GPGSA.
- GPRMC statement fully satisfies the requirements.
- the GPRMC statement includes fields such as latitude and longitude, speed, time and magnetic declination. Adequate information is provided to determine the time zone of the location.
- time zone of the location of the smart device and the standard time of the time zone are calculated by analyzing the data.
- the predetermined rule in the calculating module is: the UTC that will be obtained when the longitude information is east longitude The time is added to the time zone value to obtain the local standard time; when the longitude information is the west longitude, the obtained UTC time is subtracted from the time zone value to obtain the local standard time.
- Communicating with the location module when the time zone corresponding to the location information of the location of the smart device changes, recording a correspondence between the dwell time corresponding to the smart device being in each of the time zones a list of relationships;
- the list of the corresponding relationships may be stored in the data file or may be stored in the database.
- the data file or the database may be set locally on the smart device or may be set on the server.
- the server When the data file or the database is set on the server, the specific information is obtained through a storage communication structure, and the server includes a backplane, and the chip, the processor, the memory, the bridge chip and the like are mounted on the bottom board, and is used for controlling other extended devices to implement The function of the server.
- the server is configured to obtain a storage operation request, generate a storage instruction sequence according to the storage operation request, and determine an operation type of the storage operation request, a storage type identifier, and a memory address of the storage instruction sequence, and then store the operation type and storage according to the storage operation request.
- the type identifier and the memory address of the stored instruction sequence generate a storage request queue, and finally the storage request is queued to the storage controller.
- the connection between the server and the storage controller is PCIE, and the connection mode between the server and the storage controller is implemented.
- the server includes a memory, a processor, a communication bus, a bridge, and a communication interface.
- the memory stores the program code
- the processor calls the program code stored in the memory for executing the storage method
- the communication interface is used to implement communication between the server and the storage controller
- the communication bus is used to implement the connection communication between the memory and the processor. .
- a setting unit configured to set a list of correspondence between the time zone and the dwell time
- the setting unit stores the correspondence as a correspondence relationship between the information of the time zone and the dwell time corresponding to the information of the time zone.
- a table for indicating a correspondence between a category in the area and a staying time of the smart device in the time zone is stored in the correspondence relationship storage unit.
- An example of the contents of the correspondence table is shown as follows. The entries of "time zone information" and "time zone in time zone” are stored in a table associated with each other in a manner associated with each other. In these entries, information indicating the kind of information of each time zone is stored in the entry of "information of time zone", and storage in the entry of "dwell time in time zone" indicates that the smart device is in the time zone.
- the information of the "(UTC+08:00)" time zone should be associated with “4 days and 20 hours", and the information of the "(UTC+10:00)" time zone should be related to "5 days and 20 hours”.
- the correspondence is set as a list of correspondences.
- an updating unit configured to: when the time zone corresponding to the location information of the location of the smart device changes and the time zone matches the list of the corresponding relationship, update the stay time corresponding to the time zone;
- the time calculation unit saves the minimum unit of the dwell time as an hour, and when the system clock elapses by one hour, the dwell time corresponding to the time zone is increased by one hour based on the dwell time.
- the 24-hour carry-in is one day, and the 365-day carry-in is one year, and the correspondence is updated in real time.
- a new unit configured to create a new time zone in the list of the corresponding relationship when the time zone corresponding to the location information of the location of the smart device changes and the time zone does not match the list of the corresponding relationship Corresponding relationship between the residence times;
- the corresponding relationship between the time zone of the location and the dwell time is set and added to the list of the corresponding relationship.
- the time zone corresponding to the longest stay time in the list for selecting the correspondence relationship is a default time zone
- the corresponding relationship is read, and the time zone corresponding to the maximum dwell time is obtained, and a default flag is set for the time zone, and the time zone is marked as the default time zone.
- a sorting unit configured to sort the stay time in the list of the corresponding relationships
- the sorting unit reads the correspondence from the location where the correspondence is stored.
- a time zone setting unit configured to acquire the longest time zone corresponding to the dwell time, and set the time zone as a default time zone
- the corresponding relationship On the condition of the maximum dwell time, the corresponding relationship is read, the time zone corresponding to the maximum dwell time is obtained, a default mark is set for the time zone, and the time zone is marked as the default time zone; and the dwell time of the corresponding relationship is detected in real time. After the update operation is added, the corresponding relationship is read on the condition of the maximum dwell time, and the time zone corresponding to the maximum dwell time is obtained. When the time zone is different from the default time zone, a default tag is set for the time zone, and the time zone is marked as The default time zone.
- the time information of the current time zone and the time information of the default time zone are simultaneously displayed.
- the update clock time is the clock time of the current time zone, and the clock time of the default time zone is also displayed.
- a current location unit configured to acquire location information of the current location of the smart device
- the current location unit receives data through the GPS and parses location information it includes, the location information including longitude information.
- the current time zone unit is connected to the current location, and is configured to acquire, according to the location information of the current location, a current time zone corresponding to the location information of the current location;
- the current time zone unit calculates a current local standard time of the smart device according to the parsed location information. Specifically, if the longitude information is determined to be east longitude, the obtained UTC time is added to the time zone value to obtain the current local standard time. If the longitude information is determined to be the west longitude, the obtained UTC time is subtracted from the time zone value. Get the current local standard time.
- the clock display unit is in communication with the current time zone unit, and is configured to simultaneously display time information of the current time zone and time information of the default time zone in the display area of the smart device when the current time zone is different from the default time zone.
- the clock display unit searches for a default time zone in the time zone correspondence list that has been set by the smart device, where the correspondence relationship list includes a time zone corresponding to the time zone, and updates the time zone corresponding to the time zone in real time, that is, when the smart device When in a time zone, it increases the dwell time of the smart device in the time zone in real time, and finally sets the time zone with the longest dwell time as the default time zone.
- the display area of the smart device By comparing the current time zone with the default time zone, when the two time zones are different, the display area of the smart device will set two clocks to display the time of the mode time zone and the time of the current time zone, and at the same time, the time zone of the time zone will still be updated in real time. .
- the smart device first needs to determine the current time zone. If the current time zone and the default time zone of the clock belong to each other, the clock time and the alarm time displayed to the user are the set clock time. If the current time zone does not match the default time zone of the clock, the current time zone clock time displayed to the user and the time of the default time zone clock need to be converted by world time. Searching in the time zone table preset by the smart device, the time zone table includes time zones corresponding to each city and each city, and the time difference between the two time zones can be obtained by searching the time zone table, and the set clock time is added or subtracted from the time difference. , that is, the clock time corresponding to the current time zone, and also the clock time displayed to the user.
- a default time zone clock of Beijing time is set in the smart device of a user in New York, first select the clock option as the world time clock, then select the Beijing time zone and clock time.
- the smart device first determines that the current time zone is New York. After time conversion, the New York time corresponding to 10:00 Beijing time is 18 points, then the smart device displays the default time zone clock time of 18 points and displays New York time 18 points. If the user switches to the London time zone after setting the clock, the default time zone clock time displayed by the smart device after conversion is 2 am.
- time zone table of the world time clock should be consistent with the world time setting list of the smart device to avoid errors, and the update of the clock time is applicable to the time zone change, excluding the user's change of the smart device clock.
- an embodiment of the present invention further provides a computer readable storage medium having stored therein computer executable instructions, such as a non-volatile memory such as an optical disk, a hard disk, or a flash memory.
- computer executable instructions are for causing a computer or the like to perform various operations in the above-described display method of the clock.
- the present invention includes apparatus related to performing one or more of the operations described herein. These devices may be specially designed and manufactured for the required purposes, or may also include known devices in a general purpose computer. These devices have computer programs stored therein that are selectively activated or reconfigured.
- Such computer programs may be stored in a device (eg, computer) readable medium or in any type of medium suitable for storing electronic instructions and separately coupled to a bus, including but not limited to any Types of disks (including floppy disks, hard disks, optical disks, CD-ROMs, and magneto-optical disks), ROM (Read-Only Memory, read-only memory), RAM (Random Access Memory), EPROM (Erasable Programmable Read-Only Memory, rewritable programmable) Read only memory), EEPROM (Electrically Erasable Programmable Read-Only Memory), flash memory, magnetic card or light card.
- a readable medium includes any medium that is stored or transmitted by a device (eg, a computer) in a readable form.
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Electric Clocks (AREA)
- Telephone Function (AREA)
Abstract
一种用于智能设备的时钟的显示方法,包括:获取智能设备的所在地的位置信息,根据位置信息获取位置信息对应的时区(101);当智能设备的所在地的位置信息对应的时区变化时,记录与智能设备处于每一时区内时对应的停留时间之间的对应关系的列表(102);选择对应关系的列表内与最长的停留时间对应的时区为默认时区(103);当智能设备处于的当前所在地对应的当前时区与默认时区不同时,同时显示当前时区的时间信息以及默认时区的时间信息(104)。还提供一种用于智能设备的时钟的显示装置。
Description
本发明涉及智能设备领域,尤其涉及一种用于智能设备的时钟的显示方法及显示装置。
随着手机的普及,手机上的时间对人们越来越重要。对于经常去世界各国出差、学习、商务谈判及出国旅游,尤其对爱好自驾游的人们来说,每当到达某个地点或者目的地后会因不知道当地时间而感到很不方便。而目前手机平台上的世界时间功能是通过预置在手机闪存上的国家和地区所对应的世界时间供用户查询,但也只能查询固定的国家和地区,并不涵盖世界所有地区的时间的查询,其缺乏实时性且需要手动设置手机时间。若是使用者在不知道自己所在地的情况下,就无法通过目前手机中的世界时间功能查询并设置当地时间。
同时,随着人们工作生活的日益繁忙,作为手机等移动终端基本功能之一的闹钟功能也得到了广泛使用。越来越多经常出差的用户,希望身处不同时区时,始终保持在某一特定时区的时间闹铃,如当用户身处纽约或南非时,希望固定在北京时间10点闹铃,参加北京总部每日10点的视频会议。而现有的闹钟只能设置当前时区的闹钟时间,如果用户更改了时区,闹钟的时间是不做更新的,例如用户在北京设置为每日10点闹铃,当用户出差到纽约时,闹钟时间仍然为纽约时间的10点,而此时北京时间为2点。此时如果用户仍然想在北京时间10点闹铃,就需要手动将闹钟时间重新设置为下午18点。这种闹钟设置方法给用户使用带来不便。
发明内容
为了克服上述技术缺陷,本发明的目的在于提供一种用于智能设备的时钟的显示方法及显示装置。
本发明公开了一种用于智能设备的时钟的显示方法,其特征在于,所述显示方法包括:
获取所述智能设备的所在地的位置信息,根据所述位置信息获取所述位置信息对应的时区;
当所述智能设备的所在地的位置信息对应的所述时区变化时,记录与所述智能设备处于每一所述时区内时对应的停留时间之间的对应关系的列表;
选择所述对应关系的列表内与最长的所述停留时间对应的所述时区为默认时区;
当所述智能设备处于的当前所在地对应的当前时区与所述默认时区不同时,同时显示所述当前时区的时间信息以及所述默认时区的时间信息。
优选地,获取所述智能设备的所在地的位置信息,根据所述位置信息获取所述位置信息对应的时区,包括:
通过GPS或无线网络中的一种获取所述智能设备的所在地的经纬度信息;
根据所述经纬度信息获取所述经纬度信息对应的所述时区。
优选地,当所述智能设备的所在地的位置信息对应的所述时区变化时,记录与所述智能设备处于每一所述时区内时对应的停留时间之间的对应关系的列表,包括:
设置所述时区与所述停留时间之间的对应关系的列表;
当所述智能设备的所在地的位置信息对应的所述时区变化且所述时区匹配于所述对应关系的列表时,更新与所述时区对应的所述停留时间;
当所述智能设备的所在地的位置信息对应的所述时区变化且所述时区不匹配于所述对应关系的列表时,于所述对应关系的列表内新建一所述时区与所述停留时间之间的对应关系。
优选地,选择所述对应关系的列表内与最长的所述停留时间对应的所述时区为默认时区,包括:
对所述对应关系的列表内的所述停留时间进行排序;
获取最长的所述停留时间对应的所述时区,将所述时区设置为默认时区。
优选地,当所述智能设备处于的当前所在地对应的当前时区与所述默认时区不同时,同时显示所述当前时区的时间信息以及所述默认时区的时间信息,包括:
获取所述智能设备的所述当前所在地的位置信息;
根据所述当前所在地的位置信息,获取所述当前所在地的位置信息对应的当前时区;
当所述当前时区与所述默认时区不相同时,于智能设备的显示区域同时显示所述当
前时区的时间信息以及所述默认时区的时间信息。
本发明还公开了一种用于智能设备的时钟的显示装置,其特征在于,所述显示装置包括:位置模块、记录模块、选择模块、显示模块,其中,
所述位置模块,用于通过至少一种通讯方式获取所述智能设备的所在地的位置信息,根据所述位置信息获取所述位置信息对应的时区;
所述记录模块,与所述位置模块通讯连接,用于当所述智能设备的所在地的位置信息对应的所述时区变化时,记录与所述智能设备处于每一所述时区内时对应的停留时间之间的对应关系的列表;
所述选择模块,与所述记录模块通讯连接,用于选择所述对应关系的列表内与最长的所述停留时间对应的所述时区为默认时区;
所述显示模块,与所述选择模块通讯连接,用于当所述智能设备处于的当前所在地对应的当前时区与所述默认时区不同时,同时显示所述当前时区的时间信息以及所述默认时区的时间信息。
优选地,所述位置模块,包括:
经纬度获取单元,用于通过GPS或无线网络中的一种获取所述智能设备的所在地的经纬度信息;
时区获取单元,与所述经纬度获取单元通讯连接,用于根据所述经纬度信息获取所述经纬度信息对应的所述时区。
优选地,所述记录模块,包括:
设置单元,用于设置所述时区与所述停留时间之间的对应关系的列表;
更新单元,与所述设置单元通讯连接,用于当所述智能设备的所在地的位置信息对应的所述时区变化且所述时区匹配于所述对应关系的列表时,更新与所述时区对应的所述停留时间;
新建单元,与所述设置单元通讯连接,用于当所述智能设备的所在地的位置信息对应的所述时区变化且所述时区不匹配于所述对应关系的列表时,于所述对应关系的列表内新建一所述时区与所述停留时间之间的对应关系。
优选地,所述选择模块,包括:
排序单元,用于对所述对应关系的列表内的所述停留时间进行排序;
时区设置单元,与所述排序单元通讯连接,用于获取最长的所述停留时间对应的所述时区,将所述时区设置为默认时区。
优选地,所述显示模块,包括:
当前位置单元,用于获取所述智能设备的所述当前所在地的位置信息;
当前时区单元,与所述当前位置单元通讯连接,用于根据所述当前所在地的位置信息,获取所述当前所在地的位置信息对应的当前时区;
时钟显示单元,与所述当前时区单元通讯连接,用于当所述当前时区与所述默认时区不相同时,于智能设备的显示区域同时显示所述当前时区的时间信息以及所述默认时区的时间信息。
采用了上述技术方案后,与现有技术相比,具有以下有益效果:
1.本发明提出的一种设置双时区时钟的方法和装置,可根据用户所在地时区的变化自动更新显示时钟时间,为用户使用提供了方便。
图1为符合本发明一优选实施例中的流程示意图;
图2为图1所示的步骤101的一种具体实施的流程示意图;
图3为图1所示的步骤102的一种具体实施的流程示意图;
图4为图1所示的步骤103的一种具体实施的流程示意图;
图5为图1所示的步骤104的一种具体实施的流程示意图;
图6为符合本发明一优选实施例中的结构示意图。
图7为符合本发明一优选实施例中的结构示意图。
图8为符合本发明一优选实施例中的结构示意图。
图9为符合本发明一优选实施例中的结构示意图。
图10为符合本发明一优选实施例中的结构示意图。
附图标记:
10-显示装置、11-位置模块、12-记录模块、13-选择模块、14-显示模块:
以下结合附图与具体实施例进一步阐述本发明的优点。
这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施
例中所描述的实施方式并不代表与本公开相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本公开的一些方面相一致的装置和方法的例子。
本技术领域技术人员可以理解,这里所使用的智能设备,既包括无线信号接收器的设备,其仅具备无发射能力的无线信号接收器的设备,又包括接收和发射硬件的设备,其具有能够在双向通信链路上,进行双向通信的接收和发射硬件的设备。这种设备可以包括:蜂窝或其他通信设备,其具有单线路显示器或多线路显示器或没有多线路显示器的蜂窝或其他通信设备;PCS(PersonalCommunicationsService,个人通信系统),其可以组合语音、数据处理、传真和/或数据通信能力;PDA(PersonalDigitalAssistant,个人数字助理),其可以包括射频接收器、寻呼机、互联网/内联网访问、网络浏览器、记事本、日历和/或GPS(GlobalPositioningSystem,全球定位系统)接收器;常规膝上型和/或掌上型计算机或其他设备,其具有和/或包括射频接收器的常规膝上型和/或掌上型计算机或其他设备。这里所使用的“设备”、“智能设备”可以是便携式、可运输、安装在交通工具(航空、海运和/或陆地)中的,或者适合于和/或配置为在本地运行,和/或以分布形式,运行在地球和/或空间的任何其他位置运行。这里所使用的“设备”、“智能设备”还可以是通信设备、上网设备、音乐/视频播放设备,例如可以是PDA,MID(MobileInternetDevice,移动互联网设备)和/或具有音乐/视频播放功能的移动电话,也可以是智能电视、机顶盒等设备。
应当理解,尽管在本公开可能采用术语第一、第二、第三等来描述各种信息,但这些信息不应限于这些术语。这些术语仅用来将同一类型的信息彼此区分开。例如,在不脱离本公开范围的情况下,第一信息也可以被称为第二信息,类似地,第二信息也可以被称为第一信息。取决于语境,如在此所使用的词语“如果”可以被解释成为“在……时”或“当……时”或“响应于确定”。
在本发明的描述中,需要理解的是,术语“纵向”、“横向”、“上”、“下”、“前”、“后”、“左”、“右”、“竖直”、“水平”、“顶”、“底”“内”、“外”等指示的方位或位置关系为基于附图所示的方位或位置关系,仅是为了便于描述本发明和简化描述,而不是指示或暗示所指的装置或元件必须具有特定的方位、以特定的方位构造和操作,因此不能理解为对本发明的限制。
下面先介绍一下本实施例中
将用到的词汇:GPS(GlobalPositioningSystem),全球定位系统;NMEA(NationalMarineElectronicsAssociation),GPS串口传输协议;UTC
(UniversalTimeCoordinated),世界统一时间;Buffer,缓冲区;GPRMC、GPGGA、GPGSV、GPGSA,为四种NMEA数据格式。
参阅图1-5,为符合本发明一优选实施例中的流程示意图,该方法包括:
步骤101:获取所述智能设备的所在地的位置信息,根据所述位置信息获取所述位置信息对应的时区;
通过GPS或无线网络中的一种获取所述智能设备的所在地的经纬度信息。
本发明的一个实施例中,在该智能设备上设置了GPS,通过该GPS接收数据并解析其包括的位置信息,该位置信息包括经度信息。
根据所述经纬度信息获取所述经纬度信息对应的所述时区。
通过预定规则,根据该解析出的位置信息计算该智能设备的所在地标准时间。具体来讲,若判断该经度信息为东经时,将获得的UTC时间与时区值相加得到所在地标准时间,若判断该经度信息为西经时,则将获得的UTC时间与时区值相减得到所在地标准时间。
具体地,首先进行硬件抽象层初始化,即打开串口及新建日志输出目录;其次进行GPS初始化,依次包括:GPS芯片的驱动初始化,打开并向A-GPS芯片发送一系列初始化命令,准备接收卫星数据,设置设备启动模式(冷启动、热启动、暖启动),开启导航模式;再进行接收NMEA数据的初始化,即打开伪终端(虚拟终端)的主端接收卫星的NMEA数据;最后关闭端口完成数据的接收。
接着,,利用伪终端设备映射成文件的形式,通过伪终端的方式实行进程间通信,读取定位信息并通过读取文件的形式来实现。另外,NMEA数据有四种格式:GPRMC、GPGGA、GPGSV、GPGSA,其中对于一般的GPS动态定位应用,GPRMC语句完全满足要求,GPRMC语句中包括经纬度、速度、时间和磁偏角等字段,这些数据为确定所在地的时区提供了充分的信息。
最后,通过对这些数据的解析计算出智能设备的所在地的时区及该时区的标准时间。
通过预定规则并根据该解析出的位置信息和时间信息计算该智能设备的当地标准时间;作为一实施例,该计算模块中的预定规则为:该经度信息为东经时,将获得的UTC时间与时区值相加得到当地标准时间;该经度信息为西经时,则将获得的UTC时间与时区值相减得到当地标准时间。
步骤102:当所述智能设备的所在地的位置信息对应的所述时区变化时,记录与所述智能设备处于每一所述时区内时对应的停留时间之间的对应关系的列表;
上述对应关系可以保存于数据文件中,也可以保存于数据库中,该数据文件或者数据库可以设置于智能设备本地,也可以设置于服务器上。
当该数据文件或者数据库设置于服务器上时,通过一存储通信结构获取具体的信息,服务器包括底板,底板上安装有处理器、内存、桥片等芯片,用于对其他扩展设备进行控制,实现服务器的功能。具体地,服务器用于获取存储操作请求,根据存储操作请求生成存储指令序列,并确定存储操作请求的操作类型、存储类型标识以及存储指令序列的内存地址,再根据存储操作请求的操作类型、存储类型标识以及存储指令序列的内存地址生成存储请求队列,最后将存储请求队列至存储控制器。
服务器和存储控制器的连接方式为PCIE,实现服务器和存储控制器的连接方式进行实施。服务器包括存储器、处理器、通信总线、桥片以及通信接口。存储器存储程序代码,处理器调用存储器中存储的程序代码,用于执行存储方法,通信接口用于实现服务器与存储控制器之间的通信,通信总线用于实现存储器以及处理器之间的连接通信。
设置所述时区与所述停留时间之间的对应关系的列表;
当所述智能设备的所在地的位置信息对应的所述时区变化且所述时区匹配于所述对应关系的列表时,更新与所述时区对应的所述停留时间;
在本发明的一个实施例中,保存该停留时间的最小单位是小时,当系统时钟每经过一个小时时,对该时区对应的停留时间来说,以该停留时间为基础增加一个小时,满24小时进位为一天,满365天进位为一年,实时更新该对应关系。
在本发明的具体实例中,将对应关系存储为时区的信息和作为该时区的信息对应的停留时间之间的对应关系。在本发明的具体实例中,在对应关系中存储用于表明区内的种类和智能设备于该时区内的停留时间之间的对应关系的表格。如下示出了对应关系表格的内容的实例。在对应关系的表格中以彼此相关联的方式存储“时区的信息”和“时区内的停留时间”的表项。在这些表项中,在“时区的信息”的表项内存储表明每个时区的信息的种类的信息,而在“时区内的停留时间”的表项内存储表明作为智能设备于该时区内的停留时间的信息。具体地说,例如,“(UTC+08:00)”时区的信息应该与“4天20小时”相关联,“(UTC+10:00)”时区的信息应该与“5天20小时”相关联,当对应关系为两个以上时,该对应关系设置为对应关系的列表。
当所述智能设备的所在地的位置信息对应的所述时区变化且所述时区不匹配于所述对应关系的列表时,于所述对应关系的列表内新建一所述时区与所述停留时间之间的对应关系;
当智能设备处于的所在地的时区不匹配于该对应关系的列表内时,设置该所在地的时区与停留时间的对应关系,加入该对应关系的列表内。
步骤103:选择所述对应关系的列表内与最长的所述停留时间对应的所述时区为默认时区;
对所述对应关系的列表内的所述停留时间进行排序;
以最大停留时间为条件,读取上述对应关系,获取该最大停留时间对应的时区,对该时区设置一个默认标记,标记该时区为默认时区。
获取最长的所述停留时间对应的所述时区,将所述时区设置为默认时区;
以最大停留时间为条件,读取上述对应关系,获取该最大停留时间对应的时区,对该时区设置一个默认标记,标记该时区为默认时区;同时实时检测到对上述对应关系的停留时间进行了增加更新的操作后,以最大停留时间为条件,读取上述对应关系,获取该最大停留时间对应的时区,当该时区与默认时区不相同时,对该时区设置一个默认标记,标记该时区为默认时区。
步骤104:当所述智能设备处于的当前所在地对应的当前时区与所述默认时区不同时,同时显示所述当前时区的时间信息以及所述默认时区的时间信息;
用于当该智能设备处于的当前所在地对应的当前时区与该默认时区不同时,同时显示该当前时区的时间信息以及该默认时区的时间信息。
当当前时区非时钟所属默认时区时,更新时钟时间为当前时区的时钟时间,同时显示默认时区的时钟时间。
获取该智能设备的该当前所在地的位置信息;
通过该GPS接收数据并解析其包括的位置信息,该位置信息包括经度信息。
根据该当前所在地的位置信息,获取该当前所在地的位置信息对应的当前时区;
具体地,根据该解析出的位置信息计算该智能设备的当前所在地标准时间。具体来讲,若判断该经度信息为东经时,将获得的UTC时间与时区值相加得到当前所在地标准时间,若判断该经度信息为西经时,则将获得的UTC时间与时区值相减得到当前所在地标准时间。
当该当前时区与该默认时区不相同时,于智能设备的显示区域同时显示该当前时区的时间信息以及该默认时区的时间信息。
在智能设备已经设置的时区对应关系列表中进行查找默认时区,该对应关系列表包括时区与该时区对应的停留时间,且实时更新该时区对应的停留时间,也就是说当智能
设备处于一个时区内时,其实时增加智能设备在该时区内的停留时间,最终会将停留时间最长的那个时区设置为默认时区。
通过将当前时区与默认时区比较,当两个时区不同时,智能设备的显示区域会设置两个时钟,分别显示模式时区的时间以及当前时区的时间,同时,依旧会实时更新所在时区的停留时间。
智能设备首先需要判断当前时区,如果当前时区和该时钟所属默认时区一致,则显示给用户的时钟时间和闹铃的时间即为设定时的时钟时间。如果当前时区与该时钟所属默认时区不一致,则显示给用户的当前时区时钟时间以及默认时区的时钟的时间,需要经过世界时间换算。在智能设备预设的时区表中进行查找,该时区表包括各个城市以及各个城市对应的时区,通过查找时区表可得两个时区之间的时差,将设置的时钟时间加上或者减去时差,即为当前时区所对应的时钟时间,也是显示给用户的时钟时间。
例如一身处纽约的用户的智能设备中设定一个北京时间的默认时区时钟钟,则首先选择时钟选项为世界时时钟,然后选择北京时区和时钟时间。智能设备首先判断当前的时区为纽约,经过时间换算,北京时间10点对应的纽约时间为18点,则智能设备显示默认时区时钟时间为18点,同时显示纽约时间18点。如果用户在设定了该时钟之后切换到了伦敦时区,智能设备经换算后显示的默认时区时钟时间为凌晨2点。
需要注意的是,世界时时钟的时区表应与智能设备的世界时设置列表保持一致,以免产生误差,时钟时间的更新适用于时区更改,不包括用户对智能设备时钟的更改。
需要指出的是,由于中国只实行单时区制,但其地理位置横跨3个时区,因此,当该智能设备处于中国且更换时区时,无需记录所在时区的停留时间,只需要按照预设规则中(UTC+08:00)为基础,在这之上更新停留时间即可,例如:当从中国的北京到中国的新疆乌鲁木齐时,起始时区从(UTC+08:00)变为(UTC+06:00),但是由于中国实行单时区制,因此智能设备依旧记录(UTC+08:00)时区的停留时间,当(UTC+08:00)的停留时间最长时,设置(UTC+08:00)为默认时区。
现在将参考附图描述实现本发明各个实施例的智能设备。在后续的描述中,使用用于表示元件的诸如“模块”、“部件”或“单元”的后缀仅为了有利于本发明的说明,其本身并没有特定的意义。因此,“模块”与“部件”可以混合地使用。
在本发明的描述中,除非另有规定和限定,需要说明的是,术语“安装”、“相连”、“连接”应做广义理解,例如,可以是机械连接或电连接,也可以是两个元件内部的连通,可以是直接相连,也可以通过中间媒介间接相连,对于本领域的普通技术人员而言,
可以根据具体情况理解上述术语的具体含义。
参阅图6-10,为符合本发明装置,可以通过一显示装置10实现,在该装置内,包括:位置模块11、记录模块12、选择模块13、显示模块14
位置模块11:
经纬度获取单元,用于通过GPS或无线网络中的一种获取所述智能设备的所在地的经纬度信息。
本发明的一个实施例中,位置模块11在该智能设备上设置了GPS,经纬度获取单元通过该GPS接收数据并解析其包括的位置信息,该位置信息包括经度信息。
时区获取单元,与所述经纬度获取单元通讯连接,用于根据所述经纬度信息获取所述经纬度信息对应的所述时区。
通过预定规则,时区获取单元根据该解析出的位置信息计算该智能设备的所在地标准时间。具体来讲,若判断该经度信息为东经时,将获得的UTC时间与时区值相加得到所在地标准时间,若判断该经度信息为西经时,则将获得的UTC时间与时区值相减得到所在地标准时间。
该预定规则可以是:
(UTC-12:00)国际日期变更线西
(UTC-11:00)萨摩亚群岛
(UTC-10:00)夏威夷
(UTC-09:00)阿拉斯加
(UTC-08:00)太平洋时间(美国和加拿大)
(UTC-07:00)山地时间(美国和加拿大)
(UTC-06:00)瓜达拉哈拉、墨西哥城、蒙特雷
(UTC-05:00)东部时间(美国和加拿大)
(UTC-04:00)大西洋时间(加拿大)
(UTC-04:00)亚松森
(UTC-03:30)纽芬兰
(UTC-03:00)巴西利亚
(UTC-02:00)中大西洋
(UTC-01:00)佛得角群岛
(UTC)都柏林、爱丁堡、里斯本、伦敦
(UTC+01:00)阿姆斯特丹、柏林、伯尔尼、罗马、斯德哥尔摩、维也纳
(UTC+02:00)赫尔辛基、基辅、里加、索非亚、塔林、维尔纽斯
(UTC+03:00)莫斯科、圣彼得堡、伏尔加格勒
(UTC+04:00)阿布扎比、马斯喀特
(UTC+04:30)喀布尔
(UTC+05:00)伊斯兰堡、卡拉奇
(UTC+05:30)钦奈、加尔各答、孟买、新德里
(UTC+06:00)新西伯利亚
(UTC+06:30)仰光
(UTC+07:00)曼谷、河内、雅加达
(UTC+08:00)北京、重庆、香港特别行政区、乌鲁木齐
(UTC+09:00)大阪、札幌、东京
(UTC+09:30)阿德莱德
(UTC+10:00)堪培拉、墨尔本、悉尼
(UTC+11:00)所罗门群岛、新喀里多尼亚
(UTC+12:00)奥克兰、惠灵顿
(UTC+13:00)努库阿洛法
具体地,首先进行硬件抽象层初始化,即打开串口及新建日志输出目录;其次进行GPS初始化,依次包括:GPS芯片的驱动初始化,打开并向A-GPS芯片发送一系列初始化命令,准备接收卫星数据,设置设备启动模式(冷启动、热启动、暖启动),开启导航模式;再进行接收NMEA数据的初始化,即打开伪终端(虚拟终端)的主端接收卫星的NMEA数据;最后关闭端口完成数据的接收。
接着,利用伪终端设备映射成文件的形式,通过伪终端的方式实行进程间通信,读取定位信息并通过读取文件的形式来实现。另外,NMEA数据有四种格式:GPRMC、GPGGA、GPGSV、GPGSA,其中对于一般的GPS动态定位应用,GPRMC语句完全满足要求,GPRMC语句中包括经纬度、速度、时间和磁偏角等字段,这些数据为确定所在地的时区提供了充分的信息。
最后,通过对这些数据的解析计算出智能设备的所在地的时区及该时区的标准时间。
通过预定规则并根据该解析出的位置信息和时间信息计算该智能设备的当地标准时间;作为一实施例,该计算模块中的预定规则为:该经度信息为东经时,将获得的UTC
时间与时区值相加得到当地标准时间;该经度信息为西经时,则将获得的UTC时间与时区值相减得到当地标准时间。
记录模块12:
与所述位置模块通讯连接,用于当所述智能设备的所在地的位置信息对应的所述时区变化时,记录与所述智能设备处于每一所述时区内时对应的停留时间之间的对应关系的列表;
上述对应关系的列表可以保存于数据文件中,也可以保存于数据库中,该数据文件或者数据库可以设置于智能设备本地,也可以设置于服务器上。
当该数据文件或者数据库设置于服务器上时,通过一存储通信结构获取具体的信息,服务器包括底板,底板上安装有处理器、内存、桥片等芯片,用于对其他扩展设备进行控制,实现服务器的功能。具体地,服务器用于获取存储操作请求,根据存储操作请求生成存储指令序列,并确定存储操作请求的操作类型、存储类型标识以及存储指令序列的内存地址,再根据存储操作请求的操作类型、存储类型标识以及存储指令序列的内存地址生成存储请求队列,最后将存储请求队列至存储控制器。
服务器和存储控制器的连接方式为PCIE,实现服务器和存储控制器的连接方式进行实施。服务器包括存储器、处理器、通信总线、桥片以及通信接口。存储器存储程序代码,处理器调用存储器中存储的程序代码,用于执行存储方法,通信接口用于实现服务器与存储控制器之间的通信,通信总线用于实现存储器以及处理器之间的连接通信。
设置单元,用于设置所述时区与所述停留时间之间的对应关系的列表;
在本发明的具体实例中,设置单元将对应关系存储为时区的信息和作为该时区的信息对应的停留时间之间的对应关系。在本发明的具体实例中,在对应关系存储单元中存储用于表明区内的种类和智能设备于该时区内的停留时间之间的对应关系的表格。如下示出了对应关系表格的内容的实例。在对应关系的表格中以彼此相关联的方式存储“时区的信息”和“时区内的停留时间”的表项。在这些表项中,在“时区的信息”的表项内存储表明每个时区的信息的种类的信息,而在“时区内的停留时间”的表项内存储表明作为智能设备于该时区内的停留时间的信息。具体地说,例如,“(UTC+08:00)”时区的信息应该与“4天20小时”相关联,“(UTC+10:00)”时区的信息应该与“5天20小时”相关联,当对应关系为两个以上时,该对应关系设置为对应关系的列表。
更新单元,用于当所述智能设备的所在地的位置信息对应的所述时区变化且所述时区匹配于所述对应关系的列表时,更新与所述时区对应的所述停留时间;
在本发明的一个实施例中,时间计算单元保存该停留时间的最小单位是小时,当系统时钟每经过一个小时时,对该时区对应的停留时间来说,以该停留时间为基础增加一个小时,满24小时进位为一天,满365天进位为一年,实时更新该对应关系。
新建单元,用于当所述智能设备的所在地的位置信息对应的所述时区变化且所述时区不匹配于所述对应关系的列表时,于所述对应关系的列表内新建一所述时区与所述停留时间之间的对应关系;
当智能设备处于的所在地的时区不匹配于该对应关系的列表内时,设置该所在地的时区与停留时间的对应关系,加入该对应关系的列表内。
选择模块13:
用于选择所述对应关系的列表内与最长的所述停留时间对应的所述时区为默认时区;
以最大停留时间为条件,读取上述对应关系,获取该最大停留时间对应的时区,对该时区设置一个默认标记,标记该时区为默认时区。
排序单元,用于对所述对应关系的列表内的所述停留时间进行排序;
排序单元从存储有该对应关系的位置读取该对应关系。
时区设置单元,用于获取最长的所述停留时间对应的所述时区,将所述时区设置为默认时区;
以最大停留时间为条件,读取上述对应关系,获取该最大停留时间对应的时区,对该时区设置一个默认标记,标记该时区为默认时区;同时实时检测到对上述对应关系的停留时间进行了增加更新的操作后,以最大停留时间为条件,读取上述对应关系,获取该最大停留时间对应的时区,当该时区与默认时区不相同时,对该时区设置一个默认标记,标记该时区为默认时区。
显示模块14:
用于当该智能设备处于的当前所在地对应的当前时区与该默认时区不同时,同时显示该当前时区的时间信息以及该默认时区的时间信息。
当当前时区非时钟所属默认时区时,更新时钟时间为当前时区的时钟时间,同时显示默认时区的时钟时间。
当前位置单元,用于获取该智能设备的该当前所在地的位置信息;
当前位置单元通过该GPS接收数据并解析其包括的位置信息,该位置信息包括经度信息。
当前时区单元,与该当前位置通讯连接,用于根据该当前所在地的位置信息,获取该当前所在地的位置信息对应的当前时区;
当前时区单元,根据该解析出的位置信息计算该智能设备的当前所在地标准时间。具体来讲,若判断该经度信息为东经时,将获得的UTC时间与时区值相加得到当前所在地标准时间,若判断该经度信息为西经时,则将获得的UTC时间与时区值相减得到当前所在地标准时间。
时钟显示单元,与该当前时区单元通讯连接,用于当该当前时区与该默认时区不相同时,于智能设备的显示区域同时显示该当前时区的时间信息以及该默认时区的时间信息。
时钟显示单元,在智能设备已经设置的时区对应关系列表中进行查找默认时区,该对应关系列表包括时区与该时区对应的停留时间,且实时更新该时区对应的停留时间,也就是说当智能设备处于一个时区内时,其实时增加智能设备在该时区内的停留时间,最终会将停留时间最长的那个时区设置为默认时区。
通过将当前时区与默认时区比较,当两个时区不同时,智能设备的显示区域会设置两个时钟,分别显示模式时区的时间以及当前时区的时间,同时,依旧会实时更新所在时区的停留时间。
智能设备首先需要判断当前时区,如果当前时区和该时钟所属默认时区一致,则显示给用户的时钟时间和闹铃的时间即为设定时的时钟时间。如果当前时区与该时钟所属默认时区不一致,则显示给用户的当前时区时钟时间以及默认时区的时钟的时间,需要经过世界时间换算。在智能设备预设的时区表中进行查找,该时区表包括各个城市以及各个城市对应的时区,通过查找时区表可得两个时区之间的时差,将设置的时钟时间加上或者减去时差,即为当前时区所对应的时钟时间,也是显示给用户的时钟时间。
例如一身处纽约的用户的智能设备中设定一个北京时间的默认时区时钟钟,则首先选择时钟选项为世界时时钟,然后选择北京时区和时钟时间。智能设备首先判断当前的时区为纽约,经过时间换算,北京时间10点对应的纽约时间为18点,则智能设备显示默认时区时钟时间为18点,同时显示纽约时间18点。如果用户在设定了该时钟之后切换到了伦敦时区,智能设备经换算后显示的默认时区时钟时间为凌晨2点。
需要注意的是,世界时时钟的时区表应与智能设备的世界时设置列表保持一致,以免产生误差,时钟时间的更新适用于时区更改,不包括用户对智能设备时钟的更改。
需要指出的是,由于中国只实行单时区制,但其地理位置横跨3个时区,因此,当
该智能设备处于中国且更换时区时,无需记录所在时区的停留时间,只需要按照预设规则中(UTC+08:00)为基础,在这之上更新停留时间即可,例如:当从中国的北京到中国的新疆乌鲁木齐时,起始时区从(UTC+08:00)变为(UTC+06:00),但是由于中国实行单时区制,因此智能设备依旧记录(UTC+08:00)时区的停留时间,当(UTC+08:00)的停留时间最长时,设置(UTC+08:00)为默认时区。
此外,本发明实施例还提供一种计算机可读存储介质,其内存储有计算机可执行指令,上述的计算机可读存储介质例如为非易失性存储器例如光盘、硬盘、或者闪存。上述的计算机可执行指令用于让计算机或者类似的运算装置完成上述的时钟的显示方法中的各种操作。
本技术领域技术人员可以理解,本发明包括涉及用于执行本申请中所述操作中的一项或多项的设备。这些设备可以为所需的目的而专门设计和制造,或者也可以包括通用计算机中的己知设备。这些设备具有存储在其内的计算机程序,这些计算机程序选择性地激活或重构。这样的计算机程序可以被存储在设备(例如,计算机)可读介质中或者存储在适于存储电子指令并分别藕联到总线的任何类型的介质中,所述计算机可读介质包括但不限于任何类型的盘(包括软盘、硬盘、光盘、CD-ROM、和磁光盘),ROM(Read-OnlyMemory,只读存储器),RAM(RandomAccessMemory,随即存储器),EPROM(ErasableProgrammableRead-OnlyMemory,可擦写可编程只读存储器),EEPROM(ElectricallyErasableProgrammableRead-OnlyMemory,电可擦可编程只读存储器)、闪存、磁性卡片或光线卡片。也就是,可读介质包括由设备(例如,计算机)以能够读的形式存储或传输信息的任何介质。
在本说明书的描述中,参考术语“一个实施例”、“一些实施例”、“示例”、“具体示例”、或“一些示例”等的描述意指结合该实施例或示例描述的具体特征、结构、材料或者特点包含于本发明的至少一个实施例或示例中。在本说明书中,对上述术语的示意性表述不一定指的是相同的实施例或示例。而且,描述的具体特征、结构、材料或者特点可以在任何的一个或多个实施例或示例中以合适的方式结合。
应当注意的是,本发明的实施例有较佳的实施性,且并非对本发明作任何形式的限制,任何熟悉该领域的技术人员可能利用上述揭示的技术内容变更或修饰为等同的有效实施例,但凡未脱离本发明技术方案的内容,依据本发明的技术实质对以上实施例所作的任何修改或等同变化及修饰,均仍属于本发明技术方案的范围内。
Claims (10)
- 一种用于智能设备的时钟的显示方法,其特征在于,所述显示方法包括:获取所述智能设备的所在地的位置信息,根据所述位置信息获取所述位置信息对应的时区;当所述智能设备的所在地的位置信息对应的所述时区变化时,记录与所述智能设备处于每一所述时区内时对应的停留时间之间的对应关系的列表;选择所述对应关系的列表内与最长的所述停留时间对应的所述时区为默认时区;当所述智能设备处于的当前所在地对应的当前时区与所述默认时区不同时,同时显示所述当前时区的时间信息以及所述默认时区的时间信息。
- 如权利要求1所述的方法,其特征在于,获取所述智能设备的所在地的位置信息,根据所述位置信息获取所述位置信息对应的时区,包括:通过GPS或无线网络中的一种获取所述智能设备的所在地的经纬度信息;根据所述经纬度信息获取所述经纬度信息对应的所述时区。
- 如权利要求1所述的方法,其特征在于,当所述智能设备的所在地的位置信息对应的所述时区变化时,记录与所述智能设备处于每一所述时区内时对应的停留时间之间的对应关系的列表,包括:设置所述时区与所述停留时间之间的对应关系的列表;当所述智能设备的所在地的位置信息对应的所述时区变化且所述时区匹配于所述对应关系的列表时,更新与所述时区对应的所述停留时间;当所述智能设备的所在地的位置信息对应的所述时区变化且所述时区不匹配于所述对应关系的列表时,于所述对应关系的列表内新建一所述时区与所述停留时间之间的对应关系。
- 如权利要求1所述的方法,其特征在于,选择所述对应关系的列表内与最长的所述停留时间对应的所述时区为默认时区,包括:对所述对应关系的列表内的所述停留时间进行排序;获取最长的所述停留时间对应的所述时区,将所述时区设置为默认时区。
- 如权利要求1所述的方法,其特征在于,当所述智能设备处于的当前所在地对应的当前时区与所述默认时区不同时,同时显示所述当前时区的时间信息以及所述默认时区 的时间信息,包括:获取所述智能设备的所述当前所在地的位置信息;根据所述当前所在地的位置信息,获取所述当前所在地的位置信息对应的当前时区;当所述当前时区与所述默认时区不相同时,于智能设备的显示区域同时显示所述当前时区的时间信息以及所述默认时区的时间信息。
- 一种用于智能设备的时钟的显示装置,其特征在于,所述显示装置包括:位置模块、记录模块、选择模块、显示模块,其中,所述位置模块,用于通过至少一种通讯方式获取所述智能设备的所在地的位置信息,根据所述位置信息获取所述位置信息对应的时区;所述记录模块,与所述位置模块通讯连接,用于当所述智能设备的所在地的位置信息对应的所述时区变化时,记录与所述智能设备处于每一所述时区内时对应的停留时间之间的对应关系的列表;所述选择模块,与所述记录模块通讯连接,用于选择所述对应关系的列表内与最长的所述停留时间对应的所述时区为默认时区;所述显示模块,与所述选择模块通讯连接,用于当所述智能设备处于的当前所在地对应的当前时区与所述默认时区不同时,同时显示所述当前时区的时间信息以及所述默认时区的时间信息。
- 如权利要求6所述的装置,其特征在于,所述位置模块,包括:经纬度获取单元,用于通过GPS或无线网络中的一种获取所述智能设备的所在地的经纬度信息;时区获取单元,与所述经纬度获取单元通讯连接,用于根据所述经纬度信息获取所述经纬度信息对应的所述时区。
- 如权利要求6所述的装置,其特征在于,所述记录模块,包括:设置单元,用于设置所述时区与所述停留时间之间的对应关系的列表;更新单元,与所述设置单元通讯连接,用于当所述智能设备的所在地的位置信息对应的所述时区变化且所述时区匹配于所述对应关系的列表时,更新与所述时区对应的所述停留时间;新建单元,与所述设置单元通讯连接,用于当所述智能设备的所在地的位置信息对应的所述时区变化且所述时区不匹配于所述对应关系的列表时,于所述对应关系的列表内新建一所述时区与所述停留时间之间的对应关系。
- 如权利要求6所述的装置,其特征在于,所述选择模块,包括:排序单元,用于对所述对应关系的列表内的所述停留时间进行排序;时区设置单元,与所述排序单元通讯连接,用于获取最长的所述停留时间对应的所述时区,将所述时区设置为默认时区。
- 如权利要求6所述的装置,其特征在于,所述显示模块,包括:当前位置单元,用于获取所述智能设备的所述当前所在地的位置信息;当前时区单元,与所述当前位置单元通讯连接,用于根据所述当前所在地的位置信息,获取所述当前所在地的位置信息对应的当前时区;时钟显示单元,与所述当前时区单元通讯连接,用于当所述当前时区与所述默认时区不相同时,于智能设备的显示区域同时显示所述当前时区的时间信息以及所述默认时区的时间信息。
Priority Applications (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| PCT/CN2017/103797 WO2019061109A1 (zh) | 2017-09-27 | 2017-09-27 | 一种用于智能设备的时钟的显示方法及显示装置 |
| CN201780097116.3A CN111417905B (zh) | 2017-09-27 | 2017-09-27 | 一种用于智能设备的时钟的显示方法及显示装置 |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| PCT/CN2017/103797 WO2019061109A1 (zh) | 2017-09-27 | 2017-09-27 | 一种用于智能设备的时钟的显示方法及显示装置 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2019061109A1 true WO2019061109A1 (zh) | 2019-04-04 |
Family
ID=65900431
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2017/103797 Ceased WO2019061109A1 (zh) | 2017-09-27 | 2017-09-27 | 一种用于智能设备的时钟的显示方法及显示装置 |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN111417905B (zh) |
| WO (1) | WO2019061109A1 (zh) |
Citations (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20030054325A1 (en) * | 2001-07-02 | 2003-03-20 | David Miller | Techniques for handling time zone changes in personal information management software |
| US6587398B1 (en) * | 2000-08-11 | 2003-07-01 | Motorola Inc. | Method and apparatus for providing selectable roaming and non-roaming alarms |
| CN101387864A (zh) * | 2008-09-28 | 2009-03-18 | 深圳华为通信技术有限公司 | 一种时间显示方法和装置 |
| CN101867867A (zh) * | 2009-04-16 | 2010-10-20 | 深圳富泰宏精密工业有限公司 | 系统时间自动更新系统及方法 |
| CN102455657A (zh) * | 2010-10-19 | 2012-05-16 | 中兴通讯股份有限公司 | 设置世界时区闹钟的方法和装置 |
| CN102880953A (zh) * | 2012-09-11 | 2013-01-16 | 华为终端有限公司 | 日程管理的方法及装置 |
| CN103188396A (zh) * | 2011-12-29 | 2013-07-03 | 三星电子(中国)研发中心 | 在移动终端中设置待办事务的时间信息的装置和方法 |
| CN105407219A (zh) * | 2015-10-30 | 2016-03-16 | 努比亚技术有限公司 | 移动终端的时间更新方法和装置 |
Family Cites Families (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102647508B (zh) * | 2011-12-15 | 2016-12-07 | 中兴通讯股份有限公司 | 一种移动终端及用户身份识别方法 |
-
2017
- 2017-09-27 CN CN201780097116.3A patent/CN111417905B/zh active Active
- 2017-09-27 WO PCT/CN2017/103797 patent/WO2019061109A1/zh not_active Ceased
Patent Citations (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US6587398B1 (en) * | 2000-08-11 | 2003-07-01 | Motorola Inc. | Method and apparatus for providing selectable roaming and non-roaming alarms |
| US20030054325A1 (en) * | 2001-07-02 | 2003-03-20 | David Miller | Techniques for handling time zone changes in personal information management software |
| CN101387864A (zh) * | 2008-09-28 | 2009-03-18 | 深圳华为通信技术有限公司 | 一种时间显示方法和装置 |
| CN101867867A (zh) * | 2009-04-16 | 2010-10-20 | 深圳富泰宏精密工业有限公司 | 系统时间自动更新系统及方法 |
| CN102455657A (zh) * | 2010-10-19 | 2012-05-16 | 中兴通讯股份有限公司 | 设置世界时区闹钟的方法和装置 |
| CN103188396A (zh) * | 2011-12-29 | 2013-07-03 | 三星电子(中国)研发中心 | 在移动终端中设置待办事务的时间信息的装置和方法 |
| CN102880953A (zh) * | 2012-09-11 | 2013-01-16 | 华为终端有限公司 | 日程管理的方法及装置 |
| CN105407219A (zh) * | 2015-10-30 | 2016-03-16 | 努比亚技术有限公司 | 移动终端的时间更新方法和装置 |
Also Published As
| Publication number | Publication date |
|---|---|
| CN111417905A (zh) | 2020-07-14 |
| CN111417905B (zh) | 2021-10-22 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US7865297B2 (en) | Methods for obtaining a navigation track between a first and a second location based on location information shared between peer devices and related devices and computer program products | |
| US8009519B2 (en) | Apparatus and methods for maintaining a reliable time clock on a mobile computing device supporting satellite based position determination capability | |
| US8994851B2 (en) | Displaying image data and geographic element data | |
| US9329052B2 (en) | Displaying image data and geographic element data | |
| JP6576327B2 (ja) | 局所的な天気予報と旅程計画を組み合わせる方法及びシステム | |
| CN102265117B (zh) | 提供用于注释和显示地图的基于位置的信息 | |
| US20120021767A1 (en) | Updating position assist data on a mobile computing device | |
| US8989763B2 (en) | Updating position assist data on a mobile computing device | |
| US20200366783A1 (en) | Location Based Personal Organizer | |
| US20080134088A1 (en) | Device for saving results of location based searches | |
| US20090240428A1 (en) | Mobile phone having gps navigation system | |
| US20110285591A1 (en) | Correlating contextual data and position data to improve location based services | |
| US8280628B2 (en) | Method and apparatus for utilizing geographic location information | |
| US20080312826A1 (en) | Mobile phone having gps navigation system | |
| US20100265802A1 (en) | System and method for automatically updating system time of a mobile communication device | |
| CN102340567A (zh) | 一种根据gps定位自动设置时间的手机及方法 | |
| US20090292782A1 (en) | Mobile terminal and method of managing meeting information using the same | |
| US20100099438A1 (en) | Mobile communication terminal equipped with function of indicating direction of destination and method of indicating direction of destination | |
| CN104601800A (zh) | 一种基于用户需求的提醒装置及方法 | |
| CN102062607B (zh) | 实时导航系统及其方法 | |
| US20100217521A1 (en) | Method for displaying map labels for geographical features having alternate names | |
| TWI321763B (en) | Method for updating ephemeris data of global positioning system | |
| US20080007399A1 (en) | Method and apparatus for providing location-specific information through a mobile device | |
| CA2716655A1 (en) | Simplified search with unified local data and freeform data lookup | |
| CN111417905B (zh) | 一种用于智能设备的时钟的显示方法及显示装置 |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 17927595 Country of ref document: EP Kind code of ref document: A1 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 17927595 Country of ref document: EP Kind code of ref document: A1 |