CN101976039B - Method and device for automatically adjusting sunrise and sunset time - Google Patents

Method and device for automatically adjusting sunrise and sunset time Download PDF

Info

Publication number
CN101976039B
CN101976039B CN 201010284863 CN201010284863A CN101976039B CN 101976039 B CN101976039 B CN 101976039B CN 201010284863 CN201010284863 CN 201010284863 CN 201010284863 A CN201010284863 A CN 201010284863A CN 101976039 B CN101976039 B CN 101976039B
Authority
CN
China
Prior art keywords
time
zone
information
time zone
current
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
CN 201010284863
Other languages
Chinese (zh)
Other versions
CN101976039A (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.)
Huawei Device Co Ltd
Original Assignee
Huawei Device 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 Huawei Device Co Ltd filed Critical Huawei Device Co Ltd
Priority to CN 201010284863 priority Critical patent/CN101976039B/en
Publication of CN101976039A publication Critical patent/CN101976039A/en
Application granted granted Critical
Publication of CN101976039B publication Critical patent/CN101976039B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses a method and a device for automatically adjusting sunrise and sunset time. The method comprises the following steps of: acquiring the current longitude and latitude information; acquiring the Greenwich mean time and the current time zone information according to the longitude and latitude information; acquiring the idiomatic time zone information of an administrative district in which the current time zone is positioned from a network side; and acquiring the sunrise and sunset time of the idiomatic time zone of the administrative district in which the current time zone is positioned by using the sunrise and sunset Greenwich mean time, the current time zone information, and the idiomatic time zone information of the administrative district in which the current time zone is positioned. The idiomatic time zone information of the administrative district in which the current time zone is positioned is acquired from the network side and the sunrise and sunset time of the administrative district in which the current time zone is positioned is acquired according to an administrative district division signal, so that a terminal can automatically adjust the sunrise and sunset time displayed according to longitude and latitude to the time in accordance with the local habits.

Description

