CN110012171A - Time display method, device, storage medium and electronic equipment - Google Patents
Time display method, device, storage medium and electronic equipment Download PDFInfo
- Publication number
- CN110012171A CN110012171A CN201910282902.1A CN201910282902A CN110012171A CN 110012171 A CN110012171 A CN 110012171A CN 201910282902 A CN201910282902 A CN 201910282902A CN 110012171 A CN110012171 A CN 110012171A
- Authority
- CN
- China
- Prior art keywords
- time zone
- time
- difference
- zone
- city
- 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.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 57
- 238000004590 computer program Methods 0.000 claims description 18
- 241000208340 Araliaceae Species 0.000 claims description 4
- 235000005035 Panax pseudoginseng ssp. pseudoginseng Nutrition 0.000 claims description 4
- 235000003140 Panax quinquefolius Nutrition 0.000 claims description 4
- 235000008434 ginseng Nutrition 0.000 claims description 4
- 230000003252 repetitive effect Effects 0.000 abstract description 4
- 238000010586 diagram Methods 0.000 description 14
- 230000006870 function Effects 0.000 description 6
- 241000283070 Equus zebra Species 0.000 description 4
- 238000006243 chemical reaction Methods 0.000 description 2
- 230000005611 electricity Effects 0.000 description 2
- 238000004364 calculation method Methods 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 238000000926 separation method Methods 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72448—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72448—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
- H04M1/72457—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to geographic location
Landscapes
- Engineering & Computer Science (AREA)
- Human Computer Interaction (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Environmental & Geological Engineering (AREA)
- Electric Clocks (AREA)
Abstract
The embodiment of the present application provides a kind of time display method, device, storage medium and electronic equipment, which comprises time zone set is obtained, wherein time zone set includes multiple time zones;The corresponding time zone difference set in each time zone is obtained with reference to time zone according to each time zone, the time zone difference set includes that multiple time zones are poor, and each time zone difference includes the time zone and the difference with reference to time zone;Target time zone is determined according to the sum of the multiple time zone absolute value of the difference in each time zone difference set;Each time zone corresponding time is shown by benchmark time zone of the target time zone.In the time display method, target time zone is determined by the sum of multiple time zone absolute value of the difference in each time zone difference set.Then the time in each time zone is shown using target time zone as benchmark time zone, to reduce the repetitive rate that electronic equipment calculates each time zone, improves the efficiency for showing each time zone.
Description
Technical field
This application involves electronic technology field, in particular to a kind of time display method, device, storage medium and electronics are set
It is standby.
Background technique
Currently, smart phone generally uses in the whole world with the fast development of electronics industry.And smart phone
Function it is also more and more abundant.Such as it can show the function of zebra time.The zebra time refers to according to local time zone
Directly display the corresponding local time.In addition, smart phone can show working as different time zone simultaneously according to the display function
The ground time.
But it when showing the local time in the presently described time zone of electronic equipment each time, requires by way of calculating
To show the local time in each time zone.Therefore during the local time for calculating each time zone, it will generate and compute repeatedly
The problem of.Therefore the efficiency calculated is also caused to reduce.
Summary of the invention
The embodiment of the present application provides a kind of time display method, device, storage medium and electronic equipment, can reduce to every
The calculating repetitive rate in a time zone, to improve computational efficiency.
The embodiment of the present application provides a kind of time display method, comprising: time zone set is obtained, wherein time zone set packet
Include multiple time zones;
The corresponding time zone difference set in each time zone is obtained with reference to time zone according to each time zone, the time zone is poor
Set includes that multiple time zones are poor, and each time zone difference includes the time zone and the difference with reference to time zone;
Target time zone is determined according to the sum of the multiple time zone absolute value of the difference in each time zone difference set;
Each time zone corresponding time is shown by benchmark time zone of the target time zone.
The embodiment of the present application also provides a kind of time display apparatus, comprising:
First obtains module, for obtaining time zone set, wherein time zone set includes multiple time zones;
Second obtains module, for according to each time zone with reference to the corresponding time zone in the time zone each time zone of acquisition
Difference set, the time zone difference set include that multiple time zones are poor, and each time zone difference includes the time zone and the reference
The difference in time zone;
Determining module, for being determined according to the sum of the multiple time zone absolute value of the difference in each time zone difference set
Target time zone;
Display module, for showing each time zone corresponding time by benchmark time zone of the target time zone.
The embodiment of the present application also provides a kind of storage medium, computer program is stored in the storage medium, when described
When computer program is run on computers, so that the computer executes above-mentioned time display method.
The embodiment of the present application also provides a kind of electronic equipment, including processor and memory, is stored in the memory
Computer program, the processor is by calling the computer program stored in the memory, when for executing above-mentioned
Between method.
In time display method provided by the embodiments of the present application, time display method provided by the embodiments of the present application, comprising:
Time zone set is obtained, wherein time zone set includes multiple time zones;It is obtained according to each time zone and with reference to time zone each
The corresponding time zone difference set in the time zone, the time zone difference set includes that multiple time zones are poor, and each time zone difference includes one
The time zone and the difference with reference to time zone;According to the multiple time zone absolute value of the difference in each time zone difference set
The sum of determine target time zone;Each time zone corresponding time is shown by benchmark time zone of the target time zone.When described
Between in display methods, determine target time zone by the sum of multiple time zone absolute value of the difference in each time zone difference set.Then with
Target time zone is that benchmark time zone shows the time in each time zone, to reduce the repetition that electronic equipment calculates each time zone
Rate improves the efficiency for showing each time zone.
Detailed description of the invention
In order to more clearly explain the technical solutions in the embodiments of the present application, make required in being described below to embodiment
Attached drawing is briefly described.It should be evident that the drawings in the following description are only some examples of the present application, for
For those skilled in the art, without creative efforts, it can also be obtained according to these attached drawings other attached
Figure.
Fig. 1 is the first flow diagram of time display method provided by the embodiments of the present application.
Fig. 2 is second of flow diagram of time display method provided by the embodiments of the present application.
Fig. 3 is the third flow diagram of time display method provided by the embodiments of the present application.
Fig. 4 is the 4th kind of flow diagram of time display method provided by the embodiments of the present application.
Fig. 5 is the 5th kind of flow diagram of time display method provided by the embodiments of the present application.
Fig. 6 is the 6th kind of flow diagram of time display method provided by the embodiments of the present application.
Fig. 7 is the structural schematic diagram of time display apparatus provided by the embodiments of the present application.
Fig. 8 is the structural schematic diagram of electronic equipment provided by the embodiments of the present application.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present application, technical solutions in the embodiments of the present application carries out clear, complete
Site preparation description.Obviously, described embodiments are only a part of embodiments of the present application, instead of all the embodiments.It is based on
Embodiment in the application, those skilled in the art's every other implementation obtained under that premise of not paying creative labor
Example, belongs to the protection scope of the application.
With reference to Fig. 1, Fig. 1 is the first flow diagram of time display method provided by the embodiments of the present application.
The embodiment of the present application provides a kind of time display method, and the time display method can be applied to electronic equipment
In.The electronic equipment can be the equipment such as smart phone, tablet computer.The time display method may include following step
It is rapid:
110, time zone set is obtained, wherein time zone set includes multiple time zones.
Wherein, in order to look after the easy to use of each department, and it is easy people elsewhere by local time conversion
It is gone on to the otherwise time.Related international conference is determined earth surface by warp from south to north, is divided into 24 time zones, and
Stipulated that the time phase difference of adjacent area 1 hour.
Electronic equipment obtains time zone set as a result, wherein time zone set includes multiple time zones.In addition, the multiple
There are history time zone and current time zone in time zone.Wherein current time zone is the current time zone of the electronic equipment.Such as: obtain five
The time zone in a city.Wherein city A be located at eastern 8th areas (UTC/GMT+08:00), city B be located at eastern tenth area (UTC/GMT+10:
00), city C is located at an eastern area (UTC/GMT+01:00), city D is located at eastern 3rd areas (UTC/GMT+03:00), city E is located at east
6th area (UTC/GMT+06:00).
120, the corresponding time zone difference set in each time zone is obtained with reference to time zone according to each time zone, when described
Area's difference set includes that multiple time zones are poor, and each time zone difference includes the time zone and the difference with reference to time zone.
It is understood that electronic equipment is successively using each time zone as with reference to time zone.Then other are successively calculated
Time zone and the difference with reference between time zone, to obtain the corresponding corresponding difference set in each time zone.Such as:
It is first with reference to time zone with 8th area eastern where the A of city, then the corresponding time zone difference set in 8th area Dong includes where the A of city
The value of following bracket:
City A is located at eastern 8th areas (UTC/GMT+08:00) [0], city B is located at eastern tenth areas (UTC/GMT+10:00) [2],
City C is located at an eastern area (UTC/GMT+01:00) [- 7], city D is located at eastern 3rd areas (UTC/GMT+03:00) [- 5], city E
The area Yu Dongliu (UTC/GMT+06:00) [- 2].
Wherein, the value of one bracket is that a time zone is poor, then east eight area-Dong Baqu, i.e. 8-8=0.Described 0
It is poor for a time zone.East ten area-Dong Baqu, i.e. 10-8=2.Described 2 is poor for a time zone.East one area-Dong Baqu, i.e. 1-8=-
7, described -7 is poor for a time zone.East three area-Dong Baqu, i.e. 3-8=-5, described -5 are that a time zone is poor.Eastern 6th area-east eight
Area, i.e. 6-8=-2.- 2 is poor for a time zone.
It is with reference to time zone with time zone where the B of city, then the corresponding time zone difference set in tenth area Dong includes following where the B of city
The value of bracket:
City A is located at eastern 8th areas (UTC/GMT+08:00) [- 2], city B is located at eastern tenth areas (UTC/GMT+10:00) [0],
City C is located at an eastern area (UTC/GMT+01:00) [- 9], city D is located at eastern 3rd areas (UTC/GMT+03:00) [- 7], city E
The area Yu Dongliu (UTC/GMT+06:00) [- 4].The value of one of bracket is that a time zone is poor.Similarly, the calculating of time zone difference
Please with specific reference to above-mentioned calculating process.
It is with reference to time zone with time zone where the C of city, then the corresponding time zone difference set in mono- area Dong includes following where the C of city
The value of bracket:
City A is located at eastern 8th areas (UTC/GMT+08:00) [7], city B is located at eastern tenth areas (UTC/GMT+10:00) [9],
City C is located at an eastern area (UTC/GMT+01:00) [0], city D is located at eastern 3rd areas (UTC/GMT+03:00) [2], city E is located at
Eastern 6th areas (UTC/GMT+06:00) [5].The value of one of bracket is that a time zone is poor.Similarly, the calculating of time zone difference please have
Body refers to above-mentioned calculating process.
It is with reference to time zone with time zone where the D of city, then the corresponding time zone difference set in 3rd area Dong includes following where the D of city
The value of bracket:
City A is located at eastern 8th areas (UTC/GMT+08:00) [5], city B is located at eastern tenth areas (UTC/GMT+10:00) [7],
City C is located at an eastern area (UTC/GMT+01:00) [- 2], city D is located at eastern 3rd areas (UTC/GMT+03:00) [0], city E
The area Yu Dongliu (UTC/GMT+06:00) [3].The value of one of bracket is that a time zone is poor.Similarly, the calculating of time zone difference is asked
With specific reference to above-mentioned calculating process.
It is with reference to time zone with time zone where the E of city, then the corresponding time zone difference set in 6th area Dong includes following where the E of city
The value of bracket:
City A is located at eastern 8th areas (UTC/GMT+08:00) [2], city B is located at eastern tenth areas (UTC/GMT+10:00) [4],
City C is located at an eastern area (UTC/GMT+01:00) [- 5], city D is located at eastern 3rd areas (UTC/GMT+03:00) [- 3], city E
Positioned at eastern 6th areas (UTC/GMT+06:00) [0].The value of one of bracket is that a time zone is poor.Similarly, the calculating of time zone difference
Please with specific reference to above-mentioned calculating process.
In addition to this, electronic equipment can be with (ln,Cn) format record time zone it is poor.Wherein n is the label in each time zone.
lnIt indicates to refer to time zone.CnIndicate each time zone.In addition by time zone gather in each time zone carry out label.Such as city A is located at
8th area Dong is No. 1, city B is located at that tenth area Dong is No. 2, city C is located at that mono- area Dong is No. 3, city D is located at 3rd area Dong
Being located at 6th area Dong for No. 4 and city E is No. 5.It is then that the time zone difference set got with reference to time zone can with each city
To enter shown in table 1.
Table 1
Eastern 8th area | Eastern tenth area | An eastern area | Eastern 3rd area | Eastern 6th area |
(1,1) | (2,1) | (3,1) | (4,1) | (5,1) |
(1,2) | (2,2) | (3,2) | (4,2) | (5,2) |
(1,3) | (2,3) | (3,3) | (4,3) | (5,3) |
(1,4) | (2,4) | (3,4) | (4,4) | (5,4) |
(1,5) | (2,5) | (3,5) | (4,5) | (5,5) |
If 8th area are with reference to time zone to the east of, and time zone difference set includes (1,1), (1,2), (1,3), (Isosorbide-5-Nitrae) and (1,5)
This 5 record information.I.e. time zone difference set includes multiple record data.One record data includes the serial number and ginseng in a time zone
Examine the serial number in time zone.Obtain the corresponding time zone of each serial number in each record data.It calculates in each record data
Difference between one time zone and reference time zone, it is poor to obtain the corresponding time zone of each record data.Thus, for example record data
(1,2), 1 serial number city A are located at 8th area Dong, that is, refer to time zone, and 2 serial number city B are located at tenth area Dong.Calculate eastern tenth area
And the difference between eastern 8th area is 2, then 2 is poor for a time zone.Wherein the serial number not only can for clock synchronization area mark Ah
Arabic numbers, or time zone, or to other representations such as the English alphabets of time zone mark, do not go to live in the household of one's in-laws on getting married herein
It states.
To sum up, according to the corresponding time zone difference set in the available each city of above-mentioned calculating process.When i.e. each
The corresponding time zone difference set in area.
130, target time zone is determined according to the sum of the multiple time zone absolute value of the difference in each time zone difference set.
In some embodiments, electronic equipment calculates the absolute of the difference of the multiple time zone in each time zone difference set
Be worth and value.The described and the smallest time zone of value is determined as target time zone.Such as: and then above-mentioned example.City A is located at east
Its corresponding time zone difference set of 8th area includes: that 0,2, -7, -5, -2 this five time zones are poor.City B be located at eastern tenth area its it is corresponding when
Area's difference set includes: that -2,0, -9, -7, -4 this five time zones are poor.City C is located at eastern its corresponding time zone difference set of an area
7,9,0,2,5 this five time zones are poor.It includes: 5,7, -2,0,3 this five that city D, which is located at eastern its corresponding time zone difference set of 3rd area,
Time zone is poor.
Therefore city A is with value positioned at its multiple time zone absolute value of the difference of eastern 8th area | 0 |+| 2 |+| -7 |+| -5 |+| -2 |
=16.City B is located at eastern its multiple time zone absolute value of the difference of tenth area and value is | -2 |+| 0 |+| -9 |+| -7 |+| -4 |=22.
City C is located at eastern its multiple time zone absolute value of the difference of an area and value is | 7 |+| 9 |+| 0 |+| 2 |+| 5 |=23.City D is located at
Eastern its multiple time zone absolute value of the difference of 3rd area and value be | 5 |+| 7 |+| -2 |+| 0 |+| 3 |=17.City E be located at eastern 6th area its
Multiple time zone absolute value of the difference and value be | 2 |+| 4 |+| -5 |+| -3 |+| 0 |=14.
By it is above-mentioned be worth available city E and be located at that eastern 6th area are corresponding and value is minimum.Therefore city E is target time zone.
140, each time zone corresponding time is shown by benchmark time zone of the target time zone.
In some embodiments, electronic equipment is corresponding as the benchmark time zone each time zone of calculating using the target time zone
Time.And show each time zone corresponding time.Therefore, with the east six where the and then upper available city E of example
Area is target time zone.The time of city A, city B, city C, city D and city E are shown using city E as benchmark time zone.
To sum up, when again user increases a time zone or user is under certain time zone or user deletes time zone set
In a time zone, be required to re-start the operation to time showing.And when electronic equipment starts, it is also desirable to again into
Operation of the row to time showing.
In some embodiments, with reference to second of the stream that Fig. 2, Fig. 2 are time display method provided by the embodiments of the present application
Journey schematic diagram.
Wherein, step 120, the corresponding time zone difference set in each time zone is obtained with reference to time zone according to each time zone
It closes, comprising the following steps:
121, successively using each time zone as with reference to time zone.
122, other time zones and the difference with reference between time zone are successively calculated, it is corresponding to obtain each time zone
Time zone difference set.
Electronic equipment is successively using each time zone as with reference to time zone.Then other time zones and the reference are successively calculated
Difference between time zone, to obtain the corresponding time zone difference set in each time zone.
Such as:
It is first with reference to time zone with 8th area eastern where the A of city, then the corresponding time zone difference set in 8th area Dong includes where the A of city
The value of following bracket:
City A is located at eastern 8th areas (UTC/GMT+08:00) [0], city B is located at eastern tenth areas (UTC/GMT+10:00) [2],
City C is located at an eastern area (UTC/GMT+01:00) [- 7], city D is located at eastern 3rd areas (UTC/GMT+03:00) [- 5], city E
The area Yu Dongliu (UTC/GMT+06:00) [- 2].
Wherein, the value of one bracket is that a time zone is poor, then east eight area-Dong Baqu, i.e. 8-8=0.Described 0
It is poor for a time zone.East ten area-Dong Baqu, i.e. 10-8=2.Described 2 is poor for a time zone.East one area-Dong Baqu, i.e. 1-8=-
7, described -7 is poor for a time zone.East three area-Dong Baqu, i.e. 3-8=-5, described -5 are that a time zone is poor.Eastern 6th area-east eight
Area, i.e. 6-8=-2.- 2 is poor for a time zone.
It is with reference to time zone with time zone where the B of city, then the corresponding time zone difference set in tenth area Dong includes following where the B of city
The value of bracket:
City A is located at eastern 8th areas (UTC/GMT+08:00) [- 2], city B is located at eastern tenth areas (UTC/GMT+10:00) [0],
City C is located at an eastern area (UTC/GMT+01:00) [- 9], city D is located at eastern 3rd areas (UTC/GMT+03:00) [- 7], city E
The area Yu Dongliu (UTC/GMT+06:00) [- 4].The value of one of bracket is that a time zone is poor.Similarly, the calculating of time zone difference
Please with specific reference to above-mentioned calculating process.
It is with reference to time zone with time zone where the C of city, then the corresponding time zone difference set in mono- area Dong includes following where the C of city
The value of bracket:
City A is located at eastern 8th areas (UTC/GMT+08:00) [7], city B is located at eastern tenth areas (UTC/GMT+10:00) [9],
City C is located at an eastern area (UTC/GMT+01:00) [0], city D is located at eastern 3rd areas (UTC/GMT+03:00) [2], city E is located at
Eastern 6th areas (UTC/GMT+06:00) [5].The value of one of bracket is that a time zone is poor.Similarly, the calculating of time zone difference please have
Body refers to above-mentioned calculating process.
It is with reference to time zone with time zone where the D of city, then the corresponding time zone difference set in 3rd area Dong includes following where the D of city
The value of bracket:
City A is located at eastern 8th areas (UTC/GMT+08:00) [5], city B is located at eastern tenth areas (UTC/GMT+10:00) [7],
City C is located at an eastern area (UTC/GMT+01:00) [- 2], city D is located at eastern 3rd areas (UTC/GMT+03:00) [0], city E
The area Yu Dongliu (UTC/GMT+06:00) [3].The value of one of bracket is that a time zone is poor.Similarly, the calculating of time zone difference is asked
With specific reference to above-mentioned calculating process.
It is with reference to time zone with time zone where the E of city, then the corresponding time zone difference set in 6th area Dong includes following where the E of city
The value of bracket:
City A is located at eastern 8th areas (UTC/GMT+08:00) [2], city B is located at eastern tenth areas (UTC/GMT+10:00) [4],
City C is located at an eastern area (UTC/GMT+01:00) [- 5], city D is located at eastern 3rd areas (UTC/GMT+03:00) [- 3], city E
Positioned at eastern 6th areas (UTC/GMT+06:00) [0].The value of one of bracket is that a time zone is poor.Similarly, the calculating of time zone difference
Please with specific reference to above-mentioned calculating process.
It in some embodiments, is the third stream of time display method provided by the embodiments of the present application with reference to Fig. 3, Fig. 3
Journey schematic diagram.
Wherein, step 121, successively include the following steps using each time zone as time zone is referred to.
1211, according to each time zone when corresponding the longitude of zone centerline multiple time zones are arranged.
1212, according to the rank results successively using each time zone as with reference to time zone.
In some embodiments, the whole world is divided into 24 time zones altogether.Each time zone all with when zone centerline place it is mean sun
When the standard of Shi Zuowei local area.Therefore zone centerline when each time zone has, zone centerline is when described with the time zone model in the time zone
The center line that center latitude in enclosing is divided by separation.Therefore according to the when Division of zebra time, according to each time zone
The size of the longitude of zone centerline is arranged multiple time zones with sequence from the east to the west when corresponding.
Such as time zone set includes Dong Yiqu, Dong Baqu, Xi Yiqu, Xi Sanqu.The when zone centerline in a so eastern area
Longitude is 15 degree.Eastern 8th area when zone centerline longitude be 120 degree.A western area when zone centerline longitude be 15 degree, it is western
The longitude in 3rd area is 45 degree.According to when zone centerline longitude size and sequence from the east to the west arrange the time zone.According to
Above-mentioned time zone can be arranged as Dong Yiqu, Dong Baqu, Xi Yiqu, Xi Sanqu by sequence from the east to the west.Again according to each time zone
When zone centerline the size of longitude above-mentioned time zone is arranged.Such as can according to when zone centerline longitude size with
Incremental form is arranged.So rank results can mono- area Wei Dong, Dong Baqu, Xi Yiqu, Xi Sanqu.Because an eastern area when
The longitude of zone centerline be less than eastern 8th area when zone centerline longitude.A western area when zone centerline longitude be less than western 3rd area
When zone centerline longitude.
In addition, if a western area when zone centerline longitude be greater than west three when zone centerline longitude.So it is arranged
Mono- area column result Wei Dong, Dong Baqu, Xi Sanqu, Xi Yiqu.Similarly, can also according to when zone centerline longitude size to successively decrease
Form arranged.
In some embodiments, with reference to the 4th kind of stream that Fig. 4, Fig. 4 are time display method provided by the embodiments of the present application
Journey schematic diagram.
Wherein, step 130, target is determined according to the sum of the time zone absolute value of the difference in each time zone difference set
The step of time zone includes:
131, calculate the multiple time zone absolute value of the difference in each time zone difference set and value.
132, the described and the smallest time zone of value is determined as target time zone.
In some embodiments, electronic equipment calculates the absolute of the difference of the multiple time zone in each time zone difference set
Be worth and value.The described and the smallest time zone of value is determined as target time zone.Such as: and then above-mentioned example.City A is located at east
Its corresponding time zone difference set of 8th area includes: that 0,2, -7, -5, -2 this five time zones are poor.City B be located at eastern tenth area its it is corresponding when
Area's difference set includes: that -2,0, -9, -7, -4 this five time zones are poor.City C is located at eastern its corresponding time zone difference set of an area
7,9,0,2,5 this five time zones are poor.It includes: 5,7, -2,0,3 this five that city D, which is located at eastern its corresponding time zone difference set of 3rd area,
Time zone is poor.
Therefore city A is with value positioned at its multiple time zone absolute value of the difference of eastern 8th area | 0 |+| 2 |+| -7 |+| -5 |+| -2 |
=16.City B is located at eastern its multiple time zone absolute value of the difference of tenth area and value is | -2 |+| 0 |+| -9 |+| -7 |+| -4 |=22.
City C is located at eastern its multiple time zone absolute value of the difference of an area and value is | 7 |+| 9 |+| 0 |+| 2 |+| 5 |=23.City D is located at
Eastern its multiple time zone absolute value of the difference of 3rd area and value be | 5 |+| 7 |+| -2 |+| 0 |+| 3 |=17.City E be located at eastern 6th area its
Multiple time zone absolute value of the difference and value be | 2 |+| 4 |+| -5 |+| -3 |+| 0 |=14.
By it is above-mentioned be worth available city E and be located at that eastern 6th area are corresponding and value is minimum.Therefore city E is target time zone.
In some embodiments, with reference to the 5th kind of stream that Fig. 5, Fig. 5 are time display method provided by the embodiments of the present application
Journey schematic diagram.
Wherein, step 140, each time zone corresponding time is shown by benchmark time zone of the target time zone, including
Following steps:
141, each time zone corresponding time is calculated by benchmark time zone of the target time zone.
142, show each time zone corresponding time.
In some embodiments, electronic equipment is corresponding as the benchmark time zone each time zone of calculating using the target time zone
Time.And show each time zone corresponding time.For example, 8th area target time zone Wei Dong, then electronic equipment can
To get the difference between each time zone and eastern 8th area.According between eastern 8th area current time and each difference and
Value, to show each time zone corresponding time.
In some embodiments, with reference to the 6th kind of stream that Fig. 6, Fig. 6 are time display method provided by the embodiments of the present application
Journey schematic diagram.
Wherein, step 141, each time zone corresponding time is calculated by benchmark time zone of the target time zone, including
Following steps:
1411, obtain the time difference in each time zone and the target time zone.
1412, successively increase each time zone corresponding time difference on the time in the target time zone, it is every to obtain
The time in one time zone.
Electronic equipment obtains the time difference in each time zone Yu target time zone.Then the current time in target time zone is obtained.Electricity
Sub- equipment successively increases each time zone corresponding time difference on the time in target time zone, to obtain each time zone
Time.
For example, city E is target time zone.Obtaining the city E current time is 8 a.m..Obtain each time zone and target
The time difference in time zone.Wherein the time difference is using city E as benchmark time zone.The time difference in each time zone and city E.If city A institute
The time zone the being located at corresponding time difference is 2.Between the time difference and the city E current time and value is so calculated,
Described is the time zone that city A is located at corresponding time with value.Electronic equipment shows the time.
When it is implemented, the application is not limited by the execution sequence of described each step, conflict is not being generated
In the case of, certain steps can also be carried out using other sequences or be carried out simultaneously.
From the foregoing, it will be observed that time display method provided by the embodiments of the present application, comprising: time zone set is obtained, wherein when described
Area's set includes multiple time zones;The corresponding time zone difference set in each time zone is obtained with reference to time zone according to each time zone
It closes, the time zone difference set includes that multiple time zones are poor, and each time zone difference refers to time zone with described including a time zone
Difference;Target time zone is determined according to the sum of the multiple time zone absolute value of the difference in each time zone difference set;With institute
Stating target time zone is that benchmark time zone shows each time zone corresponding time.In the time display method, by each
The sum of multiple time zone absolute value of the difference in the difference set of time zone determine target time zone.Then it is shown by benchmark time zone of target time zone
The time in each time zone reduces the repetitive rate that electronic equipment calculates each time zone, improves the efficiency for showing each time zone.
The embodiment of the present application also provides a kind of time display apparatus, and the time display apparatus can integrate in electronic equipment
In, the electronic equipment can be the equipment such as smart phone, tablet computer.
As shown in fig. 7, time display apparatus 200 may include: the first acquisition module 210, second obtain module 220, really
Cover half block 230 and display module 240.First obtains module 210, for obtaining time zone set, wherein time zone set packet
Include multiple time zones.
Wherein, in order to look after the easy to use of each department, and it is easy people elsewhere by local time conversion
It is gone on to the otherwise time.Related international conference is determined earth surface by warp from south to north, is divided into 24 time zones, and
Stipulated that the time phase difference of adjacent area 1 hour.
Electronic equipment obtains time zone set as a result, wherein time zone set includes multiple time zones.In addition, the multiple
There are history time zone and current time zone in time zone.Wherein current time zone is the current time zone of the electronic equipment.Such as: obtain five
The time zone in a city.Wherein city A be located at eastern 8th areas (UTC/GMT+08:00), city B be located at eastern tenth area (UTC/GMT+10:
00), city C is located at an eastern area (UTC/GMT+01:00), city D is located at eastern 3rd areas (UTC/GMT+03:00), city E is located at east
6th area (UTC/GMT+06:00).
Second obtains module 220, for corresponding with each time zone is obtained with reference to time zone according to each time zone
Time zone difference set, the time zone difference set include that multiple time zones are poor, each time zone difference include time zone with it is described
With reference to the difference in time zone.
It is understood that electronic equipment is successively using each time zone as with reference to time zone.Then other are successively calculated
Time zone and the difference with reference between time zone, to obtain the corresponding corresponding difference set in each time zone.Such as:
It is first with reference to time zone with 8th area eastern where the A of city, then the corresponding time zone difference set in 8th area Dong includes where the A of city
The value of following bracket:
City A is located at eastern 8th areas (UTC/GMT+08:00) [0], city B is located at eastern tenth areas (UTC/GMT+10:00) [2],
City C is located at an eastern area (UTC/GMT+01:00) [- 7], city D is located at eastern 3rd areas (UTC/GMT+03:00) [- 5], city E
The area Yu Dongliu (UTC/GMT+06:00) [- 2].
Wherein, the value of one bracket is that a time zone is poor, then east eight area-Dong Baqu, i.e. 8-8=0.Described 0
It is poor for a time zone.East ten area-Dong Baqu, i.e. 10-8=2.Described 2 is poor for a time zone.East one area-Dong Baqu, i.e. 1-8=-
7, described -7 is poor for a time zone.East three area-Dong Baqu, i.e. 3-8=-5, described -5 are that a time zone is poor.Eastern 6th area-east eight
Area, i.e. 6-8=-2.- 2 is poor for a time zone.
It is with reference to time zone with time zone where the B of city, then the corresponding time zone difference set in tenth area Dong includes following where the B of city
The value of bracket:
City A is located at eastern 8th areas (UTC/GMT+08:00) [- 2], city B is located at eastern tenth areas (UTC/GMT+10:00) [0],
City C is located at an eastern area (UTC/GMT+01:00) [- 9], city D is located at eastern 3rd areas (UTC/GMT+03:00) [- 7], city E
The area Yu Dongliu (UTC/GMT+06:00) [- 4].The value of one of bracket is that a time zone is poor.Similarly, the calculating of time zone difference
Please with specific reference to above-mentioned calculating process.
It is with reference to time zone with time zone where the C of city, then the corresponding time zone difference set in mono- area Dong includes following where the C of city
The value of bracket:
City A is located at eastern 8th areas (UTC/GMT+08:00) [7], city B is located at eastern tenth areas (UTC/GMT+10:00) [9],
City C is located at an eastern area (UTC/GMT+01:00) [0], city D is located at eastern 3rd areas (UTC/GMT+03:00) [2], city E is located at
Eastern 6th areas (UTC/GMT+06:00) [5].The value of one of bracket is that a time zone is poor.Similarly, the calculating of time zone difference please have
Body refers to above-mentioned calculating process.
It is with reference to time zone with time zone where the D of city, then the corresponding time zone difference set in 3rd area Dong includes following where the D of city
The value of bracket:
City A is located at eastern 8th areas (UTC/GMT+08:00) [5], city B is located at eastern tenth areas (UTC/GMT+10:00) [7],
City C is located at an eastern area (UTC/GMT+01:00) [- 2], city D is located at eastern 3rd areas (UTC/GMT+03:00) [0], city E
The area Yu Dongliu (UTC/GMT+06:00) [3].The value of one of bracket is that a time zone is poor.Similarly, the calculating of time zone difference is asked
With specific reference to above-mentioned calculating process.
It is with reference to time zone with time zone where the E of city, then the corresponding time zone difference set in 6th area Dong includes following where the E of city
The value of bracket:
City A is located at eastern 8th areas (UTC/GMT+08:00) [2], city B is located at eastern tenth areas (UTC/GMT+10:00) [4],
City C is located at an eastern area (UTC/GMT+01:00) [- 5], city D is located at eastern 3rd areas (UTC/GMT+03:00) [- 3], city E
Positioned at eastern 6th areas (UTC/GMT+06:00) [0].The value of one of bracket is that a time zone is poor.Similarly, the calculating of time zone difference
Please with specific reference to above-mentioned calculating process.
To sum up, according to the corresponding time zone difference set in the available each city of above-mentioned calculating process.When i.e. each
The corresponding time zone difference set in area.
Determining module 230, for according to the sum of the multiple time zone absolute value of the difference in each time zone difference set
Determine target time zone.
In some embodiments, electronic equipment calculates the absolute of the difference of the multiple time zone in each time zone difference set
Be worth and value.The described and the smallest time zone of value is determined as target time zone.Such as: and then above-mentioned example.City A is located at east
Its corresponding time zone difference set of 8th area includes: that 0,2, -7, -5, -2 this five time zones are poor.City B be located at eastern tenth area its it is corresponding when
Area's difference set includes: that -2,0, -9, -7, -4 this five time zones are poor.City C is located at eastern its corresponding time zone difference set of an area
7,9,0,2,5 this five time zones are poor.It includes: 5,7, -2,0,3 this five that city D, which is located at eastern its corresponding time zone difference set of 3rd area,
Time zone is poor.
Therefore city A is with value positioned at its multiple time zone absolute value of the difference of eastern 8th area | 0 |+| 2 |+| -7 |+| -5 |+| -2 |
=16.City B is located at eastern its multiple time zone absolute value of the difference of tenth area and value is | -2 |+| 0 |+| -9 |+| -7 |+| -4 |=22.
City C is located at eastern its multiple time zone absolute value of the difference of an area and value is | 7 |+| 9 |+| 0 |+| 2 |+| 5 |=23.City D is located at
Eastern its multiple time zone absolute value of the difference of 3rd area and value be | 5 |+| 7 |+| -2 |+| 0 |+| 3 |=17.City E be located at eastern 6th area its
Multiple time zone absolute value of the difference and value be | 2 |+| 4 |+| -5 |+| -3 |+| 0 |=14.
By it is above-mentioned be worth available city E and be located at that eastern 6th area are corresponding and value is minimum.Therefore city E is target time zone.
Display module 240, for showing each time zone corresponding time by benchmark time zone of the target time zone.
In some embodiments, electronic equipment is corresponding as the benchmark time zone each time zone of calculating using the target time zone
Time.And show each time zone corresponding time.Therefore, with the east six where the and then upper available city E of example
Area is target time zone.The time of city A, city B, city C, city D and city E are shown using city E as benchmark time zone.
In some embodiments, it is described according to each time zone with reference to time zone obtain each time zone it is corresponding when
Area's difference set, second obtains module 220, executes following steps:
Successively using each time zone as with reference to time zone;
Other time zones and the difference with reference between time zone are calculated, successively to obtain the corresponding time zone in each time zone
Difference set.
Electronic equipment is successively using each time zone as with reference to time zone.Then other time zones and the reference are successively calculated
Difference between time zone, to obtain the corresponding time zone difference set in each time zone.
Such as: it is first the then corresponding time zone difference set in 8th area Dong where the A of city with reference to time zone with 8th area eastern where the A of city
Close the value including following bracket:
City A is located at eastern 8th areas (UTC/GMT+08:00) [0], city B is located at eastern tenth areas (UTC/GMT+10:00) [2],
City C is located at an eastern area (UTC/GMT+01:00) [- 7], city D is located at eastern 3rd areas (UTC/GMT+03:00) [- 5], city E
The area Yu Dongliu (UTC/GMT+06:00) [- 2].
Wherein, the value of one bracket is that a time zone is poor, then east eight area-Dong Baqu, i.e. 8-8=0.Described 0
It is poor for a time zone.East ten area-Dong Baqu, i.e. 10-8=2.Described 2 is poor for a time zone.East one area-Dong Baqu, i.e. 1-8=-
7, described -7 is poor for a time zone.East three area-Dong Baqu, i.e. 3-8=-5, described -5 are that a time zone is poor.Eastern 6th area-east eight
Area, i.e. 6-8=-2.- 2 is poor for a time zone.Similarly city B, city C, city D and city E.
In some embodiments, described successively using each time zone as time zone is referred to, described second obtains module
220, execute following steps:
In some embodiments, the whole world is divided into 24 time zones altogether.Each time zone all with when zone centerline place it is mean sun
When the standard of Shi Zuowei local area.Therefore according to the when Division of zebra time, according to each time zone zone centerline when corresponding
The size of longitude is arranged multiple time zones with sequence from the east to the west.
Such as time zone set includes Dong Yiqu, Dong Baqu, Xi Yiqu, Xi Sanqu.The when zone centerline in a so eastern area
Longitude is 15 degree.Eastern 8th area when zone centerline longitude be 120 degree.A western area when zone centerline longitude be 15 degree, it is western
The longitude in 3rd area is 45 degree.According to when zone centerline longitude size and sequence from the east to the west arrange the time zone.According to
Above-mentioned time zone can be arranged as Dong Yiqu, Dong Baqu, Xi Yiqu, Xi Sanqu by sequence from the east to the west.Again according to each time zone
When zone centerline the size of longitude above-mentioned time zone is arranged.Such as can according to when zone centerline longitude size with
Incremental form is arranged.So rank results can mono- area Wei Dong, Dong Baqu, Xi Yiqu, Xi Sanqu.Because an eastern area when
The longitude of zone centerline be less than eastern 8th area when zone centerline longitude.A western area when zone centerline longitude be less than western 3rd area
When zone centerline longitude.
In addition, if a western area when zone centerline longitude be greater than west three when zone centerline longitude.So it is arranged
Mono- area column result Wei Dong, Dong Baqu, Xi Sanqu, Xi Yiqu.Similarly, can also according to when zone centerline longitude size to successively decrease
Form arranged.
In some embodiments, mesh is determined according to the sum of the time zone absolute value of the difference in each time zone difference set
Time zone is marked, the determining module 230 executes following steps:
In some embodiments, electronic equipment calculates the absolute of the difference of the multiple time zone in each time zone difference set
Be worth and value.The described and the smallest time zone of value is determined as target time zone.Such as: and then above-mentioned example.City A is located at east
Its corresponding time zone difference set of 8th area includes: that 0,2, -7, -5, -2 this five time zones are poor.City B be located at eastern tenth area its it is corresponding when
Area's difference set includes: that -2,0, -9, -7, -4 this five time zones are poor.City C is located at eastern its corresponding time zone difference set of an area
7,9,0,2,5 this five time zones are poor.It includes: 5,7, -2,0,3 this five that city D, which is located at eastern its corresponding time zone difference set of 3rd area,
Time zone is poor.
Therefore city A is with value positioned at its multiple time zone absolute value of the difference of eastern 8th area | 0 |+| 2 |+| -7 |+| -5 |+| -2 |
=16.Similarly, the corresponding multiple time zone absolute value of the difference of Dong Shiqu is the exhausted of the corresponding multiple time zones differences of 22, Dong Yiqu with value
What it is to value is 23 with value.The corresponding multiple time zone absolute value of the difference in 3rd area of east are 17 with value.The corresponding multiple time zones in 6th area of east
Absolute value of the difference is 14 with value.
By it is above-mentioned be worth available city E and be located at that eastern 6th area are corresponding and value is minimum.Therefore city E is target time zone.
In some embodiments, each time zone corresponding time, institute are shown by benchmark time zone of the target time zone
Display module 240 is stated, following steps are executed:
Each time zone corresponding time is calculated by benchmark time zone of the target time zone.
Show each time zone corresponding time.
In some embodiments, electronic equipment is corresponding as the benchmark time zone each time zone of calculating using the target time zone
Time.And show each time zone corresponding time.For example, 8th area target time zone Wei Dong, then electronic equipment can
To get the difference between each time zone and eastern 8th area.According between eastern 8th area current time and each difference and
Value, to show each time zone corresponding time.
In some embodiments, each time zone corresponding time, institute are calculated by benchmark time zone of the target time zone
Display module 240 is stated, following steps are executed:
Obtain the time difference in each time zone Yu the target time zone.
Successively increase each time zone corresponding time difference on the time in the target time zone, it is each described to obtain
The time in time zone.
Electronic equipment obtains the time difference in each time zone Yu target time zone.Then the current time in target time zone is obtained.Electricity
Sub- equipment successively increases each time zone corresponding time difference on the time in target time zone, to obtain each time zone
Time.
For example, city E is target time zone.Obtaining the city E current time is 8 a.m..Obtain each time zone and target
The time difference in time zone.Wherein the time difference is using city E as benchmark time zone.The time difference in each time zone and city E.If city A institute
The time zone the being located at corresponding time difference is 2.Between the time difference and the city E current time and value is so calculated,
Described is the time zone that city A is located at corresponding time with value.Electronic equipment shows the time.
When it is implemented, the above modules can be used as independent entity to realize, any combination can also be carried out, is made
It is realized for same or several entities.
From the foregoing, it will be observed that time display apparatus provided by the embodiments of the present application, the time display apparatus includes: the first acquisition
Module 210, second obtains module 220, determining module 230 and display module 240.First obtains module 210, when for obtaining
Area's set, wherein time zone set includes multiple time zones;Second obtains module 220, for according to each time zone and ginseng
It examines time zone and obtains the corresponding time zone difference set in each time zone, the time zone difference set includes that multiple time zones are poor, each described
Time zone difference includes the time zone and the difference with reference to time zone;Determining module 230, for poor according to each time zone
The sum of the multiple time zone absolute value of the difference in set determines target time zone;Display module 240, for the target time zone
Each time zone corresponding time is shown for benchmark time zone.In the time display apparatus, determining module 230 passes through each
The sum of multiple time zone absolute value of the difference in the difference set of time zone determine target time zone.Then display module 240 is with target time zone
Benchmark time zone shows the time in each time zone, to reduce the repetitive rate that electronic equipment calculates each time zone, improves aobvious
Show the efficiency in each time zone.
The embodiment of the present application also provides a kind of electronic equipment.The electronic equipment can be smart phone, tablet computer etc.
Equipment.As shown in figure 8, electronic equipment 300 includes processor 301 and memory 302.Wherein, processor 301 and memory 302
It is electrically connected.
Processor 301 is the control centre of electronic equipment 300, utilizes various interfaces and the entire electronic equipment of connection
Various pieces, by running or calling the computer program being stored in memory 302, and calling to be stored in memory 302
Interior data execute the various functions and processing data of electronic equipment, to carry out integral monitoring to electronic equipment.
In the present embodiment, processor 301 in electronic equipment 300 can according to following step, by one or one with
On the corresponding instruction of process of computer program be loaded into memory 302, and run by processor 301 and be stored in storage
Computer program in device 302, to realize various functions:
Time zone set is obtained, wherein time zone set includes multiple time zones;
The corresponding time zone difference set in each time zone is obtained with reference to time zone according to each time zone, the time zone is poor
Set includes that multiple time zones are poor, and each time zone difference includes the time zone and the difference with reference to time zone;
Target time zone is determined according to the sum of the multiple time zone absolute value of the difference in each time zone difference set;
Each time zone corresponding time is shown by benchmark time zone of the target time zone.
In some embodiments, it is described according to each time zone with reference to time zone obtain each time zone it is corresponding when
Area's difference set, processor 301 execute following steps:
Successively using each time zone as with reference to time zone;
Other time zones and the difference with reference between time zone are calculated, successively to obtain the corresponding time zone in each time zone
Difference set.
In some embodiments, mesh is determined according to the sum of the time zone absolute value of the difference in each time zone difference set
Time zone is marked, processor 301 executes following steps:
Calculate the multiple time zone absolute value of the difference in each time zone difference set and value;
The described and the smallest time zone of value is determined as target time zone.
In some embodiments, each time zone corresponding time is shown by benchmark time zone of the target time zone, locate
It manages device 301 and executes following steps:
Each time zone corresponding time is calculated by benchmark time zone of the target time zone;
Show each time zone corresponding time.
In some embodiments, each time zone corresponding time, place are calculated by benchmark time zone of the target time zone
It manages device 301 and executes following steps:
Obtain the time difference in each time zone Yu the target time zone;
Successively increase each time zone corresponding time difference on the time in the target time zone, it is each described to obtain
The time in time zone.
Memory 302 can be used for storing computer program and data.Include in the computer program that memory 302 stores
The instruction that can be executed in the processor.Computer program can form various functional modules.Processor 301 is stored in by calling
The computer program of memory 302, thereby executing various function application and data processing.
From the foregoing, it will be observed that the embodiment of the present application provides a kind of electronic equipment, the electronic equipment executes following steps:
Time zone set is obtained, wherein time zone set includes multiple time zones;
The corresponding time zone difference set in each time zone is obtained with reference to time zone according to each time zone, the time zone is poor
Set includes that multiple time zones are poor, and each time zone difference includes the time zone and the difference with reference to time zone;
Target time zone is determined according to the sum of the multiple time zone absolute value of the difference in each time zone difference set;
Each time zone corresponding time is shown by benchmark time zone of the target time zone.
The embodiment of the present application also provides a kind of storage medium, computer program is stored in the storage medium, when described
When computer program is run on computers, the computer executes time display method described in any of the above-described embodiment.
It should be noted that those of ordinary skill in the art will appreciate that whole in the various methods of above-described embodiment or
Part steps are relevant hardware can be instructed to complete by computer program, and the computer program can store in meter
In calculation machine readable storage medium storing program for executing, the storage medium be can include but is not limited to: read-only memory (ROM, Read Only
Memory), random access memory (RAM, Random Access Memory), disk or CD etc..
Time display method, device provided by the embodiment of the present application, storage medium and electronic equipment are carried out above
It is discussed in detail.Specific examples are used herein to illustrate the principle and implementation manner of the present application, above embodiments
Illustrate to be merely used to help understand the present processes and its core concept;Meanwhile for those skilled in the art, according to this
The thought of application, there will be changes in the specific implementation manner and application range, in conclusion the content of the present specification is not answered
It is interpreted as the limitation to the application.
Claims (11)
1. a kind of time display method characterized by comprising
Time zone set is obtained, wherein time zone set includes multiple time zones;
The corresponding time zone difference set in each time zone, the time zone difference set are obtained with reference to time zone according to each time zone
Poor including multiple time zones, each time zone difference includes the time zone and the difference with reference to time zone;
Target time zone is determined according to the sum of the multiple time zone absolute value of the difference in each time zone difference set;
Each time zone corresponding time is shown by benchmark time zone of the target time zone.
2. time display method according to claim 1, which is characterized in that it is described according to each time zone and reference when
Area obtains the step of corresponding time zone difference set in each time zone and includes:
Successively using each time zone as with reference to time zone;
Other time zones and the difference with reference between time zone are calculated, successively to obtain the corresponding time zone difference set in each time zone
It closes.
3. time display method according to claim 2, which is characterized in that described successively using each time zone as ginseng
The step of examining time zone include:
According to each time zone when corresponding the longitude of zone centerline multiple time zones are arranged;
According to the rank results successively using each time zone as with reference to time zone.
4. time display method according to claim 1, which is characterized in that described according in each time zone difference set
The sum of time zone absolute value of the difference the step of determining target time zone include:
Calculate the multiple time zone absolute value of the difference in each time zone difference set and value;
The described and the smallest time zone of value is determined as target time zone.
5. time display method according to any one of claims 1 to 4, which is characterized in that described with the target time zone
The step of showing each time zone corresponding time for benchmark time zone include:
Each time zone corresponding time is calculated by benchmark time zone of the target time zone;
Show each time zone corresponding time.
6. time display method according to claim 5, which is characterized in that described using the target time zone as benchmark time zone
The step of calculating each time zone corresponding time include:
Obtain the time difference in each time zone Yu the target time zone;
Increase each time zone corresponding time difference, on the time in the target time zone successively to obtain each time zone
Time.
7. a kind of time display apparatus characterized by comprising
First obtains module, for obtaining time zone set, wherein time zone set includes multiple time zones;
Second obtains module, for according to each time zone with reference to the corresponding time zone difference set in the time zone each time zone of acquisition
It closes, the time zone difference set includes that multiple time zones are poor, and each time zone difference refers to time zone with described including a time zone
Difference;
Determining module, for determining target according to the sum of the multiple time zone absolute value of the difference in each time zone difference set
Time zone;
Display module, for showing each time zone corresponding time by benchmark time zone of the target time zone.
8. time display apparatus according to claim 7, which is characterized in that it is described according to each time zone and reference when
Area obtains the step of corresponding time zone difference set in each time zone and includes:
Successively using each time zone as with reference to time zone;
Other time zones and the difference with reference between time zone are calculated, successively to obtain the corresponding time zone difference set in each time zone
It closes.
9. time display apparatus according to claim 8, which is characterized in that described successively using each time zone as ginseng
The step of examining time zone include:
According to each time zone when corresponding the longitude of zone centerline multiple time zones are arranged;
According to the rank results successively using each time zone as with reference to time zone.
10. a kind of storage medium, which is characterized in that computer program is stored in the storage medium, when the computer journey
When sequence is run on computers, so that the computer perform claim requires 1 to 6 described in any item time display methods.
11. a kind of electronic equipment, which is characterized in that the electronic equipment includes processor and memory, is deposited in the memory
Computer program is contained, the processor is used for right of execution by calling the computer program stored in the memory
Benefit requires 1 to 6 described in any item time display methods.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910282902.1A CN110012171B (en) | 2019-04-10 | 2019-04-10 | Time display method and device, storage medium and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910282902.1A CN110012171B (en) | 2019-04-10 | 2019-04-10 | Time display method and device, storage medium and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110012171A true CN110012171A (en) | 2019-07-12 |
CN110012171B CN110012171B (en) | 2021-05-07 |
Family
ID=67170596
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910282902.1A Active CN110012171B (en) | 2019-04-10 | 2019-04-10 | Time display method and device, storage medium and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110012171B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110971588A (en) * | 2019-10-18 | 2020-04-07 | 浙江华创视讯科技有限公司 | Time processing method, device and system for cross-time-zone conference system and computer equipment |
Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2001090826A2 (en) * | 2000-05-26 | 2001-11-29 | Matsushita Electric Industrial Co., Ltd. | Portable terminal apparatus having automatic adjustment function for time difference |
US20060031589A1 (en) * | 2004-03-09 | 2006-02-09 | Hon Hai Precision Industry Co., Ltd. | System and method for automatically adjusting computer system times via a COM port |
CN101060680A (en) * | 2007-06-11 | 2007-10-24 | 中兴通讯股份有限公司 | A method and device for querying the world times on the mobile communication terminal |
CN101287004A (en) * | 2008-05-29 | 2008-10-15 | 宇龙计算机通信科技(深圳)有限公司 | Mobile terminal, method and system for updating system time thereof |
CN101409737A (en) * | 2008-11-21 | 2009-04-15 | 闻泰集团有限公司 | Method for displaying city-selected world clock on mobile terminal |
CN102075881A (en) * | 2011-01-19 | 2011-05-25 | 中兴通讯股份有限公司 | Method and system for realizing automatic and simultaneous display of times in registration place and roaming place |
CN103428844A (en) * | 2012-05-17 | 2013-12-04 | 上海闻泰电子科技有限公司 | Method for achieving mobile phone time synchronization of mobile phone terminal |
US8774769B2 (en) * | 2010-09-03 | 2014-07-08 | T-Mobile Usa, Inc. | Updating timestamps of short messages |
CN105979480A (en) * | 2016-04-14 | 2016-09-28 | 北京小米移动软件有限公司 | Method and device for updating time of mobile equipment |
CN106557151A (en) * | 2016-11-14 | 2017-04-05 | 珠海市魅族科技有限公司 | Electronic equipment and time display method |
CN108650170A (en) * | 2018-05-14 | 2018-10-12 | 阿里巴巴集团控股有限公司 | A kind of display methods and device of information |
-
2019
- 2019-04-10 CN CN201910282902.1A patent/CN110012171B/en active Active
Patent Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2001090826A2 (en) * | 2000-05-26 | 2001-11-29 | Matsushita Electric Industrial Co., Ltd. | Portable terminal apparatus having automatic adjustment function for time difference |
US20060031589A1 (en) * | 2004-03-09 | 2006-02-09 | Hon Hai Precision Industry Co., Ltd. | System and method for automatically adjusting computer system times via a COM port |
CN101060680A (en) * | 2007-06-11 | 2007-10-24 | 中兴通讯股份有限公司 | A method and device for querying the world times on the mobile communication terminal |
CN101287004A (en) * | 2008-05-29 | 2008-10-15 | 宇龙计算机通信科技(深圳)有限公司 | Mobile terminal, method and system for updating system time thereof |
CN101409737A (en) * | 2008-11-21 | 2009-04-15 | 闻泰集团有限公司 | Method for displaying city-selected world clock on mobile terminal |
US8774769B2 (en) * | 2010-09-03 | 2014-07-08 | T-Mobile Usa, Inc. | Updating timestamps of short messages |
CN102075881A (en) * | 2011-01-19 | 2011-05-25 | 中兴通讯股份有限公司 | Method and system for realizing automatic and simultaneous display of times in registration place and roaming place |
CN103428844A (en) * | 2012-05-17 | 2013-12-04 | 上海闻泰电子科技有限公司 | Method for achieving mobile phone time synchronization of mobile phone terminal |
CN105979480A (en) * | 2016-04-14 | 2016-09-28 | 北京小米移动软件有限公司 | Method and device for updating time of mobile equipment |
CN106557151A (en) * | 2016-11-14 | 2017-04-05 | 珠海市魅族科技有限公司 | Electronic equipment and time display method |
CN108650170A (en) * | 2018-05-14 | 2018-10-12 | 阿里巴巴集团控股有限公司 | A kind of display methods and device of information |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110971588A (en) * | 2019-10-18 | 2020-04-07 | 浙江华创视讯科技有限公司 | Time processing method, device and system for cross-time-zone conference system and computer equipment |
Also Published As
Publication number | Publication date |
---|---|
CN110012171B (en) | 2021-05-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP4077858B1 (en) | Map display device and program | |
CN105224201A (en) | A kind of method of interface display and terminal | |
CN105045603A (en) | Method and device for constructing finite-state machine model framework and electronic device | |
CN111522967A (en) | Knowledge graph construction method, device, equipment and storage medium | |
CN109086126B (en) | Task scheduling processing method and device, server, client and electronic equipment | |
CN111767691B (en) | Computing method, computing device, computing equipment and storage medium | |
CN109509257A (en) | Indoor floor rank components pattern forming method, terminal and storage medium | |
CN110263824A (en) | The training method of model, calculates equipment and computer readable storage medium at device | |
CN109190119B (en) | Time extraction method and device, storage medium and electronic device | |
CN110766089A (en) | Model structure sampling method and device of hyper network and electronic equipment | |
CN111966925A (en) | Building interest point weight judging method and device, electronic equipment and storage medium | |
CN110012171A (en) | Time display method, device, storage medium and electronic equipment | |
CN114676029A (en) | Software access capability evaluation method, device, system and medium | |
CN114758034A (en) | Map generation method and device, computer-readable storage medium and electronic device | |
CN111966767B (en) | Track thermodynamic diagram generation method, device, electronic equipment and storage medium | |
CN111694914A (en) | User resident area determining method and device | |
CN111309835A (en) | Processing method, system and equipment for spatial data visualization | |
CN108133234B (en) | Sparse subset selection algorithm-based community detection method, device and equipment | |
CN113012682B (en) | False wake-up rate determination method, device, apparatus, storage medium, and program product | |
CN108062313A (en) | For retaining the method for customer analysis, electronic equipment and server | |
CN101408839B (en) | Method for implementing menu | |
CN113205092A (en) | Text detection method, device, equipment and storage medium | |
CN112308678A (en) | Price information processing method, device, equipment and medium based on image recognition | |
CN111736450B (en) | Intelligent watch | |
CN117742900B (en) | Method, device, equipment and storage medium for constructing service call graph |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for 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: 20231218 Address after: 361000 room 4101, No. 131, xinjingdongli, Haicang District, Xiamen City, Fujian Province Patentee after: Xiamen Jiupin sesame Information Technology Co.,Ltd. Address before: 516006 Zhongkai hi tech Zone, Huizhou, Guangdong, 86 Chang seven Road West Patentee before: HUIZHOU TCL MOBILE COMMUNICATION Co.,Ltd. |
|
TR01 | Transfer of patent right |