CN104284323B - A kind of setting method of terminal time - Google Patents

A kind of setting method of terminal time Download PDF

Info

Publication number
CN104284323B
CN104284323B CN201410507610.0A CN201410507610A CN104284323B CN 104284323 B CN104284323 B CN 104284323B CN 201410507610 A CN201410507610 A CN 201410507610A CN 104284323 B CN104284323 B CN 104284323B
Authority
CN
China
Prior art keywords
time
mcc
mobile network
zone
zone 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.)
Active
Application number
CN201410507610.0A
Other languages
Chinese (zh)
Other versions
CN104284323A (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.)
Shenzhen Microphone Holdings Co Ltd
Original Assignee
Shenzhen Jinli Communication Equipment Co 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 Shenzhen Jinli Communication Equipment Co Ltd filed Critical Shenzhen Jinli Communication Equipment Co Ltd
Priority to CN201410507610.0A priority Critical patent/CN104284323B/en
Publication of CN104284323A publication Critical patent/CN104284323A/en
Application granted granted Critical
Publication of CN104284323B publication Critical patent/CN104284323B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/18Processing of user or subscriber data, e.g. subscribed services, user preferences or user profiles; Transfer of user or subscriber data
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/02Terminal devices

Abstract

The embodiment of the invention provides the setting methods of terminal time a kind of, comprising: obtains the Mobile Country Code MCC MCC of current mobile network;Judge whether the mobile network of access switches;If the mobile network of the access switches, time zone time corresponding with the MCC of the current mobile network is obtained;Terminal time is set by the time zone time.Using the present invention, corresponding time zone time can be obtained by obtaining Mobile Country Code MCC, then the time zone time is set as terminal time.

Description