Automatically adjust the method and the device of sun set/raise time
Technical field
The embodiment of the invention relates to the time showing technology, relates in particular to a kind of method and device of automatic adjustment sun set/raise time.
Background technology
Along with developing rapidly of the communication technology, at present, hand-held set can calculate the sun set/raise time on the same day according to longitude and latitude like location/navigator etc.
For different time zones; Hand-held set calculates the GMT and the geographical time-zone information of sunrise sunset according to longitude and latitude; And then, calculate the sun set/raise time on the same day in current time zone, and show according to GMT that goes out sunrise sunset and geographical time-zone information.
The defective that prior art exists is: when the area of certain country was crossed over a plurality of time zone, what hand-held set provided was the sun set/raise time on the same day in the geographical time zone at place, rather than met the sun set/raise time on the same day in the habitual time zone of this state or this area.
Summary of the invention
The embodiment of the invention provides a kind of method and device of automatic adjustment sun set/raise time, in order to solve the problem that the sun set/raise time that calculates in the prior art can not satisfy local habitual custom.
The embodiment of the invention provides a kind of method of automatic adjustment sun set/raise time, comprising:
Obtain current latitude and longitude information;
Obtain the GMT and the current time-zone information of sunrise sunset according to said latitude and longitude information;
Obtain the habitual time-zone information of administrative division at place, current time zone from network side;
Utilize the habitual time-zone information of administrative division at the GMT of said sunrise sunset, current time-zone information and place, current time zone, obtain the sun set/raise time in the habitual time zone of administrative division at place, current time zone.
The embodiment of the invention provides a kind of device of automatic adjustment sun set/raise time, comprising:
The longitude and latitude acquiring unit is used to obtain current latitude and longitude information;
Computing unit is used for the latitude and longitude information obtained according to said longitude and latitude acquiring unit, obtains the GMT and the current time-zone information of sunrise sunset;
Habitual time zone acquiring unit is used for obtaining the habitual time-zone information of administrative division that current time zone belongs to from network side;
The temporal information acquiring unit; Be used to utilize the GMT and the current time-zone information of the said sunrise sunset that said computing unit obtains; And the habitual time-zone information of administrative division that utilizes the place, current time zone that said habitual time zone acquiring unit obtains, obtain the sun set/raise time in the habitual time zone of administrative division at place, current time zone.
The method and the device of the automatic adjustment sun set/raise time that the embodiment of the invention provides; Through the habitual time-zone information of the administrative division of obtaining current time zone from network side; And the sun set/raise time on the same day that obtains the administrative division at place, current time zone according to the administrative division signal; Make the sun set/raise time on the same day that the terminal shows according to longitude and latitude; The time zone of using with the country of locality is consistent automatically, has realized that under the situation that the time zone changes be that the user is moving under the situation in another time zone from a time zone, used terminal can be automatically with the same day sun set/raise time adjust to and meet the local time of being accustomed to.
Description of drawings
The process flow diagram of the method for the automatic adjustment sun set/raise time that Fig. 1 provides for the embodiment of the invention;
The structural representation of the device of the automatic adjustment sun set/raise time that Fig. 2 provides for the embodiment of the invention.
Embodiment
For the purpose, technical scheme and the advantage that make the embodiment of the invention clearer; To combine the accompanying drawing in the embodiment of the invention below; Technical scheme in the embodiment of the invention is carried out clear, intactly description; Obviously, described embodiment is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills are not making the every other embodiment that is obtained under the creative work prerequisite, all belong to the scope of the present invention's protection.
The process flow diagram of the method for the automatic adjustment sun set/raise time that Fig. 1 provides for the embodiment of the invention.As shown in Figure 1, this method comprises:
Step 1, obtain current latitude and longitude information.
Particularly; Can pass through GPS (Global Positioning System; GPS), positioning systems such as GLONASS, Galileo, the Big Dipper; (Wireless Fidelity WIFI) obtains current latitude and longitude information in real time or regularly, and current latitude and longitude information is obtained in the instruction of the demonstration sun set/raise time that also can send according to the user maybe can to pass through base station, Wireless Fidelity.When current latitude and longitude information is obtained in the instruction of the demonstration sun set/raise time that sends according to the user, also can comprise before the step 1 receiving the instruction that shows sun set/raise time.
Step 2, obtain the GMT and the current time-zone information of sunrise sunset according to said latitude and longitude information.This step prior art capable of using calculates the GMT and the current time-zone information of sunrise sunset.
Step 3, obtain the habitual time-zone information of administrative division at place, current time zone from network side.
As passing through current time zone CDMA (Code Division Multiple Access; CDMA), WCDMA (Wideband Code Division Multiple Access, WCDMA) or network such as TD obtain the habitual time-zone information of administrative division at place, current time zone.
The habitual time-zone information of administrative division at step 4, the GMT of utilizing said sunrise sunset, current time-zone information and place, current time zone, the sun set/raise time in time zone is habitually practised in the administrative division that obtains place, current time zone.Supposing that the active user is positioned at the 6th time zone, Urumchi, is that Chinese habitual time zone is the i.e. sun set/raise time in the current time zone of time showing in the 8th time zone in Beijing with the i.e. administrative division in the 6th time zone in current time zone then.
Above-mentioned steps can be carried out by mobile communication terminal such as mobile phone or the positioning navigation device with communication function, and above-mentioned steps 3 can be carried out with step 2 simultaneously.
In the present embodiment; Through the habitual time-zone information of the administrative division of obtaining current time zone from network side; And the sun set/raise time on the same day that obtains the administrative division at place, current time zone according to the administrative division signal; Make the sun set/raise time on the same day that the terminal shows according to longitude and latitude; Automatically be consistent with local belonging country or area habitual time zone time, realized that under the situation that the time zone changes be that the user is moving under the situation in another time zone from a time zone, used terminal can be automatically with the same day sun set/raise time adjust to and meet the local time of being accustomed to.
One of ordinary skill in the art will appreciate that: all or part of step that realizes said method embodiment can be accomplished through the relevant hardware of programmed instruction; Aforesaid program can be stored in the computer read/write memory medium; This program the step that comprises said method embodiment when carrying out; And aforesaid storage medium comprises: various media that can be program code stored such as ROM, RAM, magnetic disc or CD.
The structural representation of the device of the automatic adjustment sun set/raise time that Fig. 2 provides for the embodiment of the invention.As shown in Figure 2, comprising: longitude and latitude acquiring unit 21, computing unit 22, habitual time zone acquiring unit 23 and time information acquisition unit 24.
Longitude and latitude acquiring unit 21 passes through positioning systems such as GPS, GLONASS, Galileo, the Big Dipper, or obtains current latitude and longitude information in real time or regularly through base station, WIFI.Perhaps; The device of the automatic adjustment sun set/raise time that the embodiment of the invention provides can further comprise receiving element 25; Be used to receive the instruction of the demonstration sun set/raise time that the user sends; The instruction that longitude and latitude acquiring unit 21 receives according to receiving element 25 is obtained current latitude and longitude information through above-mentioned positioning system, base station or WIFI etc.
Computing unit 22 is used for obtaining according to longitude and latitude acquiring unit 21 GMT and the current time-zone information of sunrise sunset on the same day.Habitual time zone acquiring unit 23 is used for obtaining from network side the habitual time-zone information of administrative division at place, current time zone, obtains the habitual time-zone information of administrative division at place, current time zone like CDMA, WCDMA or TD network through current time zone.Temporal information acquiring unit 24 is used to utilize the GMT and the current time-zone information of the sunrise sunset that computing unit 22 obtains; And the habitual time-zone information of administrative division that utilizes the place, current time zone that habitual time zone acquiring unit 23 obtains, obtain to meet the sun set/raise time on the same day that the local time shows custom.
The device of the automatic adjustment sun set/raise time that the embodiment of the invention provides also can comprise display unit 26, is used to show that temporal information acquiring unit 24 obtains as meeting the sun set/raise time on the same day that the local time shows custom.Avoid being provided with in addition display device and come the demonstration time.
The device of the automatic adjustment sun set/raise time that the foregoing description provides can be mobile communication terminals such as mobile phone, also can be the positioning navigation device with communication function.
Transferring to Urumchi from the location in other time zones with a user is example; Suppose that this user carries the device of the automatic adjustment sun set/raise time that the foregoing description provides; Then longitude and latitude acquiring unit 21 in real time, regularly or according to user's instruction obtain the longitude and latitude that the locality is Urumchi: 43 ° of 54 ' 26.00 " 87 ° 28 ' 27.00 of N " E, computing unit 22 obtain the sun set/raise time in geographical time zone, Urumchi one day (+6): 05:40|18:33 according to this latitude and longitude information.Habitual time zone acquiring unit 23 obtains local administrative division from network side and belongs to China, and its habitual time zone is the 8th time zone.Temporal information acquiring unit 24 is according to the sun set/raise time of habitual the 8th time zone, time zone and geographical time zone (+6): 05:40|18:33; Sun set/raise time is adjusted into 07:40|20:33; Thereby realized the time showing of automatic adjustment sun set/raise time; Having solved in the prior art hand-held set can only be through manually being provided with the time zone or relying on geographical time zone fully, and the sun set/raise time of acquisition shows the problem that may mislead the user.
What should explain at last is: above embodiment is only in order to explaining technical scheme of the present invention, but not to its restriction; Although with reference to previous embodiment the present invention has been carried out detailed explanation, those of ordinary skill in the art is to be understood that: it still can be made amendment to the technical scheme that aforementioned each embodiment put down in writing, and perhaps part technical characterictic wherein is equal to replacement; And these are revised or replacement, do not make the spirit and the scope of the essence disengaging various embodiments of the present invention technical scheme of relevant art scheme.

