CN109005290A - A kind of alarm clock setting method, terminal and computer readable storage medium - Google Patents

A kind of alarm clock setting method, terminal and computer readable storage medium Download PDF

Info

Publication number
CN109005290A
CN109005290A CN201810847207.0A CN201810847207A CN109005290A CN 109005290 A CN109005290 A CN 109005290A CN 201810847207 A CN201810847207 A CN 201810847207A CN 109005290 A CN109005290 A CN 109005290A
Authority
CN
China
Prior art keywords
date
alarm clock
event
type
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201810847207.0A
Other languages
Chinese (zh)
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.)
Nubia Technology Co Ltd
Original Assignee
Nubia Technology 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 Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201810847207.0A priority Critical patent/CN109005290A/en
Publication of CN109005290A publication Critical patent/CN109005290A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72451User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to schedules, e.g. using calendar applications

Landscapes

  • Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Electric Clocks (AREA)

Abstract

The invention discloses a kind of alarm clock setting methods, terminal and computer readable storage medium, this method includes the event date type for determining next date of terminal current date according to date determining rule is preset, wherein event date type includes event working day or event day off, whether the event date type for judging next date is identical as the default date type on next date, it is such as no, it is configured according to alarm clock of the event date type to next date, solve it is existing under special circumstances, setting not smart enoughization of alarm clock, lead to the problem of causing inconvenience to the user, the invention also discloses a kind of terminal and computer readable storage mediums, by implementing above scheme, without each manual setting alarm clock of user, improve the intelligence of alarm clock setting, it ensure that the experience sense and satisfaction of user.

Description