A kind of setting method of terminal time
Technical field
The present invention relates to field of communication technology more particularly to a kind of setting methods of terminal time.
Background technique
Nowadays user walks between each area back and forth because the reasons such as travelling or going on business, when every area, user It needs to convert the time into the local time in time, brings many worries to user thus.In the prior art, mobile terminal is logical It crosses following methods and determines the local time.First, after user reaches some area, mobile terminal passes through connection number The local time is obtained from network clock synchronization server according to network.However, terminal obtains locality using data network in other areas The expense of time is high, and user is caused to use the increased costs of mobile terminal, and the market competitiveness is insufficient.
Second, mobile terminal obtains the longitude and latitude of current location by using global positioning system, then passes through inquiry data Library obtains the corresponding countries and cities of the longitude and latitude, to determine the time of current location.If database is stored in mobile terminal In, although the flow of mobile terminal can be saved, since the data volume of database is huge, when inquiring database to mobile terminal Inquiry computing capability require high, and the memory space of mobile terminal and limited capacity, therefore cannot support the function completely.If Database is stored in server end, then there is still a need for database is inquired by data network, also results in user and uses movement The increased costs of terminal.
Summary of the invention
The embodiment of the present invention provides the setting method of terminal time a kind of, can be obtained by acquisition Mobile Country Code MCC corresponding Time zone time, then the time zone time is set as terminal time.
The embodiment of the invention provides the setting methods of terminal time a kind of, comprising:
Obtain the Mobile Country Code MCC MCC of current mobile network;
Judge whether the mobile network of access switches;
If the mobile network of the access switches, time zone corresponding with the MCC of the current mobile network is obtained Time;
Terminal time is set by the time zone time.
Using the embodiment of the present invention, MCC (Mobile Country Code, the mobile national of current mobile network can be passed through Code), corresponding time zone time is obtained, then the time zone time, be set as terminal time, thereby may be ensured that the standard of terminal time Really, and it is simple and fast.
Detailed description of the invention
In order to illustrate the technical solution of the embodiments of the present invention more clearly, required use in being described below to embodiment Attached drawing be briefly described, it should be apparent that, drawings in the following description are some embodiments of the invention, for this field For those of ordinary skill, without any creative labor, it can also be obtained according to these attached drawings other attached Figure.
Fig. 1 is a kind of flow diagram of the setting method of terminal time of the embodiment of the present invention;
Fig. 2 is the idiographic flow schematic diagram of the S120 of the setting method of terminal time of the embodiment of the present invention a kind of;
Fig. 3 is the flow diagram of the setting method of another terminal time of the embodiment of the present invention;
Fig. 4 is a kind of structural schematic diagram of terminal of the embodiment of the present invention;
Fig. 5 is the structural schematic diagram of another terminal of the embodiment of the present invention;
Fig. 6 is the structural schematic diagram of the third terminal of the embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair Embodiment in bright, every other implementation obtained by those of ordinary skill in the art without making creative efforts Example, shall fall within the protection scope of the present invention.
The embodiment of the present invention can obtain corresponding time zone time by obtaining Mobile Country Code MCC, then the time zone time is arranged For terminal time.
Referring to Fig. 1, Fig. 1 is a kind of flow diagram of the setting method of terminal time of the embodiment of the present invention.This hair MCC involved in bright for country belonging to unique identification mobile subscriber, distributed unitedly and managed by International Telecommunication Association by resource. MCC is made of three decimal numbers, and such as MCC of China is 460, and Brazilian MCC is 724, and Maldivian MCC is 472.This hair The method of bright embodiment can be by having the realization of the terminals such as the mobile phone of roaming function, plate.In the present embodiment, terminal is first obtained currently The MCC of mobile network, then judge whether the mobile network of access switches.In addition, terminal can also first judge the movement of access Whether network switches, and the Mobile Country Code MCC MCC of current mobile network is obtained again when the judgment is yes, specifically, terminal can Judge whether the mobile network of access switches according to the relevant information of the operator of access to mobile network.Therefore, of the invention Embodiment does not limit judgment step and obtains the sequencing of MCC step, is specifically described below.
As shown in Figure 1, the setting method of terminal time of the embodiment of the present invention a kind of may comprise steps of.
S100 obtains the Mobile Country Code MCC MCC of current mobile network.
In the specific implementation, terminal can be connect by automatic or user selection when user holds terminal and enters a country Enter the mobile network to the country, then terminal obtains MCC belonging to current mobile network by the current mobile network of access.
S110, judges whether the mobile network of access switches.
In the specific implementation, by judge whether the mobile network accessed the determining user that whether switches holds terminal from another A country enters the country.
S120, if the mobile network of access switches, when obtaining time zone corresponding with the MCC of current mobile network Between.
In the specific implementation, if it is judged that be it is yes, then terminal is according to the MCC of current mobile network, when obtaining corresponding Area's time.
Time zone time is set terminal time by S130.
In the specific implementation, after the MCC of terminal acquisition current mobile network corresponding time zone time, it can be by the time zone time It is set as terminal time.
Optionally, as a kind of enforceable mode, as shown in Fig. 2, above-mentioned S120 may include:
S200, according to the corresponding relationship of preset MCC and time-zone information, is obtained if the mobile network of access switches Obtain time-zone information corresponding with the MCC of current mobile network.
In the specific implementation, terminal can search the database of the corresponding relationship for storing MCC and time-zone information, obtains and work as The corresponding time-zone information of the MCC of preceding mobile network.Wherein, database is used to store the corresponding relationship of MCC and time-zone information.Due to MCC obtains the MCC of current mobile network later it can be learnt that when Forward for country belonging to unique identification mobile subscriber The country of dynamic network belonging.The time that each country uses sets according to the time in the preset time zone of the country.For example, right Use the time in 8th area of east with the time in the unified whole nation in such as China, some countries across several time zones;And when Britain uses Between be zero zone time.Therefore, terminal can inquire corresponding with MCC according to the corresponding relationship of preset MCC and time-zone information Time-zone information.Such as the MCC of China is 460, then 460 MCC is corresponding with eastern 8th area;The MMC of Britain is 234 or 235, and English The time that state uses is the time in zero zone, then 234 or 235 MCC is corresponding with zero zone.If user works as access in China When the mobile network of China, then terminal obtains the MCC of the mobile network, i.e., 460, and terminal is searched and MCC pairs according to the MCC of acquisition The time-zone information answered obtains corresponding 8th area time zone Wei Dong MCC.Compared to the corresponding pass of storage longitude and latitude and country or city The memory space that the corresponding relationship of system, storage MCC and time-zone information occupies terminal is smaller, requires then more the computing capability of terminal It is low.
S210 obtains time zone time corresponding with the MCC of current mobile network according to time-zone information.
In the specific implementation, terminal can obtain the MCC with current mobile network according to greenwich time and time-zone information Corresponding time zone time.In the present embodiment, greenwich time, is added 8 by 8th area time-zone information Wei Dong that terminal obtains again Hour, obtain the time zone time in eastern 8th area.
It, can be by the MCC of current mobile network, when obtaining corresponding time zone by implementing method described in Fig. 1 and Fig. 2 Between, then the time zone time, it is set as terminal time, it thereby may be ensured that the accurate of terminal time, and simple and fast.
Referring to Fig. 3, Fig. 3 is the flow diagram of the setting method of another terminal time of the embodiment of the present invention.This Implementation example figure 3 can store the corresponding relationship of preset MCC and time-zone information in the database, relatively due to national quantity Few, the quantity of MCC and the corresponding relationship in the time zone for representing country are also relatively fewer, therefore the memory space of database occupied terminal It is small.In the present embodiment, terminal first obtains the MCC of current mobile network, then judges whether the mobile network of access switches.This Outside, terminal can also first judge whether the mobile network of access switches, and obtain current mobile network again when the judgment is yes Mobile Country Code MCC MCC, specifically, terminal can judge the mobile network of access according to the relevant information of the operator of access to mobile network Whether network switches.Therefore, the embodiment of the present invention does not limit judgment step and obtains the sequencing of MCC step, below Then formerly it is illustrated with obtaining MCC step.
As shown in figure 3, the setting method of another terminal time of the embodiment of the present invention may comprise steps of.
S300 is obtained and is recorded the MCC for switching preceding mobile network.
In the specific implementation, in the second country, terminal access is when user holds terminal before entering the first country The mobile network of second country, then terminal obtains and records the MCC of the mobile network of the second country.
S310 obtains the MCC of current mobile network.
In the specific implementation, when user holds terminal into the first country, terminal is by the mobile network of the second of access the country Current mobile network is switched to, the MCC of current mobile network is obtained.For example, when user holds terminal and enters China by Britain, eventually End is by automatic or user selection by the mobile network (one of the operator of Britain mobile network: Britain Telecom) of the second country Current mobile network (one of operator of China Mobile network: China Mobile) is switched to, terminal obtains China Mobile at this time MCC, i.e., 460.
As a kind of enforceable mode, terminal can send registration request to the base station of current mobile network, i.e. request connects The base station for entering current mobile network, after the base station is agreed to, terminal receives the access information that base station returns, according to access information Obtain MCC code.
S320, it is whether consistent with the MCC of mobile network before switching according to the MCC of current mobile network, judge the shifting of access Whether dynamic network switches.
In the specific implementation, terminal is after accessing current mobile network, can be according to the MCC of current mobile network and switching before Whether the MCC of mobile network is consistent, judges whether the mobile network of access changes.If being judged as YES, then follow the steps 330, if being judged as NO, illustrate terminal before access switches after mobile network may in connection breaking, and re-establish connection, this When switch before mobile network and current mobile network be identical mobile network, then process terminates, that is, stop change terminal when Between.
S330, if the mobile network of access switches, according to the time zone before the MCC of mobile network before switching and switching The MCC of time and current mobile network obtains time zone time corresponding with the MCC of current mobile network.
Optionally, terminal can obtain according to the corresponding relationship of preset MCC and time-zone information and switch preceding mobile network's Time-zone information corresponding to MCC obtains the MCC with current mobile network according to the corresponding relationship of preset MCC and time-zone information Corresponding time-zone information.Then, terminal obtain with switch before mobile network MCC corresponding to time-zone information, and with work as Difference between time-zone information corresponding to the MCC of preceding mobile network.Finally, when time zone of the terminal according to difference and before switching Between, obtain time zone time corresponding with the MCC of current mobile network.For example, if switching the corresponding time zone MCC of preceding mobile network Information is zero zone, and corresponding 8th area time-zone information Wei Dong the MCC of current mobile network then calculates the difference in Dong Baqu and zero zone Value differs 8 time zones, the time zone time of mobile network adds 8 hours before last terminal will switch, and obtains the time zone in eastern 8th area Time.
As a kind of enforceable mode, terminal searches the database for storing the corresponding relationship of MCC and time-zone information, Obtain time-zone information corresponding with the preceding MCC of mobile network is switched.Terminal can also search pair for storing MCC and time-zone information The database that should be related to obtains time-zone information corresponding with the MCC of current mobile network.The detailed process of terminal inquiry database Detailed in Example Fig. 2, the present embodiment then repeat no more.
Time zone time is set terminal time by S340.
In the specific implementation, the time zone time in 8th area terminal Jiang Dong is set as terminal time, the automatic of terminal time is realized Setting and transformation.
By method described in implementing Fig. 3, it can judge that the mobile network of access is by the MCC of current mobile network It is no to switch, if being judged as YES, the corresponding time zone time of the MCC of current mobile network, then the time zone time, be set as Terminal time thereby may be ensured that the accurate of terminal time, and simple and fast.In addition, the database occupancy of terminal built-in is deposited Storage space is small, and query process is more quick.
Referring to Fig. 4, Fig. 4 is a kind of structural schematic diagram of terminal of the embodiment of the present invention, terminal as shown in Figure 4 includes First acquisition unit 400, judging unit 410, second acquisition unit 420 and setting unit 430.
First acquisition unit 400, for obtaining the Mobile Country Code MCC MCC of current mobile network;
Judging unit 410, for judging whether the mobile network of access switches;
Second acquisition unit 420, for when the judging result of judging unit 410, which is, is, then obtaining and current mobile network The corresponding time zone time of the MCC of network;
Setting unit 430, for setting terminal time for time zone time.
In the specific implementation, terminal can be connect by automatic or user selection when user holds terminal and enters a country Enter the mobile network to the country, then terminal obtains MCC belonging to current mobile network by the current mobile network of access.
In the specific implementation, by judge whether the mobile network accessed the determining user that whether switches holds terminal from another A country enters the country.
In the specific implementation, if it is judged that be it is yes, then terminal is according to the MCC of current mobile network, when obtaining corresponding Area's time.
In the specific implementation, after the MCC of terminal acquisition current mobile network corresponding time zone time, it can be by the time zone time It is set as terminal time.
As a kind of enforceable mode, second acquisition unit 420 is specifically used for:
When the judging result of judging unit 410, which is, is, then according to the corresponding relationship of preset MCC and time-zone information, obtain Obtain time-zone information corresponding with the MCC of current mobile network.
According to time-zone information, time zone time corresponding with the MCC of current mobile network is obtained.
As a kind of enforceable mode, second acquisition unit 420 is specifically also used to:
The database for storing the corresponding relationship of MCC and time-zone information is searched, MCC pairs with current mobile network is obtained The time-zone information answered.
As a kind of enforceable mode, second acquisition unit 420 is specifically also used to:
According to greenwich time and time-zone information, time zone time corresponding with the MCC of current mobile network is obtained.
As a kind of enforceable mode, the structural schematic diagram of another terminal of the embodiment of the present invention as shown in Figure 5. Terminal further includes third acquiring unit 440.
Third acquiring unit 440, for obtaining and recording the MCC of the preceding mobile network of switching.
In the specific implementation, in the second country, terminal access is when user holds terminal before entering the first country The mobile network of second country, then terminal obtains and records the MCC of the mobile network of the second country.
As a kind of enforceable mode, judging unit 410 is specifically used for:
It is whether consistent with the MCC of mobile network before switching according to the MCC of current mobile network, judge the mobile network of access Whether switch.
As a kind of enforceable mode, second acquisition unit 420 is specifically also used to:
If access mobile network switch, according to switch before mobile network MCC and switching before time zone time, And the MCC of current mobile network, obtain time zone time corresponding with the MCC of current mobile network.
As a kind of enforceable mode, second acquisition unit 420 is specifically also used to:
According to the corresponding relationship of preset MCC and time-zone information, when obtaining with corresponding to the MCC of mobile network before switching Area's information;According to the corresponding relationship of preset MCC and time-zone information, time zone corresponding to the MCC with current mobile network is obtained Information;It obtains and switches time-zone information corresponding to the MCC of preceding mobile network, and corresponding to the MCC with current mobile network Time-zone information between difference;According to the time zone time before difference and switching, obtain corresponding with the MCC of current mobile network Time zone time.
As a kind of enforceable mode, second acquisition unit 420 is specifically also used to:
The database for storing the corresponding relationship of MCC and time-zone information is searched, the MCC with mobile network before switching is obtained Corresponding time-zone information.
As a kind of enforceable mode, second acquisition unit 420 is specifically also used to:
The database for storing the corresponding relationship of MCC and time-zone information is searched, MCC pairs with current mobile network is obtained The time-zone information answered.
In the specific implementation, database is inquired according to the MCC of current mobile network after terminal access current mobile network, The time-zone information of current mobile network is obtained, then calculates the time-zone information of mobile network and the time zone of current mobile network before switching Difference between information obtains the time zone time of current mobile network according to the time zone time before the difference and switching.
By implementing terminal described in Fig. 4 or Fig. 5, the mobile network of access can be judged by the MCC of current mobile network Whether network switches, if being judged as YES, the corresponding time zone time of the MCC of current mobile network, then the time zone time, if It is set to terminal time, thereby may be ensured that the accurate of terminal time, and simple and fast.In addition, the database of terminal built-in accounts for Small with memory space, query process is more quick.
Referring to Fig. 6, Fig. 6 is the structural schematic diagram of the third terminal of the embodiment of the present invention.
As shown in fig. 6, the terminal includes: at least one processor 600, such as CPU, at least one user interface 610 is deposited Reservoir 620, at least one communication bus 630.Wherein, communication bus 630 is for realizing the connection communication between these establishments.With Family interface 610 may include display screen (Display), when the MCC of the current mobile network for terminal is corresponding Area's time.Memory 620 can be high speed RAM memory, be also possible to non-labile memory (non-volatile Memory), a for example, at least magnetic disk storage.Memory 620 optionally can also be that at least one is located remotely from aforementioned place Manage the storage device of device 600.In addition, memory 620 is also used to store the database of the embodiment of the present invention.Wherein processor 600 Terminal described in Fig. 4 and Fig. 5 can be combined, stores batch processing code in memory 620, and processor 600 passes through communication Bus 630 calls the program code stored in memory 620, for performing the following operations:
Obtain the Mobile Country Code MCC MCC of current mobile network;Judge whether the mobile network of access switches;If access Mobile network switch, then obtain corresponding with the MCC of current mobile network time zone time;It sets time zone time to eventually Hold the time.
In the specific implementation, in the second country, terminal access is when user holds terminal before entering the first country The mobile network of second country, then processor 600 obtains and records the MCC of the mobile network of the second country, is accessed by judgement Mobile network whether switch determining user whether hold terminal from another country enter the country.If it is judged that being It is that then processor 600 obtains corresponding time zone time according to the MCC of current mobile network.When processor 600 is obtained when Forward After the corresponding time zone time of MCC of dynamic network, the time zone time can be set to terminal time, and will using communication bus 630 The display screen that time zone time is sent to user interface 610 is shown.
As a kind of enforceable mode, if the mobile network of access switches, processor 600 calls memory Program code in 620 obtains time zone time corresponding with the MCC of current mobile network, is specifically as follows:
If the mobile network of access switches, according to the corresponding relationship of preset MCC and time-zone information, obtains and work as The corresponding time-zone information of the MCC of preceding mobile network;According to time-zone information, time zone corresponding with the MCC of current mobile network is obtained Time.
As a kind of enforceable mode, according to the corresponding relationship of preset MCC and time-zone information, processor 600 is called Program code in memory 620 obtains time-zone information corresponding with the MCC of current mobile network, is specifically as follows:
The database for searching the corresponding relationship for storing MCC and time-zone information in memory 620 obtains and works as Forward The corresponding time-zone information of MCC of dynamic network.
As a kind of enforceable mode, according to time-zone information, processor 600 calls the program code in memory 620 Time zone time corresponding with the MCC of current mobile network is obtained, is specifically as follows:
According to greenwich time and time-zone information, time zone time corresponding with the MCC of current mobile network is obtained.
In the specific implementation, processor 600 first can search storage by communication bus 630 according to the MCC of current mobile network Database in device 620, the corresponding time-zone information of MCC to obtain current mobile network, wherein the data in memory 620 Library is used to store the corresponding relationship of MCC and time-zone information.Since MCC is for country belonging to unique identification mobile subscriber, The MCC of current mobile network is obtained later it can be learnt that country belonging to current mobile network.The time that each country uses It is set according to the time in the preset time zone of the country.Therefore, processor 600 can be preset according in the database of memory 620 MCC and time-zone information corresponding relationship, inquire corresponding with MCC time-zone information.Compared to storage longitude and latitude and country or city The memory space that the corresponding relationship of the corresponding relationship in city, storage MCC and time-zone information occupies memory 620 is smaller, to terminal Computing capability requires then lower.Then, processor 600 can obtain according to greenwich time and time-zone information and work as Forward The corresponding time zone time of MCC of dynamic network.
As a kind of enforceable mode, it is following that processor 600 calls the program code in memory 620 can also be performed Operation:
It obtains and records the MCC for switching preceding mobile network.
In the specific implementation, in the second country, terminal access is when user holds terminal before entering the first country The mobile network of second country, then processor 600 obtains and records the MCC of the mobile network of the second country.
As a kind of enforceable mode, processor 600 calls the movement of the program code judgement access in memory 620 Whether network switches, and is specifically as follows:
It is whether consistent with the MCC of mobile network before switching according to the MCC of current mobile network, judge the mobile network of access Whether switch.
As a kind of enforceable mode, if the mobile network of access switches, processor 600 calls memory Program code in 620 obtains time zone time corresponding with the MCC of current mobile network, is specifically as follows:
If access mobile network switch, according to switch before mobile network MCC and switching before time zone time, And the MCC of current mobile network, obtain time zone time corresponding with the MCC of current mobile network.
As a kind of enforceable mode, according to the time zone time before the MCC of mobile network before switching and switching, and work as The MCC of preceding mobile network, it is corresponding with the MCC of current mobile network that processor 600 calls the program code in memory 620 to obtain Time zone time, be specifically as follows:
According to the corresponding relationship of preset MCC and time-zone information, when obtaining with corresponding to the MCC of mobile network before switching Area's information;According to the corresponding relationship of preset MCC and time-zone information, time zone corresponding to the MCC with current mobile network is obtained Information;It obtains and switches time-zone information corresponding to the MCC of preceding mobile network, and corresponding to the MCC with current mobile network Time-zone information between difference;According to the time zone time before difference and switching, obtain corresponding with the MCC of current mobile network Time zone time.
As a kind of enforceable mode, according to the corresponding relationship of preset MCC and time-zone information, processor 600 is called Time-zone information corresponding to the MCC of mobile network before program code in memory 620 obtains and switches, is specifically as follows:
The database for searching the corresponding relationship for storing MCC and time-zone information in memory 620, before obtaining and switching The corresponding time-zone information of the MCC of mobile network.
As a kind of enforceable mode, according to the corresponding relationship of preset MCC and time-zone information, processor 600 is called Program code in memory 620 obtains time-zone information corresponding to the MCC with current mobile network, is specifically as follows:
The database for searching the corresponding relationship for storing MCC and time-zone information in memory 620 obtains and works as Forward The corresponding time-zone information of MCC of dynamic network.
In the specific implementation, database is inquired according to the MCC of current mobile network after terminal access current mobile network, The time-zone information of current mobile network is obtained, then calculates the time-zone information of mobile network and the time zone of current mobile network before switching Difference between information obtains the time zone time of current mobile network according to the time zone time before the difference and switching.
By implementing terminal described in Fig. 6, processor 600 can judge the shifting of access by the MCC of current mobile network Whether dynamic network switches, if being judged as YES, the corresponding time zone time of the MCC of current mobile network, then when the time zone Between, it is set as terminal time, and show by the display screen that communication bus 630 is sent to user interface 610, thereby may be ensured that Terminal time it is accurate and simple and fast.In addition, the database of terminal built-in occupies, memory space is small, and query process is more Fast.
The apparatus embodiments described above are merely exemplary, wherein described, unit can as illustrated by the separation member It is physically separated with being or may not be, component shown as a unit may or may not be physics list Member, it can it is in one place, or may be distributed over multiple network units.It can be selected according to the actual needs In some or all of the modules achieve the purpose of the solution of this embodiment.Those of ordinary skill in the art are not paying creativeness Labour in the case where, it can understand and implement.
The steps in the embodiment of the present invention can be sequentially adjusted, merged and deleted according to actual needs.
Module or unit in the device of that embodiment of the invention can be combined, divided and deleted according to actual needs.
The module or module of the embodiment of the present invention, can be with universal integrated circuit (such as central processor CPU), or with dedicated Integrated circuit (ASIC) Lai Shixian.
Through the above description of the embodiments, those skilled in the art can be understood that each embodiment can It realizes by means of software and necessary general hardware platform, naturally it is also possible to pass through hardware.Based on this understanding, on Stating technical solution, substantially the part that contributes to existing technology can be embodied in the form of software products in other words, should Computer software product may be stored in a computer readable storage medium, such as ROM/RAM, magnetic disk, CD, including several fingers It enables and using so that a computer equipment (can be personal computer, server or the network equipment etc.) executes each implementation Method described in certain parts of example or embodiment.
Embodiments described above does not constitute the restriction to the technical solution protection scope.It is any in above-mentioned implementation Made modifications, equivalent substitutions and improvements etc., should be included in the protection model of the technical solution within the spirit and principle of mode Within enclosing.