Claims (10)

1. a method of adjusting sun set/raise time automatically is characterized in that, comprising:
Obtain current latitude and longitude information;
Obtain the GMT and the current time-zone information of sunrise sunset according to said latitude and longitude information;
Obtain the habitual time-zone information of administrative division at place, current time zone from network side;
Utilize the habitual time-zone information of administrative division at the GMT of said sunrise sunset, current time-zone information and place, current time zone, obtain the sun set/raise time in the habitual time zone of administrative division at place, current time zone.
2. the method for automatic adjustment sun set/raise time according to claim 1 is characterized in that, obtains current latitude and longitude information and comprises:
Obtain current latitude and longitude information in real time or regularly through positioning system, base station or WIFI.
3. the method for automatic adjustment sun set/raise time according to claim 1 is characterized in that, obtains current latitude and longitude information and comprises before:
Receive the instruction that shows sun set/raise time.
4. according to the method for each described automatic adjustment sun set/raise time of claim 1-3, it is characterized in that the habitual time-zone information of administrative division that obtains place, current time zone from network side comprises:
Obtain the habitual time-zone information of administrative division at place, current time zone through CDMA, WCDMA or the TD network in current time zone.
5. according to the method for each described automatic adjustment sun set/raise time of claim 1-3, it is characterized in that, also comprise: the sun set/raise time that shows the habitual time zone of administrative division at the place, current time zone that obtains.
6. a device of adjusting sun set/raise time automatically is characterized in that, comprising:
The longitude and latitude acquiring unit is used to obtain current latitude and longitude information;
Computing unit is used for the latitude and longitude information obtained according to said longitude and latitude acquiring unit, obtains the GMT and the current time-zone information of sunrise sunset;
Habitual time zone acquiring unit is used for obtaining the habitual time-zone information of administrative division that current time zone belongs to from network side;
The temporal information acquiring unit; Be used to utilize the GMT and the current time-zone information of the said sunrise sunset that said computing unit obtains; And the habitual time-zone information of administrative division that utilizes the place, current time zone that said habitual time zone acquiring unit obtains, obtain the sun set/raise time in the habitual time zone of administrative division at place, current time zone.
7. the device of automatic adjustment sun set/raise time according to claim 6 is characterized in that, said longitude and latitude acquiring unit specifically is used for obtaining current latitude and longitude information in real time or regularly through positioning system, base station or WIFI.
8. the device of automatic adjustment sun set/raise time according to claim 6 is characterized in that, also comprises:
Receiving element was used for before said longitude and latitude acquiring unit obtains current latitude and longitude information, received the instruction that shows sun set/raise time.
9. according to the device of each described automatic adjustment sun set/raise time of claim 6-8; It is characterized in that CDMA, WCDMA or TD network that said habitual time zone acquiring unit specifically is used for through current time zone obtain the habitual time-zone information of administrative division at place, current time zone.
10. according to the device of each described automatic adjustment sun set/raise time of claim 6-8; It is characterized in that; Also comprise display unit, be used to show the sun set/raise time in the habitual time zone of administrative division at the place, current time zone that said temporal information acquiring unit obtains.
CN 201010284863 2010-09-16 2010-09-16 Method and device for automatically adjusting sunrise and sunset time Active CN101976039B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201010284863 CN101976039B (en) 2010-09-16 2010-09-16 Method and device for automatically adjusting sunrise and sunset time

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201010284863 CN101976039B (en) 2010-09-16 2010-09-16 Method and device for automatically adjusting sunrise and sunset time

