CN101976039A - 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
CN101976039A
CN101976039A CN 201010284863 CN201010284863A CN101976039A CN 101976039 A CN101976039 A CN 101976039A CN 201010284863 CN201010284863 CN 201010284863 CN 201010284863 A CN201010284863 A CN 201010284863A CN 101976039 A CN101976039 A CN 101976039A
Authority
CN
China
Prior art keywords
time
zone
information
current
time zone
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
Application number
CN 201010284863
Other languages
Chinese (zh)
Other versions
CN101976039B (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 as location/navigator etc.
For different time zones, hand-held set calculates the GMT (Greenwich mean time) 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 (Greenwich mean time) 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 (Greenwich mean time) and the current time-zone information of sunrise sunset according to described 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 (Greenwich mean time) of described 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 described longitude and latitude acquiring unit, obtains the GMT (Greenwich mean time) and the current time-zone information of sunrise sunset;
Habitually practise the time zone acquiring unit, be used for obtaining the habitual time-zone information of administrative division at place, current time zone from network side;
The temporal information acquiring unit, be used to utilize the GMT (Greenwich mean time) and the current time-zone information of the described sunrise sunset that described computing unit obtains, and the habitual time-zone information of the administrative division that utilizes the place, current time zone that described 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, by 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 terminal shows according to longitude and latitude, the time zone of using with the country of locality is consistent automatically, realized that under the situation that the time zone changes be 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, below in conjunction with the accompanying drawing in the embodiment of the invention, technical scheme in the embodiment of the invention is clearly and completely described, 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 belong to the scope of protection of the invention not making the every other embodiment that is obtained under the creative work prerequisite.
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, maybe can pass through base station, Wireless Fidelity (Wireless Fidelity, WIFI) obtain current latitude and longitude information in real time or regularly, also current latitude and longitude information is obtained in the instruction of the demonstration sun set/raise time that can send according to the user.When obtaining current latitude and longitude information, also can comprise before the step 1 receiving the instruction that shows sun set/raise time according to the instruction of user's the demonstration sun set/raise time that sends.
Step 2, obtain the GMT (Greenwich mean time) and the current time-zone information of sunrise sunset according to described latitude and longitude information.This step can utilize prior art to calculate the GMT (Greenwich mean time) 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), Wideband Code Division Multiple Access (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.
Time-zone information is habitually practised in the administrative division at step 4, the GMT (Greenwich mean time) of utilizing described sunrise sunset, current time-zone information and place, current time zone, obtains the sun set/raise time in the habitual time zone of administrative division at 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 simultaneously with step 2.
In the present embodiment, by 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 terminal shows according to longitude and latitude, the time zone time of habitually practising with local belonging country or area is consistent automatically, realized that under the situation that the time zone changes be 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 finished by the relevant hardware of programmed instruction, aforesaid program can be stored in the computer read/write memory medium, this program is carried out 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 by 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 by 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 (Greenwich mean time) 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, habitually practises time-zone information as the administrative division that CDMA, WCDMA or TD network by current time zone obtain place, current time zone.Temporal information acquiring unit 24 is used to utilize the GMT (Greenwich mean time) 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 by 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.
It should be noted that at last: above embodiment only in order to technical scheme of the present invention to be described, is not intended to limit; Although with reference to previous embodiment the present invention is had been described in detail, 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 modifications or replacement do not make the essence of appropriate technical solution break away from the spirit and scope of various embodiments of the present invention technical 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 (Greenwich mean time) and the current time-zone information of sunrise sunset according to described 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 (Greenwich mean time) of described 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 by 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:
The habitual time-zone information of the administrative division that CDMA, WCDMA or TD network by current time zone obtains place, 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 described longitude and latitude acquiring unit, obtains the GMT (Greenwich mean time) and the current time-zone information of sunrise sunset;
Habitually practise the time zone acquiring unit, be used for obtaining the habitual time-zone information of administrative division at place, current time zone from network side;
The temporal information acquiring unit, be used to utilize the GMT (Greenwich mean time) and the current time-zone information of the described sunrise sunset that described computing unit obtains, and the habitual time-zone information of the administrative division that utilizes the place, current time zone that described 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, described longitude and latitude acquiring unit specifically is used for obtaining current latitude and longitude information in real time or regularly by 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 described 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 described habitual time zone acquiring unit specifically is used for the habitual time-zone information of administrative division that CDMA, WCDMA by current time zone or TD network obtain 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, the sun set/raise time in the habitual time zone of the administrative division at the place, current time zone that is used to show that described 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 true CN101976039A (en) 2011-02-16
CN101976039B 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)

Cited By (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 (5)

* 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
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

Patent Citations (5)

* 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
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

Cited By (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

Also Published As

Publication number Publication date
CN101976039B (en) 2012-05-23

Similar Documents

Publication Publication Date Title
CN103210321B (en) Terminal equipment positioning method and apparatus
CN101795432A (en) Mobile terminal time zone time obtaining method and device
US20160335894A1 (en) Bus Station Optimization Evaluation Method and System
US20110285591A1 (en) Correlating contextual data and position data to improve location based services
CN101720055A (en) Method and mobile terminal for prompting geographical position of contact person
IL174366A (en) System and method for integration of wireless computer network in position determining technology
CN103186844B (en) The control method of message processing device and alarm clock calling
EP3107335B1 (en) Network searching method of terminal and terminal
CN103368984A (en) Method and system for information sharing
CN101826220A (en) Attendance record terminal and method for realizing automatic switching of positioning modes
CN111522045B (en) GPS module cold start method and device of terminal, terminal and storage medium
CN101867867A (en) System time automatic updating system and method
CN104615673A (en) Client-side interface display method and device
CN102752714A (en) Method and device for setting bell
CN103391503A (en) Method for determining virtual geographical range
CN111781619B (en) Positioning method, device, equipment and storage medium based on near field communication network
CN101976039B (en) Method and device for automatically adjusting sunrise and sunset time
CN105163279A (en) Information processing method and terminal
CN102202095A (en) Terminal contact person sequencing method, device and terminal
CN101772162B (en) Localization method and mobile terminal
CN101198104B (en) Method and device for issuing tour guide information
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
CN105979080A (en) Application state display device, method and terminal

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