Claims (5)

1. a kind of setting method of terminal time characterized by comprising
Before mobile network switches, obtains and record the MCC for switching preceding mobile network;
Obtain the Mobile Country Code MCC MCC of current mobile network;
It is whether consistent with the MCC of mobile network before switching according to the MCC of the current mobile network, judge the mobile network of access Whether switch;
If inconsistent, it is determined that the mobile network of the access switches, then corresponding with time-zone information according to preset MCC Relationship obtains corresponding with the MCC of mobile network before switching time-zone information, according to the time-zone information, acquisition with it is described The corresponding time-zone information of the MCC of current mobile network;
Obtain time-zone information corresponding to the MCC with mobile network before the switching, the MCC with the current mobile network Difference between corresponding time-zone information, and obtain the time zone time before the switching;
According to the time zone time before the difference and the switching, time zone corresponding with the MCC of the current mobile network is obtained Time;
Terminal time is set by the time zone time.
2. the method according to claim 1, wherein described according to the time-zone information, obtain with it is described current The corresponding time zone time of the MCC of mobile network, comprising:
According to greenwich time and the time-zone information, when obtaining time zone corresponding with the MCC of the current mobile network Between.
3. the method according to claim 1, wherein the MCC institute of mobile network is right before the acquisition switching Time-zone information corresponding to the MCC of the time-zone information and the current mobile network answered, comprising:
According to the corresponding relationship of preset MCC and time-zone information, when obtaining with corresponding to the MCC of mobile network before the switching Area's information;
According to the corresponding relationship of preset MCC and time-zone information, time zone corresponding to the MCC with the current mobile network is obtained Information.
4. according to the method described in claim 3, it is characterized in that, described close according to preset MCC is corresponding with time-zone information System obtains and time-zone information corresponding to the MCC of mobile network before the switching, comprising:
The database for storing the corresponding relationship of MCC and time-zone information is searched, the MCC with mobile network before the switching is obtained Corresponding time-zone information.
5. according to the method described in claim 3, it is characterized in that, described close according to preset MCC is corresponding with time-zone information System obtains time-zone information corresponding to the MCC with the current mobile network, comprising:
The database for storing the corresponding relationship of MCC and time-zone information is searched, MCC pairs with the current mobile network is obtained The time-zone information answered.
CN201410507610.0A 2014-09-28 2014-09-28 A kind of setting method of terminal time Active CN104284323B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410507610.0A CN104284323B (en) 2014-09-28 2014-09-28 A kind of setting method of terminal time

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410507610.0A CN104284323B (en) 2014-09-28 2014-09-28 A kind of setting method of terminal time