Publications (2)

Publication Number Publication Date
CN101976039A CN101976039A (en) 2011-02-16
CN101976039B true CN101976039B (en) 2012-05-23

Family

ID=43575930

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201010284863 Active CN101976039B (en) 2010-09-16 2010-09-16 Method and device for automatically adjusting sunrise and sunset time

Country Status (1)

Country Link
CN (1) CN101976039B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103347247A (en) * 2013-06-07 2013-10-09 深圳市领华卫通数码科技有限公司 Method and device for regulating screen brightness of intelligent electronic device
CN110687770A (en) * 2019-10-25 2020-01-14 天王电子(深圳)有限公司 Watch-based control method and control system for automatically switching time zones
CN114488226A (en) * 2022-01-15 2022-05-13 重庆长安汽车股份有限公司 Method and system for automatically switching time zone and time of vehicle-mounted unit based on GNSS positioning

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000292571A (en) * 1999-04-06 2000-10-20 Matsushita Electric Ind Co Ltd Time zone-outputting device and time zone-outputting method
CN1383348A (en) * 2001-04-24 2002-12-04 松下电工株式会社 Programmable timer unit for remote controlled load management system
CN201286183Y (en) * 2008-11-10 2009-08-05 天津三星电子有限公司 Intelligent road lamp control apparatus
CN101827468A (en) * 2009-03-02 2010-09-08 扬州市兴泰钢杆照明器材有限公司 Street lamp remote control system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08211167A (en) * 1995-02-02 1996-08-20 Seiko Epson Corp Timepiece

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000292571A (en) * 1999-04-06 2000-10-20 Matsushita Electric Ind Co Ltd Time zone-outputting device and time zone-outputting method
CN1383348A (en) * 2001-04-24 2002-12-04 松下电工株式会社 Programmable timer unit for remote controlled load management system
CN201286183Y (en) * 2008-11-10 2009-08-05 天津三星电子有限公司 Intelligent road lamp control apparatus
CN101827468A (en) * 2009-03-02 2010-09-08 扬州市兴泰钢杆照明器材有限公司 Street lamp remote control system