A kind of alarm clock setting method, terminal and computer readable storage medium
Technical field
The present invention relates to fields of communication technology, can more specifically to a kind of alarm clock setting method, terminal and computer Read storage medium.
Background technique
With the enhancing of people's concept of time, certain events are executed on time by alarm clock calling people and have become one kind very Universal phenomenon, such as: time of the time, sleep got up daily by alarm clock calling people, reading time, take medicine when Between etc..
In the prior art, the control method of alarm clock is more stiff, for convenience such as user, when alarm clock is generally disposably arranged Between for Monday to Friday every day some time point because under normal circumstances, Monday to Friday is normal work Make day, Saturday and Sunday are normal day off.However, working day is not unalterable for Monday to Friday, When encountering other special circumstances, the time on regular working day and day off is possible to will do it exchange.Therefore, user must hand Dynamic change alarm time, and after official holiday, it recalls to original alarm time again again, operates relatively complicated;And such as Fruit user forgets to change alarm time, there will be may the prompting when alarm clock do not remind, and alarm clock when should not make a noise It reminds again, so as to cause causing inconvenience to the user.
Summary of the invention
The technical problem to be solved in the present invention is that under special circumstances, setting not smart enoughization of alarm clock is made to user At inconvenience, for the technical problem, a kind of alarm clock setting method, terminal and computer readable storage medium are provided.
In order to solve the above technical problems, the present invention provides a kind of alarm clock setting method, alarm clock setting method includes:
Determine that rule determines the event date type on next date of terminal current date, event date according to the default date Type includes event working day or event day off;
Whether the event date type for judging next date is identical as the default date type on next date;
If not, being configured according to alarm clock of the event date type to next date.
Optionally, determine that rule determines the event date type packet on next date of terminal current date according to the default date It includes:
Acquisition standard phase festivals or holidays information;
Event date type corresponding to the date information on next date is determined according to standard phase festivals or holidays information.
Optionally, determine that rule determines the event date type packet on next date of terminal current date according to the default date It includes:
Obtain the communication information of the default application of terminal;
When extracting date information from the communication information, the event on next date is determined according to date information Date type.
Optionally, it is configured according to alarm clock of the event date type to next date and includes:
When next date default date type be default day off, event date type be event working day when, will under The alarm clock on one date is adjusted to alarm clock corresponding to default working day.
Optionally, it is configured according to alarm clock of the event date type to next date and includes:
When the default date type on next date is default day off, and event date type is event working day, display Prompt information;
The corresponding alarm clock setting instruction of prompt information is received, the noisy of next date is reset according to alarm clock setting instruction Clock.
Optionally, it is configured according to alarm clock of the event date type to next date and includes:
When next date default date type be default working day, event date type be event day off when, will under The alarm clock on one date is adjusted to alarm clock corresponding to default day off;
Or, cancelling the alarm clock on next date;
Optionally, after being configured according to alarm clock of the event date type to next date, comprising:
When event date type is event working day, the Weather information on next date is obtained;
When weather information includes default weather pattern, the basis of the alarm time corresponding to the alarm clock on next date On, by alarm time preset in advance weather alarm time section.
Optionally, after being configured according to alarm clock of the date type to next date, comprising:
Obtain alarm clock information all in terminal;
Judge in alarm clock information with the presence or absence of the un-activation within a preset period of time of a certain alarm clock;
If so, alarm clock is deleted.
Further, the present invention also provides a kind of terminal, terminal includes processor, memory and communication bus;
Communication bus is for realizing the connection communication between processor and memory;
Processor is for executing one or more program stored in memory, to realize such as above-mentioned alarm clock setting side The step of method.
Further, the present invention also provides a kind of computer readable storage medium, computer-readable recording medium storages There is one or more program, one or more program can be executed by one or more processor, to realize as above-mentioned The step of alarm clock setting method.
Beneficial effect
The present invention provides a kind of alarm clock setting method, terminal and computer readable storage medium, for existing in special feelings Under condition, setting not smart enoughization of alarm clock leads to the problem of causing inconvenience to the user, by true according to date determining rule is preset Determine the event date type on next date of terminal current date, wherein event date type includes that event working day or event are stopped Day is ceased, whether the event date type for judging next date is identical as the default date type on next date, if not, according to event Date type is configured the alarm clock on next date, i.e., alarm clock setting method provided by the invention determines rule by the default date The event date type for then determining next date, by judging whether event date type and default date type are identical, to sentence Whether the date type on next date of breaking changes, and then is set according to the event date type determined in alarm clock It sets, the opposite setting method stiff with existing alarm clock, alarm clock setting method provided by the invention can be according to the thing on next date Part date type is configured the alarm clock on next date, is not necessarily to each manual setting of user, improves the intelligence of alarm clock setting, It ensure that the experience sense and satisfaction of user.
Detailed description of the invention
Present invention will be further explained below with reference to the attached drawings and examples, in attached drawing:
The hardware structural diagram of Fig. 1 each embodiment one optional mobile terminal to realize the present invention.
Fig. 2 is the wireless communication system schematic diagram of mobile terminal as shown in Figure 1;
Fig. 3 is the alarm clock setting method basic flow chart that first embodiment of the invention provides;
Fig. 4 is the schematic diagram for the standard holiday information that first embodiment of the invention provides.
Fig. 5 is the flow chart for the alarm clock setting method that second embodiment of the invention provides;
Fig. 6 is the flow chart for the alarm clock setting method that third embodiment of the invention provides;
Fig. 7 is the structural schematic diagram for the terminal that third embodiment of the invention provides.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
In subsequent description, it is only using the suffix for indicating such as " module ", " component " or " unit " of element Be conducive to explanation of the invention, itself there is no a specific meaning.Therefore, " module ", " component " or " unit " can mix Ground uses.
Terminal can be implemented in a variety of manners.For example, terminal described in the present invention may include such as mobile phone, plate Computer, laptop, palm PC, personal digital assistant (Personal Digital Assistant, PDA), portable Media player (Portable Media Player, PMP), navigation device, wearable device, Intelligent bracelet, pedometer etc. move The fixed terminals such as dynamic terminal, and number TV, desktop computer.
It will be illustrated by taking mobile terminal as an example in subsequent descriptions, it will be appreciated by those skilled in the art that in addition to special Except element for moving purpose, the construction of embodiment according to the present invention can also apply to the terminal of fixed type.
Referring to Fig. 1, a kind of hardware structural diagram of its mobile terminal of each embodiment to realize the present invention, the shifting Dynamic terminal 100 may include: RF (Radio Frequency, radio frequency) unit 101, WiFi module 102, audio output unit 103, A/V (audio/video) input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, the components such as memory 109, processor 110 and power supply 111.It will be understood by those skilled in the art that shown in Fig. 1 Mobile terminal structure does not constitute the restriction to mobile terminal, and mobile terminal may include components more more or fewer than diagram, Perhaps certain components or different component layouts are combined.
It is specifically introduced below with reference to all parts of the Fig. 1 to mobile terminal:
Radio frequency unit 101 can be used for receiving and sending messages or communication process in, signal sends and receivees, specifically, by base station Downlink information receive after, to processor 110 handle;In addition, the data of uplink are sent to base station.In general, radio frequency unit 101 Including but not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier, duplexer etc..In addition, penetrating Frequency unit 101 can also be communicated with network and other equipment by wireless communication.Any communication can be used in above-mentioned wireless communication Standard or agreement, including but not limited to GSM (Global System of Mobile communication, global system for mobile telecommunications System), GPRS (General Packet Radio Service, general packet radio service), CDMA2000 (Code Division Multiple Access 2000, CDMA 2000), WCDMA (Wideband Code Division Multiple Access, wideband code division multiple access), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access, TD SDMA), FDD-LTE (Frequency Division Duplexing-Long Term Evolution, frequency division duplex long term evolution) and TDD-LTE (Time Division Duplexing-Long Term Evolution, time division duplex long term evolution) etc..
WiFi belongs to short range wireless transmission technology, and mobile terminal can help user to receive and dispatch electricity by WiFi module 102 Sub- mail, browsing webpage and access streaming video etc., it provides wireless broadband internet access for user.Although Fig. 1 shows Go out WiFi module 102, but it is understood that, and it is not belonging to must be configured into for mobile terminal, it completely can be according to need It to omit within the scope of not changing the essence of the invention.
Audio output unit 103 can be in call signal reception pattern, call mode, record mould in mobile terminal 100 When under the isotypes such as formula, speech recognition mode, broadcast reception mode, by radio frequency unit 101 or WiFi module 102 it is received or The audio data stored in memory 109 is converted into audio signal and exports to be sound.Moreover, audio output unit 103 Audio output relevant to the specific function that mobile terminal 100 executes can also be provided (for example, call signal receives sound, disappears Breath receives sound etc.).Audio output unit 103 may include loudspeaker, buzzer etc..
A/V input unit 104 is for receiving audio or video signal.A/V input unit 104 may include graphics processor (Graphics Processing Unit, GPU) 1041 and microphone 1042, graphics processor 1041 is in video acquisition mode Or the image data of the static images or video obtained in image capture mode by image capture apparatus (such as camera) carries out Reason.Treated, and picture frame may be displayed on display unit 106.Through graphics processor 1041, treated that picture frame can be deposited Storage is sent in memory 109 (or other storage mediums) or via radio frequency unit 101 or WiFi module 102.Mike Wind 1042 can connect in telephone calling model, logging mode, speech recognition mode etc. operational mode via microphone 1042 Quiet down sound (audio data), and can be audio data by such acoustic processing.Audio that treated (voice) data can To be converted to the format output that can be sent to mobile communication base station via radio frequency unit 101 in the case where telephone calling model. Microphone 1042 can be implemented various types of noises elimination (or inhibition) algorithms and send and receive sound to eliminate (or inhibition) The noise generated during frequency signal or interference.
Mobile terminal 100 further includes at least one sensor 105, such as optical sensor, motion sensor and other biographies Sensor.Specifically, optical sensor includes ambient light sensor and proximity sensor, wherein ambient light sensor can be according to environment The light and shade of light adjusts the brightness of display panel 1061, and proximity sensor can close when mobile terminal 100 is moved in one's ear Display panel 1061 and/or backlight.As a kind of motion sensor, accelerometer sensor can detect in all directions (general For three axis) size of acceleration, it can detect that size and the direction of gravity when static, can be used to identify the application of mobile phone posture (such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, percussion) etc.; The fingerprint sensor that can also configure as mobile phone, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer, The other sensors such as hygrometer, thermometer, infrared sensor, details are not described herein.
Display unit 106 is for showing information input by user or being supplied to the information of user.Display unit 106 can wrap Display panel 1061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode can be used Forms such as (Organic Light-Emitting Diode, OLED) configure display panel 1061.
User input unit 107 can be used for receiving the number or character information of input, and generate the use with mobile terminal Family setting and the related key signals input of function control.Specifically, user input unit 107 may include touch panel 1071 with And other input equipments 1072.Touch panel 1071, also referred to as touch screen collect the touch operation of user on it or nearby (for example user uses any suitable objects or attachment such as finger, stylus on touch panel 1071 or in touch panel 1071 Neighbouring operation), and corresponding attachment device is driven according to preset formula.Touch panel 1071 may include touch detection Two parts of device and touch controller.Wherein, the touch orientation of touch detecting apparatus detection user, and detect touch operation band The signal come, transmits a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and by it It is converted into contact coordinate, then gives processor 110, and order that processor 110 is sent can be received and executed.In addition, can To realize touch panel 1071 using multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves.In addition to touch panel 1071, user input unit 107 can also include other input equipments 1072.Specifically, other input equipments 1072 can wrap It includes but is not limited in physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, operating stick etc. It is one or more, specifically herein without limitation.
Further, touch panel 1071 can cover display panel 1061, when touch panel 1071 detect on it or After neighbouring touch operation, processor 110 is sent to determine the type of touch event, is followed by subsequent processing device 110 according to touch thing The type of part provides corresponding visual output on display panel 1061.Although in Fig. 1, touch panel 1071 and display panel 1061 be the function that outputs and inputs of realizing mobile terminal as two independent components, but in certain embodiments, it can The function that outputs and inputs of mobile terminal is realized so that touch panel 1071 and display panel 1061 is integrated, is not done herein specifically It limits.
Interface unit 108 be used as at least one external device (ED) connect with mobile terminal 100 can by interface.For example, External device (ED) may include wired or wireless headphone port, external power supply (or battery charger) port, wired or nothing Line data port, memory card port, the port for connecting the device with identification module, audio input/output (I/O) end Mouth, video i/o port, ear port etc..Interface unit 108 can be used for receiving the input from external device (ED) (for example, number It is believed that breath, electric power etc.) and the input received is transferred to one or more elements in mobile terminal 100 or can be with For transmitting data between mobile terminal 100 and external device (ED).
Memory 109 can be used for storing software program and various data.Memory 109 can mainly include storing program area The storage data area and, wherein storing program area can (such as the sound of application program needed for storage program area, at least one function Sound playing function, image player function etc.) etc.;Storage data area can store according to mobile phone use created data (such as Audio data, phone directory etc.) etc..In addition, memory 109 may include high-speed random access memory, it can also include non-easy The property lost memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.
Processor 110 is the control centre of mobile terminal, utilizes each of various interfaces and the entire mobile terminal of connection A part by running or execute the software program and/or module that are stored in memory 109, and calls and is stored in storage Data in device 109 execute the various functions and processing data of mobile terminal, to carry out integral monitoring to mobile terminal.Place Managing device 110 may include one or more processing units;Preferably, processor 110 can integrate application processor and modulatedemodulate is mediated Manage device, wherein the main processing operation system of application processor, user interface and application program etc., modem processor is main Processing wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 110.
Mobile terminal 100 can also include the power supply 111 (such as battery) powered to all parts, it is preferred that power supply 111 Can be logically contiguous by power-supply management system and processor 110, to realize management charging by power-supply management system, put The functions such as electricity and power managed.
Although Fig. 1 is not shown, mobile terminal 100 can also be including bluetooth module etc., and details are not described herein.
Embodiment to facilitate the understanding of the present invention, the communications network system that mobile terminal of the invention is based below into Row description.
Referring to Fig. 2, Fig. 2 is a kind of communications network system architecture diagram provided in an embodiment of the present invention, the communication network system System is the LTE system of universal mobile communications technology, which includes UE (User Equipment, the use of successively communication connection Family equipment) (the land Evolved UMTS Terrestrial Radio Access Network, evolved UMTS 201, E-UTRAN Ground wireless access network) 202, EPC (Evolved Packet Core, evolved packet-based core networks) 203 and operator IP operation 204。
Specifically, UE201 can be above-mentioned terminal 100, and details are not described herein again.
E-UTRAN202 includes eNodeB2021 and other eNodeB2022 etc..Wherein, eNodeB2021 can be by returning Journey (backhaul) (such as X2 interface) is connect with other eNodeB2022, and eNodeB2021 is connected to EPC203, ENodeB2021 can provide the access of UE201 to EPC203.
EPC203 may include MME (Mobility Management Entity, mobility management entity) 2031, HSS (Home Subscriber Server, home subscriber server) 2032, other MME2033, SGW (Serving Gate Way, Gateway) 2034, PGW (PDN Gate Way, grouped data network gateway) 2035 and PCRF (Policy and Charging Rules Function, policy and rate functional entity) 2036 etc..Wherein, MME2031 be processing UE201 and The control node of signaling, provides carrying and connection management between EPC203.HSS2032 is all to manage for providing some registers Such as the function of home location register (not shown) etc, and preserves some related service features, data rates etc. and use The dedicated information in family.All customer data can be sent by SGW2034, and PGW2035 can provide the IP of UE 201 Address distribution and other functions, PCRF2036 are strategy and the charging control strategic decision-making of business data flow and IP bearing resource Point, it selects and provides available strategy and charging control decision with charge execution function unit (not shown) for strategy.
IP operation 204 may include internet, Intranet, IMS (IP Multimedia Subsystem, IP multimedia System) or other IP operations etc..
Although above-mentioned be described by taking LTE system as an example, those skilled in the art should know the present invention is not only Suitable for LTE system, be readily applicable to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA with And the following new network system etc., herein without limitation.
Based on above-mentioned mobile terminal hardware configuration and communications network system, each embodiment of the method for the present invention is proposed.
First embodiment
In order to solve it is existing under special circumstances, setting not smart enoughization of alarm clock, cause to cause inconvenience to the user asks Topic, the present embodiment provides a kind of alarm clock setting methods, as shown in figure 3, Fig. 3 is that alarm clock setting method provided in this embodiment is basic Flow chart, the alarm clock setting method include:
S301, determine that rule determines the event date type on next date of terminal current date according to the default date.
In the present embodiment, next date of terminal current date includes at least the next date adjacent with current date, Such as current date is July 25, next date includes at least July 26;It certainly can also include July 27 etc..It is worth note It anticipates, the event date type in the present embodiment is to determine the date type that rule is determined according to the default date, the thing Part date type includes event working day or event day off;Wherein determine that the mode of event date type includes following several:
Mode one: determining the event date type on next date according to calendar, specifically, obtaining phase standard festivals or holidays letter Breath, determines event date type corresponding to the date information on next date according to standard phase festivals or holidays information.Wherein standard knot The standard holiday information that false date information is announced by government, the standard holiday information include legal holiday, legal working day Day etc..As shown in figure 4, if figure is the present embodiment standard holiday information schematic diagram, it is specified that April 28 is working day when International Labour Day, 29/4 month 30 April, May 1 are day off.Such as next date be April 28 when, according to the standard holiday information determine under Event date type corresponding to one date is event working day;Certainly when next date is April 27, due to standard knot vacation Whether day information was legal workday or legal holiday there is no clear April 27, due to being Friday on April 27,4 The moon 27 was event working day;I.e. in the present embodiment, in standard holiday information in addition to legal holiday, legal workday Other dates, according to the corresponding number of weeks of date information determine it corresponding to event date type, it is to be understood that it is general In the case of, Monday to Friday is event working day, and Saturday and Sunday are event day off;Certainly in some embodiments In, situation setting can also be actually used according to user, if event working day is Monday to Saturday, event day off is star Phase day.
Mode two: determining the event date type on next date according to user and other people Content of Communication, specifically, obtaining The communication information of the default application of terminal, it is true according to date information when extracting date information from the communication information Fix the event date type on a date.The wherein default application of terminal includes but is not limited to communication class application, as short message, wechat, Mail etc. can also be that the communication for obtaining user and default contact person in the default application of terminal is believed certainly in some embodiments Breath, which includes colleague, leader etc.;It is understood that the communication information may include date information, It may not include date information, which may include the action on next date, and such as " tomorrow please arrive public affairs Department's meeting " is also possible to directly then according to the date for the time reckoning tomorrow for receiving the communication information including next date Event date type, such as " July 28 please normally went to work ";When extracting date information from the communication information, certainly The date information should be any one date after terminal current date, and then can be true according to the date information Determine July 26, July 28 was event working day.When from the communication information not including date information, then according to Monday to star Phase five is working day, and Saturday and Sunday are the event date type for being determined next date on day off.
Certainly in some embodiments, the event date type on next date, example can also be determined according to the instruction of user When such as user, remarks July 28 is working day in " memorandum " or " calendar ", terminal receives the remark information of user setting, Determine that July 28 was event working day.
Whether S302, the event date type for judging next date are identical as the default date type on next date, if so, Terminate, if not, turning S303.
It should be understood that the default date type on next date in the present embodiment includes that default working day and default are stopped Day is ceased, wherein default working day is Monday to Friday of unified setting;Default day off be unified Saturday being arranged extremely Sunday;Certainly in some embodiments, default working day is also possible to what user was arranged according to itself working condition, defaults work Making day is Monday to Saturday, and default day off is Sunday.
In the present embodiment, the event date type determined is compared with default date type, judges that type is It is no consistent, such as the event date type determined is working day, default date type is day off, and then judges its event day The Type-Inconsistencies of phase type and default date type.Certainly in some cases, event date type is default date type, Such as other dates in standard holiday information in addition to legal holiday, legal workday, Monday to Friday are work Day, Saturday to Sunday is day off;And defaulting date type to be also is working day, Saturday to star on Monday to Friday Phase day is day off.
Certainly in some embodiments, when the event date type and the default date type phase on next date on next date Meanwhile in the presence of when the alarm clock on a date, then the alarm clock on next date is not changed.
S303, it is configured according to alarm clock of the event date type to next date.
In the present embodiment, determine that next date (being assumed to be Saturday) goes to work according to the communication information of calendar or user When, and next date is that when defaulting day off, the time of the alarm clock on next date from weekend alarm time can be adjusted to Work hours;Such as the alarm time at user's respectively arranged weekend and working in advance, the alarm time at weekend are 9 points, on Class alarm time be 7 points 30 minutes;Since next date is weekend, then the script alarm time on next date is adjusted from 9 points It is working 7 points of alarm time 30 minutes.I.e. when the default date type on next date is default day off, event date type is thing When part working day, the alarm clock on next date is adjusted to alarm clock corresponding to default working day.
Certainly in some embodiments, when the work hours in the work hours at user's weekend and week are inconsistent, may be used also According to the alarm time for extracting the adjustment weekend working of date information from the communication information;Such as the work extracted Date information includes " 2 pm July 28 has a meeting to company ", then the alarm time that the weekend is directly arranged is 12 points, to mention Wake up user.
It should be understood that being configured according to alarm clock of the event date type to next date can also be when next The default date type on date is default day off, when event date type is event working day, display reminding information;It is receiving To the corresponding reception alarm clock setting instruction of prompt information, the alarm clock on next date is reset according to alarm clock setting instruction.Such as User is being detected in weekend working, is issuing the user with prompting, terminal pops up a prompting interface, which shows The prompt information of " weekend normal 9 points of workings ", to remind user to reset the alarm time at weekend, when this is mentioned user in confirmation After showing information, weekend alarm time is reset, terminal is receiving the corresponding reception alarm clock setting instruction of the prompt information, according to Alarm clock setting instruction reset weekend alarm time be 7 points 30 minutes.
Certainly, the default that can also be when next date is configured according to alarm clock of the event date type to next date Date type is default working day, when event date type is event day off, the alarm clock on next date is adjusted to default and is stopped Alarm clock corresponding to day, such as the alarm time at user's respectively arranged weekend and working in advance are ceased, the alarm time at weekend is 9 Point, the alarm time of working be 7 points 30 minutes;Since next date is in week, then by the alarm time on next date from 7 points 30 minutes It is adjusted to 9 points of alarm time.
In some embodiments, when user is not provided with the habit of the alarm clock at weekend, when detecting rest in week, also Alarm clock in week can be cancelled, i.e., when the default date type on next date is default working day, event date type is thing When part day off, cancel the alarm clock on next date, the alarm clock for cancelling next date in the present embodiment can be next date Alarm clock be set as unactivated state, be also possible to delete in the alarm clock on next date.
The alarm clock set is adjusted it is worth noting that, can be combined with weather in the present embodiment, specifically, After being configured according to alarm clock of the date type to next date, can also when event date type be event working day when, The Weather information for obtaining next date, when the Weather information includes default weather pattern, the alarm clock corresponding to next date On the basis of time, by alarm time preset in advance weather alarm time section, wherein default antenna type includes but is not limited to rain It, strong wind day, snowy day etc. be not easy to the weather of trip;Certainly in the present embodiment, it can also be determined and be corresponded to according to weather pattern Weather alarm time, such as rainy day corresponding default weather alarm time are 20 minutes, the corresponding default weather alarm clock in strong wind day Time is 15 points etc., which can also be adjusted flexibly according to the actual conditions of user.
In the present embodiment, it is state of activation according to the alarm clock on next date of event date type setting, that is, arrives under this When alarm time corresponding to one date, which is operated normally.
It is excessive for the ease of the alarm clock information in terminal, occupied terminal resource, the present embodiment according to date type under After the alarm clock on one date is configured, certain alarm clock informations in terminal can also be deleted, to optimize terminal resource;Specifically , obtain all alarm clock information in terminal, the alarm clock information include activation with unactivated alarm clock information;Judge that alarm clock is believed It whether there is the un-activation within a preset period of time of a certain alarm clock in breath, if so, the alarm clock is deleted, certain preset time period can To be adjusted flexibly.Such as user is only provided with the alarm clock information of some day, and the alarm clock information is shut off behind the day, then the alarm clock Information will not all be activated for a long time, then delete the alarm clock information;In another example user setting one July 26 in 2018 Number alarm clock information, which is not closed, but will not all be activated before July 15 27 to 2019 years July in 2018, then Delete the alarm clock information.
A kind of alarm clock setting method is present embodiments provided, the communication information according to standard phase festivals or holidays or default application is true The event date type for determining next date of current date is working day or event day off;When the event date type and it is somebody's turn to do The default date type on next date is compared, when event date type is working day, and default date type is day off, The alarm clock on next date is adjusted from rest Time of Day and is adjusted to work Time of Day;Alarm clock setting method provided in this embodiment is also Alarm time can be adjusted according to weather condition, user is avoided to forget that alarm time is arranged, cause working late.
Second embodiment
The alarm clock setting method provided to facilitate the understanding of the present invention, the present embodiment is with a more specific example to noisy Clock setting method is illustrated, as shown in figure 5, Fig. 5 is the alarm clock setting method flow chart that second embodiment of the invention provides, it should Alarm clock setting method includes:
S501, the communication information for obtaining the default application of terminal.
In the present embodiment, presetting application is communication class application, such as short message, wechat, nail nail optionally obtain terminal The communication information of user and Work colleagues, leader etc. in communication class application.
S502, when extracting date information from the communication information, next date is determined according to date information Event date type.
The content of the communication information is parsed, judges whether the communication information includes date information, it is possible to understand that , when extracting date information from the communication information, the working time which includes should be worked as Working time after the preceding date, and then can be according to the working time in date information to the event date class on next date Type, event date type include event working day or event day off, are that user will carry out working day or day off.
Whether S503, the event date type for judging next date are identical as the default date type on next date, if so, Terminate, if not, turning S504.
In the present embodiment, the event date type on next date and the default date type on next date are compared Compared with, be in order to determine whether the event date type on next date changes, when next date event date type be thing When part working day, when default date type is default working day, indicate the date type on next date without because of the communication information It is changed, in the presence of when the alarm clock on a date, then the alarm clock is not changed;The alarm clock on next date if it does not exist When, the alarm clock on next date can also be not provided with;Assuming that the event date type on next date in the present embodiment is event work Make day, when default date type is default day off, when such as determining that next date (weekend) needs to go to work according to the communication information, i.e., When the event date type on next date and the not identical default date type on next date, turn S504.
S504, it is configured according to alarm clock of the event date type to next date.
It is configured to work as according to alarm time of the event date type to next date in the present embodiment and be not present When the alarm clock information on next date, the alarm clock information on a next date is created;It is right in the presence of when the alarm clock information on a date The alarm time on original next date is adjusted.Wherein being adjusted to the alarm time on original next date can be directly Default work Time of Day is set by the alarm clock event on next date;It is understood that ought be extracted from the communication information When date information includes the working time, the alarm time of alarm clock information can also be set according to the working time;Work as work When date information does not include the working time, according to the alarm time of the working time setting alarm clock information of user usually;Certainly exist In the present embodiment, after being configured to the alarm clock information on next date, the alarm clock information set can also be passed through display circle Face is shown to user, and terminal judges whether to be verified instruction, if so, again saving the alarm clock information.
S505, when event date type be working day when, obtain the Weather information on next date.
In order to make alarm clock have more hommization, the alarm time set in the present embodiment can also be according to Weather information It is changed.It is working day, alarm time of the terminal on the next date set by event date type in this present embodiment Afterwards, the Weather information on next date is obtained, acquisition modes can be the Weather information for calling directly " weather " application, be also possible to Weather information acquisition request is initiated to server, Weather information is obtained from server.
S506, when weather information includes default weather pattern, will on the basis of the alarm time corresponding to next date Alarm time preset in advance weather alarm time section.
In the present embodiment, it is also necessary to judge Weather information judge whether the Weather information includes default weather, If so, by the alarm clock on the next date corresponding alarm time preset in advance period;Wherein presetting weather includes going on a journey to user The weather impacted, such as rainy day.
In order to make it easy to understand, the present embodiment is illustrated alarm clock setting method with a more specific example, obtain The communication information of the default application of terminal, it is true according to date information when extracting date information from the communication information The event date type for fixing a date, by judging the event date type on next date and the default date class on next date Whether type is identical, judges whether the date type on next date changes, and is made a noise according to event date type to next date Clock is configured, and is adjusted in combination with alarm clock of the Weather information to the next date set, so that alarm clock is according to reality Situation is adjusted flexibly, and ensure that user in weekend working, will not be late because of alarm clock, improve the experience sense of user.
3rd embodiment
A kind of terminal is present embodiments provided, it is shown in Figure 6 comprising processor 601, memory 602 and communication are total Line 603, in which:
Communication bus 603 is for realizing the connection communication between processor 601 and memory 602;
Processor 601 is then for executing one or more program stored in memory 602, to realize as above-mentioned each The step of alarm clock setting method in embodiment.
The present embodiment also provides a kind of computer readable storage medium, computer-readable recording medium storage have one or Multiple programs, one or more program can be executed by one or more processor, to realize as in above-mentioned each embodiment Alarm clock setting method the step of.
It should be noted that terminal provided in this embodiment and computer readable storage medium can also realize a kind of alarm clock Setting method, as shown in fig. 7, the alarm clock setting method includes:
S701, standard festivals or holidays phase information is obtained.
In the present embodiment, standard phase festivals or holidays information is government's publication, for any terminal, the standard festivals or holidays Phase information is all consistent, and wherein standard phase festivals or holidays information includes legal workday, legal holiday and legal workday, method Determine default working day, the default day off outside day off;Default working day is Monday to Friday, and default day off is week Six and Sunday.
S702, determined according to standard phase festivals or holidays information terminal current date next date event date type.
The year, month, day information for obtaining next date is looked into standard phase festivals or holidays information according to the year, month, day information It looks for, when the year, month, day information labeling has " class ", shows that the event date information on next date is event working day, when being labeled as " not ", the event date type on next date is event day off;When also not marking, next date is checked Number of weeks, when next date is when Monday is into Friday, event date type is event working day, and next date is in week Six and Sunday in when, event date type is event day off
Whether S703, the event date type for judging next date are identical as the default date type on next date, if so, Terminate, if not, turning S704.
It is consistent with S503 in step, here, no longer repeating one by one.
S704, it is configured according to alarm clock of the event date type to next date.
Assuming that the default date type on next date is default day off in the present embodiment, event date type is event Working day, terminal display reminding information, the prompt information are " next date is working day ", and user is seeing the prompt information Afterwards, it can be configured in alarm clock information of the prompting interface to next date, terminal receives the corresponding alarm clock of prompt information Setting instruction, is configured the alarm clock on next date.
Certainly in some embodiments, when the default date type on next date is default working day, event date type When for event day off, the alarm clock information on next date can also be adjusted to stop corresponding to default day off from the working time Cease the time;It is also possible to cancel in the alarm clock of next date script, which is to set alarm clock to unactivated state, not It is to delete the alarm clock.
S705, alarm clock information all in terminal is obtained, will deleted unactivated alarm clock for a long time.
It is understood that the unactivated alarm clock meeting occupied terminal resource of long-time, therefore pass through judgement in the present embodiment It whether there is the un-activation within a preset period of time of a certain alarm clock in alarm clock information, if so, the alarm clock is deleted.
It is worth noting that, not fully expounding first embodiment, second in the present embodiment in fact in order not to burden explanation Apply all examples in example, it is understood that, all examples in first embodiment, second embodiment are suitable for this implementation Example.
A kind of terminal and computer readable storage medium are present embodiments provided, to realize alarm clock setting method, this implementation Example additionally provides a kind of alarm clock setting method, obtains standard festivals or holidays phase information, determines terminal according to standard phase festivals or holidays information The event date type on next date of current date is different from default date type in the event date type on next date When, it is configured according to alarm clock of the event date type to next date, such as default date type on next date is that default is stopped It ceases day, when event date type is event working day, the alarm clock on next date is reset according to alarm clock setting instruction, or cancel The alarm clock on next date;Terminal can also screen all alarm clock informations simultaneously, delete unactivated alarm clock for a long time, excellent Change the resource of terminal;The present embodiment is configured by alarm clock of the event date type to next date, improves the experience of user Sense and satisfaction.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row His property includes, so that the process, method, article or the device that include a series of elements not only include those elements, and And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do There is also other identical elements in the process, method of element, article or device.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art The part contributed out can be embodied in the form of software products, which is stored in a storage medium In (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal (can be mobile phone, computer, service Device, air conditioner or network equipment etc.) execute method described in each embodiment of the present invention.
The embodiment of the present invention is described with above attached drawing, but the invention is not limited to above-mentioned specific Embodiment, the above mentioned embodiment is only schematical, rather than restrictive, those skilled in the art Under the inspiration of the present invention, without breaking away from the scope protected by the purposes and claims of the present invention, it can also make very much Form, all of these belong to the protection of the present invention.

Claims (10)

1. a kind of alarm clock setting method, which is characterized in that the alarm clock setting method includes:
Determine that rule determines the event date type on next date of terminal current date, the event date according to the default date Type includes event working day or event day off;
Judge whether the event date type on next date is identical as the default date type on next date;
If not, being configured according to alarm clock of the event date type to next date.
2. alarm clock setting method as described in claim 1, which is characterized in that the basis is preset date determining rule and determined eventually The event date type on next date for holding current date includes:
Acquisition standard phase festivals or holidays information;
Event date type corresponding to the date information on next date is determined according to the phase standard festivals or holidays information.
3. alarm clock setting method as described in claim 1, which is characterized in that the basis is preset date determining rule and determined eventually The event date type on next date for holding current date includes:
Obtain the communication information of the default application of the terminal;
When extracting date information from the communication information, next day is determined according to the date information The event date type of phase.
4. alarm clock setting method as described in any one of claims 1-3, which is characterized in that described according to the event date class Type is configured the alarm clock on next date
When the default date type on next date is default day off, and event date type is event working day, by institute The alarm clock for stating next date is adjusted to alarm clock corresponding to default working day.
5. alarm clock setting method as described in any one of claims 1-3, which is characterized in that described according to the event date class Type is configured the alarm clock on next date
When the default date type on next date is default day off, and event date type is event working day, display Prompt information;
The corresponding alarm clock setting instruction of the prompt information is received, next day is reset according to alarm clock setting instruction The alarm clock of phase.
6. alarm clock setting method as described in any one of claims 1-3, which is characterized in that described according to the event date class Type is configured the alarm clock on next date further include:
When the default date type on next date is default working day, and event date type is event day off, by institute The alarm clock for stating next date is adjusted to alarm clock corresponding to default day off;
Or, cancelling the alarm clock on next date.
7. alarm clock setting method as described in any one of claims 1-3, which is characterized in that described according to the event date class After type is configured the alarm clock on next date, comprising:
When the event date type is event working day, the Weather information on next date is obtained;
When the Weather information includes default weather pattern, the base of the alarm time corresponding to the alarm clock on next date On plinth, by the alarm time preset in advance weather alarm time section.
8. alarm clock setting method as claimed in claim 7, which is characterized in that it is described according to the date type to described next After the alarm clock on date is configured, comprising:
Obtain alarm clock information all in the terminal;
Judge in the alarm clock information with the presence or absence of the un-activation within a preset period of time of a certain alarm clock;
If so, the alarm clock is deleted.
9. a kind of terminal, which is characterized in that the terminal includes processor, memory and communication bus;
The communication bus is for realizing the connection communication between processor and memory;
The processor is for executing one or more program stored in memory, to realize as appointed in claim 1 to 8 The step of alarm clock setting method described in one.
10. a kind of computer readable storage medium, which is characterized in that the computer-readable recording medium storage have one or Multiple programs, one or more of programs can be executed by one or more processor, to realize such as claim 1 to 8 Any one of described in alarm clock setting method the step of.
CN201810847207.0A 2018-07-27 2018-07-27 A kind of alarm clock setting method, terminal and computer readable storage medium Pending CN109005290A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810847207.0A CN109005290A (en) 2018-07-27 2018-07-27 A kind of alarm clock setting method, terminal and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810847207.0A CN109005290A (en) 2018-07-27 2018-07-27 A kind of alarm clock setting method, terminal and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN109005290A true CN109005290A (en) 2018-12-14

Family

ID=64597583

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810847207.0A Pending CN109005290A (en) 2018-07-27 2018-07-27 A kind of alarm clock setting method, terminal and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN109005290A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111049986A (en) * 2019-12-20 2020-04-21 深圳市优必选科技股份有限公司 Alarm clock setting method and terminal
CN111629106A (en) * 2020-05-22 2020-09-04 Oppo(重庆)智能科技有限公司 Alarm clock control method, electronic device and non-volatile computer-readable storage medium
CN113269511A (en) * 2021-04-29 2021-08-17 维沃移动通信有限公司 Control method, control device, electronic device, and medium
CN114070658A (en) * 2020-08-04 2022-02-18 中国移动通信集团重庆有限公司 PCC system and PCC strategy configuration method

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101997950A (en) * 2010-05-19 2011-03-30 宇龙计算机通信科技(深圳)有限公司 Method, device and terminal for realizing alarm clock
CN102223451A (en) * 2011-07-01 2011-10-19 北京百纳威尔科技有限公司 Alarm clock handling method and device thereof for mobile terminal
CN103475786A (en) * 2013-09-25 2013-12-25 上海斐讯数据通信技术有限公司 Method and system for setting mobile terminal alarm clock
CN105847579A (en) * 2016-04-29 2016-08-10 乐视控股(北京)有限公司 Clock implementation method and device
CN105872204A (en) * 2016-03-17 2016-08-17 北京百纳威尔科技有限公司 Alarm clock control method and apparatus and electronic equipment
CN107172285A (en) * 2017-05-18 2017-09-15 广东小天才科技有限公司 Method for adjusting alarm clock ringing time and mobile terminal

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101997950A (en) * 2010-05-19 2011-03-30 宇龙计算机通信科技(深圳)有限公司 Method, device and terminal for realizing alarm clock
CN102223451A (en) * 2011-07-01 2011-10-19 北京百纳威尔科技有限公司 Alarm clock handling method and device thereof for mobile terminal
CN103475786A (en) * 2013-09-25 2013-12-25 上海斐讯数据通信技术有限公司 Method and system for setting mobile terminal alarm clock
CN105872204A (en) * 2016-03-17 2016-08-17 北京百纳威尔科技有限公司 Alarm clock control method and apparatus and electronic equipment
CN105847579A (en) * 2016-04-29 2016-08-10 乐视控股(北京)有限公司 Clock implementation method and device
CN107172285A (en) * 2017-05-18 2017-09-15 广东小天才科技有限公司 Method for adjusting alarm clock ringing time and mobile terminal

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111049986A (en) * 2019-12-20 2020-04-21 深圳市优必选科技股份有限公司 Alarm clock setting method and terminal
CN111629106A (en) * 2020-05-22 2020-09-04 Oppo(重庆)智能科技有限公司 Alarm clock control method, electronic device and non-volatile computer-readable storage medium
CN114070658A (en) * 2020-08-04 2022-02-18 中国移动通信集团重庆有限公司 PCC system and PCC strategy configuration method
CN114070658B (en) * 2020-08-04 2023-10-27 中国移动通信集团重庆有限公司 PCC system and PCC policy configuration method
CN113269511A (en) * 2021-04-29 2021-08-17 维沃移动通信有限公司 Control method, control device, electronic device, and medium
CN113269511B (en) * 2021-04-29 2024-03-26 维沃移动通信有限公司 Control method, control device, electronic equipment and medium

Similar Documents

Publication Publication Date Title
CN108337363A (en) A kind of terminal puts out screen display control method, terminal
CN109039862A (en) Message prompt method, terminal and computer readable storage medium
CN109167879A (en) Based reminding method, mobile terminal and storage medium based on artificial intelligence
CN109005290A (en) A kind of alarm clock setting method, terminal and computer readable storage medium
CN108924364A (en) Message prompt method, mobile terminal and computer readable storage medium
CN108449488A (en) Temporal information puts out screen display control method, circuit and terminal
CN109660430A (en) A kind of flux monitoring method, terminal and computer readable storage medium
CN107506105A (en) A kind of message treatment method, terminal and computer-readable recording medium
CN108055189A (en) A kind of message treatment method, terminal and computer readable storage medium
CN109901695A (en) Display methods, mobile terminal and the computer readable storage medium of screen power saving
CN109933253A (en) Method for controlling application starting, terminal and computer readable storage medium
CN108833663A (en) Terminal setting method, terminal and computer storage medium based on reality scene
CN109219004A (en) Short message unsubscription method, device, mobile terminal and readable storage medium storing program for executing
CN107422940A (en) A kind of icon display method, mobile terminal and computer-readable recording medium
CN109361822A (en) Incoming call reminding method, mobile terminal and computer readable storage medium
CN109559100A (en) Calendar prompting processing method, mobile terminal and computer readable storage medium
CN108282578A (en) Shoot based reminding method, mobile terminal and computer readable storage medium
CN108053184B (en) Item prompting method, mobile terminal and computer readable storage medium
CN107872575A (en) Terminal installation, intelligent prompt method and computer-readable storage medium
CN106791174B (en) Alarm clock adjusting method and device and mobile terminal
CN109246312B (en) Information prompting method and mobile terminal
CN107846725A (en) A kind of processing method of notification message, terminal and storage medium
CN108241808A (en) identification code display control method, terminal and computer readable storage medium
CN107634940A (en) Control method, terminal, server and the readable storage medium storing program for executing that a kind of flow uses
CN110213717A (en) A kind of localization method, localization message remind terminal and localization message system for prompting

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20181214

RJ01 Rejection of invention patent application after publication