Publications (2)

Publication Number Publication Date
CN104284323A CN104284323A (en) 2015-01-14
CN104284323B true CN104284323B (en) 2019-05-17

Family

ID=52258701

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410507610.0A Active CN104284323B (en) 2014-09-28 2014-09-28 A kind of setting method of terminal time

Country Status (1)

Country Link
CN (1) CN104284323B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105517140A (en) * 2015-11-30 2016-04-20 努比亚技术有限公司 Time update method and device, mobile terminal and time update method for mobile terminal
CN106791112B (en) * 2016-12-23 2019-12-27 深圳市万普拉斯科技有限公司 Time zone automatic updating method, system and mobile terminal

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1414812A (en) * 2001-10-26 2003-04-30 Lg电子株式会社 Set-up method for auto-time of asynchronous mobile communication terminal

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102685716B (en) * 2012-03-27 2015-05-06 华为技术有限公司 Time information obtaining method and mobile terminal
CN102883071A (en) * 2012-10-18 2013-01-16 天翼电信终端有限公司 Mobile terminal and time display method of mobile terminal
CN103809427B (en) * 2012-11-14 2017-03-15 展讯通信(上海)有限公司 A kind of method and device for updating the mobile terminal time

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1414812A (en) * 2001-10-26 2003-04-30 Lg电子株式会社 Set-up method for auto-time of asynchronous mobile communication terminal