Also Published As

Publication number Publication date
CN101976039A (en) 2011-02-16

Similar Documents

Publication Publication Date Title
US9830817B2 (en) Bus station optimization evaluation method and system
CN103210321B (en) Terminal equipment positioning method and apparatus
WO2016000628A1 (en) Mobile communication devices and context-based geofence control methods thereof
ATE468544T1 (en) SYSTEM AND METHOD FOR INTEGRATING A WIRELESS COMPUTER NETWORK INTO POSITION DETERMINATION TECHNOLOGY
CN101795432A (en) Mobile terminal time zone time obtaining method and device
CN101720055A (en) Method and mobile terminal for prompting geographical position of contact person
CN111522045B (en) GPS module cold start method and device of terminal, terminal and storage medium
CN101198127A (en) Method for automatic selecting main card by double-card double-standby mobile terminal equipment
CN204616105U (en) A kind of fixed area intelligent positioning system
CN104615673A (en) Client-side interface display method and device
CN101867867A (en) System time automatic updating system and method
CN103699643A (en) Transaction recording implementation method and device in mobile terminal
CN101976039B (en) Method and device for automatically adjusting sunrise and sunset time
CN101901258A (en) Method and device for displaying geographic information in web page through map
CN102413422A (en) Method for acquiring picture of geographical position and mobile terminal
CN102752714A (en) Method and device for setting bell
CN101772162B (en) Localization method and mobile terminal
CN102202095A (en) Terminal contact person sequencing method, device and terminal
CN101600154A (en) Adopt GPS to add the mobile phone of location, base station
CN104754129B (en) The determination method and device of photographed scene
CN111599298A (en) Color temperature adjusting method, wearable device and storage medium
CN107450089B (en) Position determination method and electronic equipment
CN111836267B (en) Communication network deployment method and device based on 5G
CN103076738A (en) Automatic world clock replacing method and automatic world clock replacing system based on mobile terminal device
KR20150008409A (en) Method and device for receiving broadcasted radio signal of television

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20171030

Address after: Metro Songshan Lake high tech Industrial Development Zone, Guangdong Province, Dongguan City Road 523808 No. 2 South Factory (1) project B2 -5 production workshop

Patentee after: HUAWEI terminal (Dongguan) Co., Ltd.

Address before: 518129 Longgang District, Guangdong, Bantian HUAWEI base B District, building 2, building No.

Patentee before: Huawei Device Co., Ltd.

TR01 Transfer of patent right
CP01 Change in the name or title of a patent holder

Address after: 523808 Southern Factory Building (Phase I) Project B2 Production Plant-5, New Town Avenue, Songshan Lake High-tech Industrial Development Zone, Dongguan City, Guangdong Province

Patentee after: Huawei Device Co., Ltd.

Address before: 523808 Southern Factory Building (Phase I) Project B2 Production Plant-5, New Town Avenue, Songshan Lake High-tech Industrial Development Zone, Dongguan City, Guangdong Province

Patentee before: HUAWEI terminal (Dongguan) Co., Ltd.

CP01 Change in the name or title of a patent holder