Also Published As

Publication number Publication date
CN104284323A (en) 2015-01-14

Similar Documents

Publication Publication Date Title
WO2016173348A1 (en) Network access method and mobile communications terminal
CN111597445B (en) Information recommendation method and device
CN111328082B (en) Base station planning method, device, equipment and storage medium
CN103841550A (en) Method and device for identifying multi-card user
CN102867031A (en) Method and system for optimizing point of interest (POI) searching results, mobile terminal and server
CN116029719B (en) Payment service recommendation method, electronic device and storage medium
CN111259241B (en) Information processing method and device and storage medium
CN104284323B (en) A kind of setting method of terminal time
CN103813439A (en) Method for terminal register and terminal
CN103327041A (en) Method and system for acquiring user contents
CN103262514A (en) Methods and systems for automated business dialing
CN107995375A (en) A kind of information-pushing method, mobile terminal and storage medium
CN105813102B (en) Automatic test system and method
CN104780253A (en) Address book management method
CN105229641A (en) For the method and apparatus of real-time management call data
CN106375551B (en) Information interaction method, device and terminal
JP5605203B2 (en) Information processing apparatus, information management server, information processing method, information management method, program, and information processing system
KR20100128629A (en) Method to provide site search service and server thereof
CN105246069A (en) SIM (subscriber identity module) data usage and mobile terminal
CN105474674A (en) Automatically detection of a network operator for a mobile network device
CN109672590A (en) Collecting method, device, equipment and computer readable storage medium
CN111954300B (en) Offline positioning method, device, equipment and storage medium
CN110191201B (en) Method, device and equipment for displaying cell alias and computer storage medium
CN105247515A (en) Method and apparatus for managing spatially related call data
CN111935029B (en) Gateway load balancing method and device, storage medium and electronic equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
EXSB Decision made by sipo to initiate substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20210408

Address after: 518057 Desai Science and Technology Building, 9789 Shennan Avenue, Yuehai Street, Nanshan District, Shenzhen City, Guangdong Province, 17th Floor (15th Floor of Natural Floor) 1702-1703

Patentee after: Shenzhen Microphone Holdings Co.,Ltd.

Address before: 518040 21 floor, east block, Times Technology Building, 7028 Shennan Road, Futian District, Shenzhen, Guangdong.

Patentee before: DONGGUAN GOLDEX COMMUNICATION TECHNOLOGY Co.,Ltd.

TR01 Transfer of patent right