WO2017156997A1 - Method and device for setting time - Google Patents

Method and device for setting time Download PDF

Info

Publication number
WO2017156997A1
WO2017156997A1 PCT/CN2016/100141 CN2016100141W WO2017156997A1 WO 2017156997 A1 WO2017156997 A1 WO 2017156997A1 CN 2016100141 W CN2016100141 W CN 2016100141W WO 2017156997 A1 WO2017156997 A1 WO 2017156997A1
Authority
WO
WIPO (PCT)
Prior art keywords
time
pressure
value
unit
time unit
Prior art date
Application number
PCT/CN2016/100141
Other languages
French (fr)
Chinese (zh)
Inventor
张光华
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2017156997A1 publication Critical patent/WO2017156997A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser

Definitions

  • the present invention relates to the field of terminal technologies, and in particular, to a method and apparatus for setting a time.
  • the user when setting the time on the terminal, the user needs to first select the time unit (hour, minute or second) to be set, and then use the input number to modify the time value. For example, when the user sets the countdown time, the process is as follows: first select the time unit "second”, enter two digits to modify the time value, then select the time unit "minute”, enter two digits to modify the time value, and finally select the time unit " Hours”, enter two digits to modify the time value, that is, in order to successfully set the countdown time, you usually need to enter the full 6 digits.
  • the current method of setting the time is cumbersome and affects the user experience.
  • An object of the present invention is to provide a method and an apparatus for setting a time to solve the problem that the method of setting time in the prior art is cumbersome and affects the user experience.
  • an embodiment of the present invention provides a method for setting a time, including:
  • the time unit and the time unit of the time unit are respectively determined according to the pressure value and the pressing time, and the time on the time display area is set according to the time unit and the time correction value.
  • the step of determining a time unit of the time unit and the time unit according to the pressure value and the pressing time, and setting a time on the time display area according to the time unit and the time correction value include:
  • the obtained pressure value is analyzed to determine a time unit that needs to be set;
  • the time value on the time display area corresponding to the time unit is corrected using the time correction value of the time unit.
  • the unit of time comprises one or more combinations of hours, minutes and seconds.
  • the step of analyzing the acquired pressure value to determine a time unit to be set includes:
  • a time unit that needs to be set is seconds when the acquired pressure value is less than or equal to the first pressure threshold; or, when the acquired pressure value is greater than the first pressure threshold and less than the second pressure At the threshold, it is determined that the time unit to be set is minutes; or, when the acquired pressure value is greater than or equal to the second pressure threshold, it is determined that the time unit to be set is hour.
  • the method for setting a time further includes:
  • step of modifying the time value on the time display area corresponding to the time unit by using the time correction value of the time unit including:
  • the time correction value of the time unit is used to increase the time value on the time display area corresponding to the time unit; or, in the When the result of the determination is that the pressure detection area is the second pressure detection area, the time value on the time display area corresponding to the time unit is lowered by the time correction value of the time unit.
  • An embodiment of the present invention further provides an apparatus for setting a time, including:
  • a first obtaining module configured to obtain a pressure value of a pressure applied by the user on the pressure detecting area
  • a second obtaining module configured to obtain a pressing time for continuously applying pressure by the user
  • the setting module is configured to respectively determine a time unit and a time correction value of the time unit according to the pressure value and the pressing time, and set a time on the time display area according to the time unit and the time correction value.
  • the setting module comprises:
  • a first determining unit configured to analyze the acquired pressure value to determine a time unit that needs to be set
  • a second determining unit configured to determine a time correction value of the time unit according to the pressing time
  • the correction unit is configured to correct the time value on the time display area corresponding to the time unit by using the time correction value of the time unit.
  • the unit of time comprises one or more combinations of hours, minutes and seconds.
  • the first determining unit comprises:
  • a comparison subunit configured to compare a magnitude relationship between the acquired pressure value and a first pressure threshold and a second pressure threshold, the second pressure threshold being greater than the first pressure threshold
  • Determining a subunit configured to determine that a time unit to be set is seconds when the acquired pressure value is less than or equal to the first pressure threshold; or, when the acquired pressure value is greater than the first pressure threshold and When it is less than the second pressure threshold, it is determined that the time unit to be set is minutes; or, when the acquired pressure value is greater than or equal to the second pressure threshold, it is determined that the time unit to be set is hour.
  • the time setting device further includes:
  • a determining module configured to determine the pressure detecting area that applies pressure to the user, to obtain a determination result
  • the correction unit is specifically configured to increase the time on the time display area corresponding to the time unit by using the time correction value of the time unit when the determination result is that the pressure detection area is the first pressure detection area. a value; or, when the determination result is that the pressure detection area is the second pressure detection area, use the time correction value of the time unit to lower the value The time value on the time display area corresponding to the time unit.
  • a storage medium is also provided.
  • the storage medium is arranged to store program code for performing the following steps:
  • the storage medium is further arranged to store program code for performing the following steps:
  • the obtained pressure value is analyzed to determine a time unit that needs to be set;
  • the time value on the time display area corresponding to the time unit is corrected using the time correction value of the time unit.
  • the storage medium is further arranged to store program code for performing the following steps:
  • a time unit that needs to be set is seconds when the acquired pressure value is less than or equal to the first pressure threshold; or, when the acquired pressure value is greater than the first pressure threshold and less than the second pressure At the threshold, it is determined that the time unit to be set is minutes; or, when the acquired pressure value is greater than or equal to the second pressure threshold, it is determined that the time unit to be set is hour.
  • the storage medium is further arranged to store program code for performing the following steps:
  • step of modifying the time value on the time display area corresponding to the time unit by using the time correction value of the time unit including:
  • the time correction value of the time unit is increased by the time value on the time display area corresponding to the time unit; or, when the determination result is that the pressure detection area is the second pressure detection area, the time unit is utilized The time correction value lowers the time value on the time display area corresponding to the time unit.
  • the method for setting time acquires the pressing time of the user continuously applying pressure by acquiring the pressure value of the pressure applied by the user on the pressure detecting area, and determines the time unit and the setting according to the pressure value and the pressing time respectively.
  • the time correction value of the time unit is set, and the time on the time display area is set according to the time unit and the time correction value.
  • the operation process can be simplified, only by the user pressing on the pressure detection area. By operation, it is possible to set the time, which is convenient and quick, and enhances the user experience.
  • FIG. 1 is a flow chart showing a method of setting a time according to an embodiment of the present invention.
  • Fig. 2 is a flow chart showing the time value on the correction time display area in the embodiment of the present invention.
  • FIG. 3 is a schematic diagram showing a terminal interface for setting a countdown according to an embodiment of the present invention.
  • Fig. 4 is a block diagram showing the structure of an apparatus for setting a time according to an embodiment of the present invention.
  • FIG. 5 is a block diagram showing the structure of another apparatus for setting a time according to an embodiment of the present invention.
  • An embodiment of the present invention provides a method for setting a time.
  • the method for setting a time includes:
  • Step 101 Acquire a pressure value of a user applying pressure on the pressure detecting area
  • Step 102 Acquire a pressing time for the user to continuously apply pressure
  • Step 103 Determine a time unit and a time correction value of the time unit according to the pressure value and the pressing time, and set a time on the time display area according to the time unit and the time correction value.
  • the method for setting time acquires the pressing time of the user continuously applying pressure by acquiring the pressure value of the pressure applied by the user on the pressure detecting area, and determines the time unit and the setting according to the pressure value and the pressing time respectively.
  • the time correction value of the time unit is set, and the time on the time display area is set according to the time unit and the time correction value.
  • the operation process can be simplified, only by the user pressing on the pressure detection area. By operation, it is possible to set the time, which is convenient and quick, and enhances the user experience.
  • the position of the pressure detecting area in the terminal is preset, and is determined according to the terminal setting, which is not limited by the present invention.
  • the time displayed on the time display area can be divided into hours, minutes, and seconds, that is, the time value corresponding to the time is in hours, minutes, or seconds.
  • the corresponding time unit may be determined based on the pressure value of the pressure applied by the user, and the time correction value of the time unit may be determined according to the pressing time of the user continuously applying the pressure to correct and describe The time corresponding to the time unit displays the time value on the area.
  • the step 103 includes:
  • Step 1031 Analyze the acquired pressure value to determine a time unit that needs to be set
  • Step 1032 Determine a time correction value of the time unit according to the pressing time
  • Step 1033 Correct the time value on the time display area corresponding to the time unit by using the time correction value of the time unit.
  • the correspondence between the pressing time and the time correction value may be preset in the terminal, so that after the pressing time of the user continuously applying the pressure is obtained, the pressing may be determined.
  • the time correction value corresponding to the time may be preset in the terminal, so that after the pressing time of the user continuously applying the pressure is obtained, the pressing may be determined.
  • the time value on the time display area corrected in the step 1033 is, for example, an initial time value preset in the terminal, or a time value that has been set based on the pressing time before the current correction. That is to say, the method of setting the time in the embodiment of the present invention achieves the setting of time by continuously correcting the time value displayed on the time display area.
  • the time unit in the embodiment of the present invention includes one or more combinations of hours, minutes, and seconds.
  • the time unit when the time unit is hour, the corresponding time value ranges from 0 to 24.
  • the time unit when the time unit is minute, the corresponding time value ranges from 0 to 60, and when the time unit is seconds, the corresponding time value The range is 0-60.
  • the first pressure threshold and the second pressure threshold may be preset in the terminal, and compared with the acquired pressure value, to obtain a time unit that needs to be set according to the comparison result.
  • the step 1031 includes:
  • a time unit that needs to be set is seconds when the acquired pressure value is less than or equal to the first pressure threshold; or, when the acquired pressure value is greater than the first pressure threshold and less than the second pressure At the threshold, it is determined that the time unit to be set is minutes; or, when the acquired pressure value is greater than or equal to the second pressure threshold, it is determined that the time unit to be set is hour.
  • the time unit that needs to be set can be accurately determined, thereby realizing the correction of the time value of the single time unit.
  • the correction mode when the time value on the time display area is corrected, the correction mode generally increases the time value or lowers the time value. Therefore, in the embodiment of the present invention, based on repair As required, two different pressure detection areas, such as the first pressure detection area A and the second pressure detection area B shown in FIG. 3, may be preset on the terminal, and the user presses the first pressure detection area A The time value is increased, and when the user presses the second pressure detecting area B, the time value is lowered.
  • the method for setting time in the embodiment of the present invention further includes:
  • step 1033 includes:
  • the time correction value of the time unit is used to increase the time value on the time display area corresponding to the time unit; or, in the When the result of the determination is that the pressure detection area is the second pressure detection area, the time value on the time display area corresponding to the time unit is lowered by the time correction value of the time unit.
  • FIG. 3 a schematic diagram of a terminal interface for setting a countdown using the present invention.
  • a first pressure detecting area A (abbreviation: area A), a second pressure detecting area B (abbreviation: area B), and a time display area C (abbreviation: area C) are preliminarily provided.
  • area A a first pressure detecting area
  • area B a second pressure detecting area B
  • area C a time display area C
  • area A the time value can be adjusted.
  • the area B the time value can be adjusted, and the area C is used to display the time value.
  • the first pressure threshold F1 and the second pressure threshold F2 are pre-set in the terminal, and F1 ⁇ F2.
  • the time value displayed on area C is 000000, which is 00 hours 00 minutes 00 seconds. If the user wants to set the countdown to 4 hours, 20 minutes and 18 seconds, the following process can be used to set the time:
  • the user First, set the hour to correct 00 to 04 (ie 4), the user first presses the area A, the pressure value F of the applied pressure is greater than or equal to F2, and continues for a certain pressing time t1, so that the hour corresponding to the pressing time t1
  • the time correction value is 4; if the user presses the time too long, for example, the time correction value of the corresponding hour is 5, and the area corresponding to the hour in the area C is displayed.
  • the user can press the area B again, and the pressure value F of the applied pressure is greater than or equal to F2, and continues for a certain pressing time t2, so that the time correction value of the hour corresponding to the pressing time t2 is 1, to lower the time value 05 on the area corresponding to the hour in the area C, so that it becomes 04;
  • the value is 20; if the user presses the time too long, for example, the time correction value of the corresponding minute is 25, and the area corresponding to the minute in the area C is displayed at 25, in order to get the correct 20 minutes, the user can Pressing the area B, the pressure value F of the applied pressure is less than F2 and greater than F1, and continues for a certain pressing time t4, so that the time correction value of the minute corresponding to the pressing time t4 is 5, to lower the minute and the minute in the area C.
  • the time value 25 on the corresponding area is changed to 20;
  • the user first presses the area A, the pressure value F of the applied pressure is less than or equal to F1, and continues for a certain pressing time t5, so that the time correction corresponding to the pressing time t5 is corrected.
  • the value is 18; if the user presses the time too long, for example, the time correction value of the second is 24, the area corresponding to the second in the area C is displayed 24, in order to get the correct 18 seconds, the user can Pressing the area B again, the pressure value F of the applied pressure is less than or equal to F1, and continues for a certain pressing time t6, so that the time correction value of the second corresponding to the pressing time t6 is 6 to lower the seconds in the area C.
  • the time value 24 on the area corresponding to the clock is changed to 18.
  • the countdown in the terminal can be successfully set to 4 hours, 20 minutes, and 18 seconds.
  • an embodiment of the present invention further provides a device for setting a time, which corresponds to the method for setting a time shown in FIG. 1.
  • the device for setting a time includes:
  • the first obtaining module 41 is configured to acquire a pressure value of a pressure applied by the user on the pressure detecting area;
  • the second obtaining module 42 is configured to acquire a pressing time for continuously applying pressure by the user
  • the setting module 43 is configured to determine the time according to the pressure value and the pressing time respectively The time correction value of the unit and the time unit, and setting the time on the time display area according to the time unit and the time correction value.
  • the setting module 43 includes:
  • the first determining unit 431 is configured to analyze the acquired pressure value to determine a time unit that needs to be set;
  • the second determining unit 432 is configured to determine a time correction value of the time unit according to the pressing time
  • the correcting unit 433 is configured to correct the time value on the time display area corresponding to the time unit by using the time correction value of the time unit.
  • the time unit includes one or more combinations of hours, minutes, and seconds.
  • the first determining unit 431 includes:
  • a comparison subunit configured to compare a magnitude relationship between the acquired pressure value and a first pressure threshold and a second pressure threshold, the second pressure threshold being greater than the first pressure threshold
  • Determining a subunit configured to determine that a time unit to be set is seconds when the acquired pressure value is less than or equal to the first pressure threshold; or, when the acquired pressure value is greater than the first pressure threshold and When it is less than the second pressure threshold, it is determined that the time unit to be set is minutes; or, when the acquired pressure value is greater than or equal to the second pressure threshold, it is determined that the time unit to be set is hour.
  • the device for setting a time further includes:
  • a determining module configured to determine the pressure detecting area that applies pressure to the user, to obtain a determination result
  • the correction unit is specifically configured to: when the determination result is that the pressure detection area is the first pressure detection area, use a time correction value of the time unit to increase the time display area corresponding to the time unit The time value; or, when the determination result is that the pressure detection area is the second pressure detection area, use the time correction value of the time unit to decrease the time value on the time display area corresponding to the time unit.
  • the device for setting time acquires the pressing time of the user to continuously apply pressure by acquiring the pressure value of the pressure applied by the user on the pressure detecting area, and determines the time unit and the respectively according to the pressure value and the pressing time.
  • the time correction value of the time unit is set, and the time on the time display area is set according to the time unit and the time correction value.
  • the operation process can be simplified, only by the user pressing on the pressure detection area. By operation, it is possible to set the time, which is convenient and quick, and enhances the user experience.
  • modules or steps of the present invention described above can be implemented by a general-purpose computing device that can be centralized on a single computing device or distributed across a network of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein.
  • the steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps thereof are fabricated as a single integrated circuit module.
  • the invention is not limited to any specific combination of hardware and software.
  • the pressing time of the user continuously applying pressure is obtained by acquiring the pressure value of the pressure applied by the user on the pressure detecting area, according to the pressure
  • the value and the pressing time respectively determine a time unit and a time correction value of the time unit, and set a time on the time display area according to the time unit and the time correction value, which can be simplified compared to the current setting time method
  • the setting of the time can be realized only by the pressing operation of the user on the pressure detecting area, which is convenient and quick, and improves the user experience.

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Electric Clocks (AREA)

Abstract

A method and a device for setting time, for solving the problem in the prior art that the method for setting time is cumbersome in operation, influencing the usage experience of the user. The method for setting time comprises: acquiring the value of pressure applied by a user on a pressure detection region (S101); acquiring the pressing time of the user continuously applying pressure (S102); determining, according to the pressure value and the pressing time, a time unit and a time correction value of the time unit, and setting, according to the time unit and the time correction value, the time on a time display region (S103). The present solution is able to simplify the operation process, and is able to set time by means of the pressing operation of the user on the pressure detection region only, which is fast and convenient, improving the usage experience of the user.

Description

一种设置时间的方法及装置Method and device for setting time 技术领域Technical field
本发明涉及终端技术领域,特别是涉及一种设置时间的方法及装置。The present invention relates to the field of terminal technologies, and in particular, to a method and apparatus for setting a time.
背景技术Background technique
目前,用户在设置终端上的时间时,大都需要先选中要设置的时间单位(小时、分钟或秒钟),再利用输入数字的方式修改时间数值。例如,用户在设置倒计时时间时,过程如下:先选中时间单位“秒钟”,输入两位数字修改时间数值,再选中时间单位“分钟”,输入两位数字修改时间数值,最后选中时间单位“小时”,输入两位数字修改时间数值,即为了成功设置倒计时时间,一般需要输入完整的6位数字。At present, when setting the time on the terminal, the user needs to first select the time unit (hour, minute or second) to be set, and then use the input number to modify the time value. For example, when the user sets the countdown time, the process is as follows: first select the time unit "second", enter two digits to modify the time value, then select the time unit "minute", enter two digits to modify the time value, and finally select the time unit " Hours", enter two digits to modify the time value, that is, in order to successfully set the countdown time, you usually need to enter the full 6 digits.
也就是说,当前设置时间的方法操作繁琐,影响用户的使用体验。In other words, the current method of setting the time is cumbersome and affects the user experience.
发明内容Summary of the invention
本发明实施例的目的在于提供一种设置时间的方法及装置,以解决现有技术中的设置时间的方法操作繁琐,影响用户的使用体验的问题。An object of the present invention is to provide a method and an apparatus for setting a time to solve the problem that the method of setting time in the prior art is cumbersome and affects the user experience.
为了实现上述的目的,本发明实施例提供一种设置时间的方法,包括:In order to achieve the above object, an embodiment of the present invention provides a method for setting a time, including:
获取用户在压力检测区域上施加压力的压力值;Obtaining a pressure value at which a user applies pressure on the pressure detecting area;
获取用户持续施加压力的按压时间;Obtaining the pressing time of the user to continuously apply pressure;
根据所述压力值和所述按压时间,分别确定时间单位和所述时间单位的时间修正值,并根据所述时间单位和时间修正值设置时间显示区域上的时间。The time unit and the time unit of the time unit are respectively determined according to the pressure value and the pressing time, and the time on the time display area is set according to the time unit and the time correction value.
优选的,所述根据所述压力值和所述按压时间,分别确定时间单位和所述时间单位的时间修正值,并根据所述时间单位和时间修正值设置时间显示区域上的时间的步骤,包括:Preferably, the step of determining a time unit of the time unit and the time unit according to the pressure value and the pressing time, and setting a time on the time display area according to the time unit and the time correction value, include:
对所述获取的压力值进行分析,确定需要设置的时间单位; The obtained pressure value is analyzed to determine a time unit that needs to be set;
根据所述按压时间,确定所述时间单位的时间修正值;Determining a time correction value of the time unit according to the pressing time;
利用所述时间单位的时间修正值修正与所述时间单位对应的时间显示区域上的时间数值。The time value on the time display area corresponding to the time unit is corrected using the time correction value of the time unit.
优选的,所述时间单位包括小时、分钟和秒钟中的一种或多种组合。Preferably, the unit of time comprises one or more combinations of hours, minutes and seconds.
优选的,所述对所述获取的压力值进行分析,确定需要设置的时间单位的步骤,包括:Preferably, the step of analyzing the acquired pressure value to determine a time unit to be set includes:
比较所述获取的压力值与第一压力阈值和第二压力阈值的大小关系,所述第二压力阈值大于所述第一压力阈值;Comparing the obtained pressure value with a magnitude relationship between the first pressure threshold and the second pressure threshold, the second pressure threshold being greater than the first pressure threshold;
当所述获取的压力值小于等于所述第一压力阈值时,确定需要设置的时间单位为秒钟;或者,当所述获取的压力值大于所述第一压力阈值且小于所述第二压力阈值时,确定需要设置的时间单位为分钟;或者,当所述获取的压力值大于等于所述第二压力阈值时,确定需要设置的时间单位为小时。Determining that a time unit that needs to be set is seconds when the acquired pressure value is less than or equal to the first pressure threshold; or, when the acquired pressure value is greater than the first pressure threshold and less than the second pressure At the threshold, it is determined that the time unit to be set is minutes; or, when the acquired pressure value is greater than or equal to the second pressure threshold, it is determined that the time unit to be set is hour.
优选的,所述设置时间的方法还包括:Preferably, the method for setting a time further includes:
对用户施加压力的所述压力检测区域进行判断,得到一判断结果;Determining the pressure detecting area to which the user applies pressure, and obtaining a judgment result;
所述利用所述时间单位的时间修正值修正与所述时间单位对应的时间显示区域上的时间数值的步骤,包括:And the step of modifying the time value on the time display area corresponding to the time unit by using the time correction value of the time unit, including:
在所述判断结果为所述压力检测区域为第一压力检测区域时,利用所述时间单位的时间修正值调高与所述时间单位对应的时间显示区域上的时间数值;或者,在所述判断结果为所述压力检测区域为第二压力检测区域时,利用所述时间单位的时间修正值调低与所述时间单位对应的时间显示区域上的时间数值。When the determination result is that the pressure detection area is the first pressure detection area, the time correction value of the time unit is used to increase the time value on the time display area corresponding to the time unit; or, in the When the result of the determination is that the pressure detection area is the second pressure detection area, the time value on the time display area corresponding to the time unit is lowered by the time correction value of the time unit.
本发明实施例还提供一种设置时间的装置,包括:An embodiment of the present invention further provides an apparatus for setting a time, including:
第一获取模块,设置为获取用户在压力检测区域上施加压力的压力值;a first obtaining module configured to obtain a pressure value of a pressure applied by the user on the pressure detecting area;
第二获取模块,设置为获取用户持续施加压力的按压时间; a second obtaining module, configured to obtain a pressing time for continuously applying pressure by the user;
设置模块,设置为根据所述压力值和所述按压时间,分别确定时间单位和所述时间单位的时间修正值,并根据所述时间单位和时间修正值设置时间显示区域上的时间。The setting module is configured to respectively determine a time unit and a time correction value of the time unit according to the pressure value and the pressing time, and set a time on the time display area according to the time unit and the time correction value.
优选的,所述设置模块包括:Preferably, the setting module comprises:
第一确定单元,设置为对所述获取的压力值进行分析,确定需要设置的时间单位;a first determining unit, configured to analyze the acquired pressure value to determine a time unit that needs to be set;
第二确定单元,设置为根据所述按压时间,确定所述时间单位的时间修正值;a second determining unit, configured to determine a time correction value of the time unit according to the pressing time;
修正单元,设置为利用所述时间单位的时间修正值修正与所述时间单位对应的时间显示区域上的时间数值。The correction unit is configured to correct the time value on the time display area corresponding to the time unit by using the time correction value of the time unit.
优选的,所述时间单位包括小时、分钟和秒钟中的一种或多种组合。Preferably, the unit of time comprises one or more combinations of hours, minutes and seconds.
优选的,所述第一确定单元包括:Preferably, the first determining unit comprises:
比较子单元,设置为比较所述获取的压力值与第一压力阈值和第二压力阈值的大小关系,所述第二压力阈值大于所述第一压力阈值;a comparison subunit, configured to compare a magnitude relationship between the acquired pressure value and a first pressure threshold and a second pressure threshold, the second pressure threshold being greater than the first pressure threshold;
确定子单元,设置为当所述获取的压力值小于等于所述第一压力阈值时,确定需要设置的时间单位为秒钟;或者,当所述获取的压力值大于所述第一压力阈值且小于所述第二压力阈值时,确定需要设置的时间单位为分钟;或者,当所述获取的压力值大于等于所述第二压力阈值时,确定需要设置的时间单位为小时。Determining a subunit, configured to determine that a time unit to be set is seconds when the acquired pressure value is less than or equal to the first pressure threshold; or, when the acquired pressure value is greater than the first pressure threshold and When it is less than the second pressure threshold, it is determined that the time unit to be set is minutes; or, when the acquired pressure value is greater than or equal to the second pressure threshold, it is determined that the time unit to be set is hour.
优选的,所述设置时间的装置还包括:Preferably, the time setting device further includes:
判断模块,设置为对用户施加压力的所述压力检测区域进行判断,得到一判断结果;a determining module, configured to determine the pressure detecting area that applies pressure to the user, to obtain a determination result;
所述修正单元具体设置为在所述判断结果为所述压力检测区域为第一压力检测区域时,利用所述时间单位的时间修正值调高与所述时间单位对应的时间显示区域上的时间数值;或者,在所述判断结果为所述压力检测区域为第二压力检测区域时,利用所述时间单位的时间修正值调低与所 述时间单位对应的时间显示区域上的时间数值。The correction unit is specifically configured to increase the time on the time display area corresponding to the time unit by using the time correction value of the time unit when the determination result is that the pressure detection area is the first pressure detection area. a value; or, when the determination result is that the pressure detection area is the second pressure detection area, use the time correction value of the time unit to lower the value The time value on the time display area corresponding to the time unit.
根据本发明的又一个实施例,还提供了一种存储介质。该存储介质设置为存储用于执行以下步骤的程序代码:According to still another embodiment of the present invention, a storage medium is also provided. The storage medium is arranged to store program code for performing the following steps:
获取用户在压力检测区域上施加压力的压力值;获取用户持续施加压力的按压时间;根据所述压力值和所述按压时间,分别确定时间单位和所述时间单位的时间修正值,并根据所述时间单位和时间修正值设置时间显示区域上的时间。Obtaining a pressure value of a pressure applied by the user on the pressure detecting area; acquiring a pressing time of the user continuously applying the pressure; determining a time unit and a time correction value of the time unit according to the pressure value and the pressing time, respectively, according to the The time unit and time correction value set the time on the time display area.
可选地,存储介质还设置为存储用于执行以下步骤的程序代码:Optionally, the storage medium is further arranged to store program code for performing the following steps:
对所述获取的压力值进行分析,确定需要设置的时间单位;The obtained pressure value is analyzed to determine a time unit that needs to be set;
根据所述按压时间,确定所述时间单位的时间修正值;Determining a time correction value of the time unit according to the pressing time;
利用所述时间单位的时间修正值修正与所述时间单位对应的时间显示区域上的时间数值。The time value on the time display area corresponding to the time unit is corrected using the time correction value of the time unit.
可选地,存储介质还设置为存储用于执行以下步骤的程序代码:Optionally, the storage medium is further arranged to store program code for performing the following steps:
比较所述获取的压力值与第一压力阈值和第二压力阈值的大小关系,所述第二压力阈值大于所述第一压力阈值;Comparing the obtained pressure value with a magnitude relationship between the first pressure threshold and the second pressure threshold, the second pressure threshold being greater than the first pressure threshold;
当所述获取的压力值小于等于所述第一压力阈值时,确定需要设置的时间单位为秒钟;或者,当所述获取的压力值大于所述第一压力阈值且小于所述第二压力阈值时,确定需要设置的时间单位为分钟;或者,当所述获取的压力值大于等于所述第二压力阈值时,确定需要设置的时间单位为小时。Determining that a time unit that needs to be set is seconds when the acquired pressure value is less than or equal to the first pressure threshold; or, when the acquired pressure value is greater than the first pressure threshold and less than the second pressure At the threshold, it is determined that the time unit to be set is minutes; or, when the acquired pressure value is greater than or equal to the second pressure threshold, it is determined that the time unit to be set is hour.
可选地,存储介质还设置为存储用于执行以下步骤的程序代码:Optionally, the storage medium is further arranged to store program code for performing the following steps:
对用户施加压力的所述压力检测区域进行判断,得到一判断结果;Determining the pressure detecting area to which the user applies pressure, and obtaining a judgment result;
所述利用所述时间单位的时间修正值修正与所述时间单位对应的时间显示区域上的时间数值的步骤,包括:And the step of modifying the time value on the time display area corresponding to the time unit by using the time correction value of the time unit, including:
在所述判断结果为所述压力检测区域为第一压力检测区域时,利用所 述时间单位的时间修正值调高与所述时间单位对应的时间显示区域上的时间数值;或者,在所述判断结果为所述压力检测区域为第二压力检测区域时,利用所述时间单位的时间修正值调低与所述时间单位对应的时间显示区域上的时间数值。When the result of the determination is that the pressure detecting area is the first pressure detecting area, The time correction value of the time unit is increased by the time value on the time display area corresponding to the time unit; or, when the determination result is that the pressure detection area is the second pressure detection area, the time unit is utilized The time correction value lowers the time value on the time display area corresponding to the time unit.
通过本发明实施例的上述技术方案,本发明的有益效果在于:Through the above technical solutions of the embodiments of the present invention, the beneficial effects of the present invention are:
本发明实施例的设置时间的方法,通过获取用户在压力检测区域上施加压力的压力值,获取用户持续施加压力的按压时间,根据所述压力值和所述按压时间,分别确定时间单位和所述时间单位的时间修正值,并根据所述时间单位和时间修正值设置时间显示区域上的时间,相比于当前设置时间的方法,能够简化操作过程,仅借助用户在压力检测区域上的按压操作,就能够实现对时间的设置,方便快捷,提升用户的使用体验。The method for setting time according to the embodiment of the present invention acquires the pressing time of the user continuously applying pressure by acquiring the pressure value of the pressure applied by the user on the pressure detecting area, and determines the time unit and the setting according to the pressure value and the pressing time respectively. The time correction value of the time unit is set, and the time on the time display area is set according to the time unit and the time correction value. Compared with the current method of setting the time, the operation process can be simplified, only by the user pressing on the pressure detection area. By operation, it is possible to set the time, which is convenient and quick, and enhances the user experience.
附图说明DRAWINGS
此处所说明的附图用来提供对本发明的进一步理解,构成本申请的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:The drawings described herein are intended to provide a further understanding of the invention, and are intended to be a part of the invention. In the drawing:
图1表示本发明实施例的设置时间的方法的流程图。1 is a flow chart showing a method of setting a time according to an embodiment of the present invention.
图2表示本发明实施例的修正时间显示区域上的时间数值的流程图。Fig. 2 is a flow chart showing the time value on the correction time display area in the embodiment of the present invention.
图3表示本发明具体实施例的设置倒计时的终端界面的示意图。FIG. 3 is a schematic diagram showing a terminal interface for setting a countdown according to an embodiment of the present invention.
图4表示本发明实施例的设置时间的装置的结构示意图。Fig. 4 is a block diagram showing the structure of an apparatus for setting a time according to an embodiment of the present invention.
图5表示本发明实施例的另一设置时间的装置的结构示意图。FIG. 5 is a block diagram showing the structure of another apparatus for setting a time according to an embodiment of the present invention.
具体实施方式detailed description
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范 围。The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is obvious that the described embodiments are a part of the embodiments of the present invention, but not all embodiments. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention. Wai.
本发明实施例提供一种设置时间的方法,参见图1所示,所述设置时间的方法包括:An embodiment of the present invention provides a method for setting a time. Referring to FIG. 1, the method for setting a time includes:
步骤101:获取用户在压力检测区域上施加压力的压力值;Step 101: Acquire a pressure value of a user applying pressure on the pressure detecting area;
步骤102:获取用户持续施加压力的按压时间;Step 102: Acquire a pressing time for the user to continuously apply pressure;
步骤103:根据所述压力值和所述按压时间,分别确定时间单位和所述时间单位的时间修正值,并根据所述时间单位和时间修正值设置时间显示区域上的时间。Step 103: Determine a time unit and a time correction value of the time unit according to the pressure value and the pressing time, and set a time on the time display area according to the time unit and the time correction value.
本发明实施例的设置时间的方法,通过获取用户在压力检测区域上施加压力的压力值,获取用户持续施加压力的按压时间,根据所述压力值和所述按压时间,分别确定时间单位和所述时间单位的时间修正值,并根据所述时间单位和时间修正值设置时间显示区域上的时间,相比于当前设置时间的方法,能够简化操作过程,仅借助用户在压力检测区域上的按压操作,就能够实现对时间的设置,方便快捷,提升用户的使用体验。The method for setting time according to the embodiment of the present invention acquires the pressing time of the user continuously applying pressure by acquiring the pressure value of the pressure applied by the user on the pressure detecting area, and determines the time unit and the setting according to the pressure value and the pressing time respectively. The time correction value of the time unit is set, and the time on the time display area is set according to the time unit and the time correction value. Compared with the current method of setting the time, the operation process can be simplified, only by the user pressing on the pressure detection area. By operation, it is possible to set the time, which is convenient and quick, and enhances the user experience.
其中,所述压力检测区域在终端中的位置是预设的,依终端设置而定,本发明不对其进行限制。The position of the pressure detecting area in the terminal is preset, and is determined according to the terminal setting, which is not limited by the present invention.
通常情况下,时间显示区域上显示的时间可划分为小时、分钟和秒钟,即其中的时间数值对应的时间单位为小时、分钟或秒钟。为了准确设置时间显示区域上的时间,可基于用户施加压力的压力值,确定对应的时间单位,并根据用户持续施加压力的按压时间,确定所述时间单位的时间修正值,以修正与所述时间单位对应的时间显示区域上的时间数值。Normally, the time displayed on the time display area can be divided into hours, minutes, and seconds, that is, the time value corresponding to the time is in hours, minutes, or seconds. In order to accurately set the time on the time display area, the corresponding time unit may be determined based on the pressure value of the pressure applied by the user, and the time correction value of the time unit may be determined according to the pressing time of the user continuously applying the pressure to correct and describe The time corresponding to the time unit displays the time value on the area.
即本发明具体实施例中,参见图2所示,所述步骤103包括:That is, in the specific embodiment of the present invention, referring to FIG. 2, the step 103 includes:
步骤1031:对所述获取的压力值进行分析,确定需要设置的时间单位;Step 1031: Analyze the acquired pressure value to determine a time unit that needs to be set;
步骤1032:根据所述按压时间,确定所述时间单位的时间修正值;Step 1032: Determine a time correction value of the time unit according to the pressing time;
步骤1033:利用所述时间单位的时间修正值修正与所述时间单位对应的时间显示区域上的时间数值。 Step 1033: Correct the time value on the time display area corresponding to the time unit by using the time correction value of the time unit.
其中,为了准确确定所述时间单位的时间修正值,可在终端中预设按压时间和时间修正值的对应关系,这样,在获取用户持续施加压力的按压时间后,就能够确定与所述按压时间对应的时间修正值。In order to accurately determine the time correction value of the time unit, the correspondence between the pressing time and the time correction value may be preset in the terminal, so that after the pressing time of the user continuously applying the pressure is obtained, the pressing may be determined. The time correction value corresponding to the time.
而所述步骤1033修正的时间显示区域上的时间数值,例如是终端中预先设置的初始时间数值,或是在本次修正之前,基于按压时间已设置过的时间数值。也就是说,本发明实施例的设置时间的方法是通过不断修正在时间显示区域上显示的时间数值,来实现对时间的设置。The time value on the time display area corrected in the step 1033 is, for example, an initial time value preset in the terminal, or a time value that has been set based on the pressing time before the current correction. That is to say, the method of setting the time in the embodiment of the present invention achieves the setting of time by continuously correcting the time value displayed on the time display area.
具体的,在设置时间时,本发明实施例中的时间单位包括小时、分钟和秒钟中的一种或多种组合。其中,在时间单位为小时时,对应的时间数值的范围为0-24,在时间单位为分钟时,对应的时间数值的范围为0-60,在时间单位为秒钟时,对应的时间数值的范围为0-60。Specifically, when setting the time, the time unit in the embodiment of the present invention includes one or more combinations of hours, minutes, and seconds. Wherein, when the time unit is hour, the corresponding time value ranges from 0 to 24. When the time unit is minute, the corresponding time value ranges from 0 to 60, and when the time unit is seconds, the corresponding time value The range is 0-60.
本发明实施例中,为了确定需要设置的时间单位,可在终端中预设第一压力阈值和第二压力阈值,并与已获取的压力值进行比较,以根据比较结果得到需要设置的时间单位。In the embodiment of the present invention, in order to determine the time unit that needs to be set, the first pressure threshold and the second pressure threshold may be preset in the terminal, and compared with the acquired pressure value, to obtain a time unit that needs to be set according to the comparison result. .
具体的,本发明实施例中,所述步骤1031包括:Specifically, in the embodiment of the present invention, the step 1031 includes:
比较所述获取的压力值与第一压力阈值和第二压力阈值的大小关系,所述第二压力阈值大于所述第一压力阈值;Comparing the obtained pressure value with a magnitude relationship between the first pressure threshold and the second pressure threshold, the second pressure threshold being greater than the first pressure threshold;
当所述获取的压力值小于等于所述第一压力阈值时,确定需要设置的时间单位为秒钟;或者,当所述获取的压力值大于所述第一压力阈值且小于所述第二压力阈值时,确定需要设置的时间单位为分钟;或者,当所述获取的压力值大于等于所述第二压力阈值时,确定需要设置的时间单位为小时。Determining that a time unit that needs to be set is seconds when the acquired pressure value is less than or equal to the first pressure threshold; or, when the acquired pressure value is greater than the first pressure threshold and less than the second pressure At the threshold, it is determined that the time unit to be set is minutes; or, when the acquired pressure value is greater than or equal to the second pressure threshold, it is determined that the time unit to be set is hour.
这样,通过预设第一压力阈值和第二压力阈值,并与已获取的压力值进行比较,可准确确定出需要设置的时间单位,从而实现对单个时间单位的时间数值的修正。In this way, by presetting the first pressure threshold and the second pressure threshold and comparing with the acquired pressure values, the time unit that needs to be set can be accurately determined, thereby realizing the correction of the time value of the single time unit.
其中,在对时间显示区域上的时间数值进行修正时,修正方式一般为调高所述时间数值或调低所述时间数值。所以,本发明实施例中,基于修 正需求,可在终端上预设两个不同的压力检测区域,例如图3中所示的第一压力检测区域A和第二压力检测区域B,且在用户按压所述第一压力检测区域A时,就调高所述时间数值,在用户按压所述第二压力检测区域B时,就调低所述时间数值。Wherein, when the time value on the time display area is corrected, the correction mode generally increases the time value or lowers the time value. Therefore, in the embodiment of the present invention, based on repair As required, two different pressure detection areas, such as the first pressure detection area A and the second pressure detection area B shown in FIG. 3, may be preset on the terminal, and the user presses the first pressure detection area A The time value is increased, and when the user presses the second pressure detecting area B, the time value is lowered.
也就是说,本发明实施例的设置时间的方法还包括:That is, the method for setting time in the embodiment of the present invention further includes:
对用户施加压力的所述压力检测区域进行判断,得到一判断结果;Determining the pressure detecting area to which the user applies pressure, and obtaining a judgment result;
而所述步骤1033包括:And the step 1033 includes:
在所述判断结果为所述压力检测区域为第一压力检测区域时,利用所述时间单位的时间修正值调高与所述时间单位对应的时间显示区域上的时间数值;或者,在所述判断结果为所述压力检测区域为第二压力检测区域时,利用所述时间单位的时间修正值调低与所述时间单位对应的时间显示区域上的时间数值。When the determination result is that the pressure detection area is the first pressure detection area, the time correction value of the time unit is used to increase the time value on the time display area corresponding to the time unit; or, in the When the result of the determination is that the pressure detection area is the second pressure detection area, the time value on the time display area corresponding to the time unit is lowered by the time correction value of the time unit.
下面,通过设置倒计时的应用场景对本发明具体实施例进行详细说明。Hereinafter, a specific embodiment of the present invention will be described in detail by setting an application scenario of a countdown.
参见图3所示,为利用本发明设置倒计时的终端界面的示意图。在图3的终端界面中,预设有第一压力检测区域A(简称:区域A)、第二压力检测区域B(简称:区域B)和时间显示区域C(简称:区域C)。且在用户按压区域A时,可调高时间数值,在用户按压区域B时,可调低时间数值,所述区域C用于显示时间数值。另外,终端中预设有第一压力阈值F1和第二压力阈值F2,且F1<F2。Referring to Figure 3, a schematic diagram of a terminal interface for setting a countdown using the present invention. In the terminal interface of FIG. 3, a first pressure detecting area A (abbreviation: area A), a second pressure detecting area B (abbreviation: area B), and a time display area C (abbreviation: area C) are preliminarily provided. And when the user presses the area A, the time value can be adjusted. When the user presses the area B, the time value can be adjusted, and the area C is used to display the time value. In addition, the first pressure threshold F1 and the second pressure threshold F2 are pre-set in the terminal, and F1 < F2.
例如,在初始时刻,区域C上显示的时间数值为000000,即00小时00分钟00秒钟。如果用户要设置的倒计时为4小时20分钟18秒钟,就可采用如下设置时间的过程:For example, at the initial moment, the time value displayed on area C is 000000, which is 00 hours 00 minutes 00 seconds. If the user wants to set the countdown to 4 hours, 20 minutes and 18 seconds, the following process can be used to set the time:
首先,设置小时,将00修正为04(即4),用户先按压区域A,施加压力的压力值F要大于等于F2,且持续一定的按压时间t1,使与该按压时间t1对应的小时的时间修正值为4;如果因用户误操作,按压时间过长,例如对应的小时的时间修正值为5,区域C中的与小时对应的区域上会显 示05,为了得到正确的4小时,用户可再按压区域B,施加压力的压力值F要大于等于F2,且持续一定的按压时间t2,使与该按压时间t2对应的小时的时间修正值为1,以调低区域C中的与小时对应的区域上的时间数值05,使其变为04;First, set the hour to correct 00 to 04 (ie 4), the user first presses the area A, the pressure value F of the applied pressure is greater than or equal to F2, and continues for a certain pressing time t1, so that the hour corresponding to the pressing time t1 The time correction value is 4; if the user presses the time too long, for example, the time correction value of the corresponding hour is 5, and the area corresponding to the hour in the area C is displayed. In order to obtain the correct 4 hours, the user can press the area B again, and the pressure value F of the applied pressure is greater than or equal to F2, and continues for a certain pressing time t2, so that the time correction value of the hour corresponding to the pressing time t2 is 1, to lower the time value 05 on the area corresponding to the hour in the area C, so that it becomes 04;
其次,设置分钟,将00修正为20,用户先按压区域A,施加压力的压力值F要小于F2且大于F1,且持续一定的按压时间t3,使与该按压时间t3对应的分钟的时间修正值为20;如果因用户误操作,按压时间过长,例如对应的分钟的时间修正值为25,区域C中的与分钟对应的区域上会显示25,为了得到正确的20分钟,用户可再按压区域B,施加压力的压力值F要小于F2且大于F1,且持续一定的按压时间t4,使与该按压时间t4对应的分钟的时间修正值为5,以调低区域C中的与分钟对应的区域上的时间数值25,使其变为20;Next, set the minute, change 00 to 20, the user first presses the area A, the pressure value F of the applied pressure is smaller than F2 and larger than F1, and continues for a certain pressing time t3, and the time correction of the minute corresponding to the pressing time t3 is corrected. The value is 20; if the user presses the time too long, for example, the time correction value of the corresponding minute is 25, and the area corresponding to the minute in the area C is displayed at 25, in order to get the correct 20 minutes, the user can Pressing the area B, the pressure value F of the applied pressure is less than F2 and greater than F1, and continues for a certain pressing time t4, so that the time correction value of the minute corresponding to the pressing time t4 is 5, to lower the minute and the minute in the area C. The time value 25 on the corresponding area is changed to 20;
最后,设置秒钟,将00修正为18,用户先按压区域A,施加压力的压力值F要小于等于F1,且持续一定的按压时间t5,使与该按压时间t5对应的秒钟的时间修正值为18;如果因用户误操作,按压时间过长,例如秒钟的时间修正值为24,区域C中的与秒钟对应的区域上会显示24,为了得到正确的18秒钟,用户可再按压区域B,施加压力的压力值F要小于等于F1,且持续一定的按压时间t6,使与该按压时间t6对应的秒钟的时间修正值为6,以调低区域C中的与秒钟对应的区域上的时间数值24,使其变为18。Finally, set the second to change 00 to 18, the user first presses the area A, the pressure value F of the applied pressure is less than or equal to F1, and continues for a certain pressing time t5, so that the time correction corresponding to the pressing time t5 is corrected. The value is 18; if the user presses the time too long, for example, the time correction value of the second is 24, the area corresponding to the second in the area C is displayed 24, in order to get the correct 18 seconds, the user can Pressing the area B again, the pressure value F of the applied pressure is less than or equal to F1, and continues for a certain pressing time t6, so that the time correction value of the second corresponding to the pressing time t6 is 6 to lower the seconds in the area C. The time value 24 on the area corresponding to the clock is changed to 18.
这样,就能够成功将终端中的倒计时设置为4小时20分钟18秒钟。In this way, the countdown in the terminal can be successfully set to 4 hours, 20 minutes, and 18 seconds.
参见图4所示,本发明实施例还提供一种设置时间的装置,与图1所示的设置时间的方法相对应,所述设置时间的装置包括:Referring to FIG. 4, an embodiment of the present invention further provides a device for setting a time, which corresponds to the method for setting a time shown in FIG. 1. The device for setting a time includes:
第一获取模块41,设置为获取用户在压力检测区域上施加压力的压力值;The first obtaining module 41 is configured to acquire a pressure value of a pressure applied by the user on the pressure detecting area;
第二获取模块42,设置为获取用户持续施加压力的按压时间;The second obtaining module 42 is configured to acquire a pressing time for continuously applying pressure by the user;
设置模块43,设置为根据所述压力值和所述按压时间,分别确定时间 单位和所述时间单位的时间修正值,并根据所述时间单位和时间修正值设置时间显示区域上的时间。The setting module 43 is configured to determine the time according to the pressure value and the pressing time respectively The time correction value of the unit and the time unit, and setting the time on the time display area according to the time unit and the time correction value.
其中,参见图5所示,本发明实施例中,所述设置模块43包括:As shown in FIG. 5, in the embodiment of the present invention, the setting module 43 includes:
第一确定单元431,设置为对所述获取的压力值进行分析,确定需要设置的时间单位;The first determining unit 431 is configured to analyze the acquired pressure value to determine a time unit that needs to be set;
第二确定单元432,设置为根据所述按压时间,确定所述时间单位的时间修正值;The second determining unit 432 is configured to determine a time correction value of the time unit according to the pressing time;
修正单元433,设置为利用所述时间单位的时间修正值修正与所述时间单位对应的时间显示区域上的时间数值。The correcting unit 433 is configured to correct the time value on the time display area corresponding to the time unit by using the time correction value of the time unit.
具体的,所述时间单位包括小时、分钟和秒钟中的一种或多种组合。Specifically, the time unit includes one or more combinations of hours, minutes, and seconds.
而所述第一确定单元431包括:The first determining unit 431 includes:
比较子单元,设置为比较所述获取的压力值与第一压力阈值和第二压力阈值的大小关系,所述第二压力阈值大于所述第一压力阈值;a comparison subunit, configured to compare a magnitude relationship between the acquired pressure value and a first pressure threshold and a second pressure threshold, the second pressure threshold being greater than the first pressure threshold;
确定子单元,设置为当所述获取的压力值小于等于所述第一压力阈值时,确定需要设置的时间单位为秒钟;或者,当所述获取的压力值大于所述第一压力阈值且小于所述第二压力阈值时,确定需要设置的时间单位为分钟;或者,当所述获取的压力值大于等于所述第二压力阈值时,确定需要设置的时间单位为小时。Determining a subunit, configured to determine that a time unit to be set is seconds when the acquired pressure value is less than or equal to the first pressure threshold; or, when the acquired pressure value is greater than the first pressure threshold and When it is less than the second pressure threshold, it is determined that the time unit to be set is minutes; or, when the acquired pressure value is greater than or equal to the second pressure threshold, it is determined that the time unit to be set is hour.
本发明实施例中,所述设置时间的装置还包括:In the embodiment of the present invention, the device for setting a time further includes:
判断模块,设置为对用户施加压力的所述压力检测区域进行判断,得到一判断结果;a determining module, configured to determine the pressure detecting area that applies pressure to the user, to obtain a determination result;
而所述修正单元具体设置为在所述判断结果为所述压力检测区域为第一压力检测区域时,利用所述时间单位的时间修正值调高与所述时间单位对应的时间显示区域上的时间数值;或者,在所述判断结果为所述压力检测区域为第二压力检测区域时,利用所述时间单位的时间修正值调低与所述时间单位对应的时间显示区域上的时间数值。 And the correction unit is specifically configured to: when the determination result is that the pressure detection area is the first pressure detection area, use a time correction value of the time unit to increase the time display area corresponding to the time unit The time value; or, when the determination result is that the pressure detection area is the second pressure detection area, use the time correction value of the time unit to decrease the time value on the time display area corresponding to the time unit.
本发明实施例的设置时间的装置,通过获取用户在压力检测区域上施加压力的压力值,获取用户持续施加压力的按压时间,根据所述压力值和所述按压时间,分别确定时间单位和所述时间单位的时间修正值,并根据所述时间单位和时间修正值设置时间显示区域上的时间,相比于当前设置时间的方法,能够简化操作过程,仅借助用户在压力检测区域上的按压操作,就能够实现对时间的设置,方便快捷,提升用户的使用体验。The device for setting time according to the embodiment of the present invention acquires the pressing time of the user to continuously apply pressure by acquiring the pressure value of the pressure applied by the user on the pressure detecting area, and determines the time unit and the respectively according to the pressure value and the pressing time. The time correction value of the time unit is set, and the time on the time display area is set according to the time unit and the time correction value. Compared with the current method of setting the time, the operation process can be simplified, only by the user pressing on the pressure detection area. By operation, it is possible to set the time, which is convenient and quick, and enhances the user experience.
以上所述仅是本发明的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明原理的前提下,还可以做出若干改进和润饰,这些改进和润饰也应视为本发明的保护范围。The above description is only a preferred embodiment of the present invention, and it should be noted that those skilled in the art can also make several improvements and retouchings without departing from the principles of the present invention. It should be considered as the scope of protection of the present invention.
可选地,本实施例中的具体示例可以参考上述实施例及可选实施方式中所描述的示例,本实施例在此不再赘述。For example, the specific examples in this embodiment may refer to the examples described in the foregoing embodiments and the optional embodiments, and details are not described herein again.
显然,本领域的技术人员应该明白,上述的本发明的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本发明不限制于任何特定的硬件和软件结合。It will be apparent to those skilled in the art that the various modules or steps of the present invention described above can be implemented by a general-purpose computing device that can be centralized on a single computing device or distributed across a network of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein. The steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps thereof are fabricated as a single integrated circuit module. Thus, the invention is not limited to any specific combination of hardware and software.
以上所述仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above description is only the preferred embodiment of the present invention, and is not intended to limit the present invention, and various modifications and changes can be made to the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and scope of the present invention are intended to be included within the scope of the present invention.
工业实用性Industrial applicability
在本发明实施例的设置时间的过程中,通过获取用户在压力检测区域上施加压力的压力值,获取用户持续施加压力的按压时间,根据所述压力 值和所述按压时间,分别确定时间单位和所述时间单位的时间修正值,并根据所述时间单位和时间修正值设置时间显示区域上的时间,相比于当前设置时间的方法,能够简化操作过程,仅借助用户在压力检测区域上的按压操作,就能够实现对时间的设置,方便快捷,提升用户的使用体验。 In the process of setting the time of the embodiment of the present invention, the pressing time of the user continuously applying pressure is obtained by acquiring the pressure value of the pressure applied by the user on the pressure detecting area, according to the pressure The value and the pressing time respectively determine a time unit and a time correction value of the time unit, and set a time on the time display area according to the time unit and the time correction value, which can be simplified compared to the current setting time method During the operation process, the setting of the time can be realized only by the pressing operation of the user on the pressure detecting area, which is convenient and quick, and improves the user experience.

Claims (10)

  1. 一种设置时间的方法,包括:A method of setting time, including:
    获取用户在压力检测区域上施加压力的压力值;Obtaining a pressure value at which a user applies pressure on the pressure detecting area;
    获取用户持续施加压力的按压时间;Obtaining the pressing time of the user to continuously apply pressure;
    根据所述压力值和所述按压时间,分别确定时间单位和所述时间单位的时间修正值,并根据所述时间单位和时间修正值设置时间显示区域上的时间。The time unit and the time unit of the time unit are respectively determined according to the pressure value and the pressing time, and the time on the time display area is set according to the time unit and the time correction value.
  2. 根据权利要求1所述的设置时间的方法,其中,所述根据所述压力值和所述按压时间,分别确定时间单位和所述时间单位的时间修正值,并根据所述时间单位和时间修正值设置时间显示区域上的时间的步骤,包括:The method of setting a time according to claim 1, wherein said determining a time unit and a time correction value of said time unit based on said pressure value and said pressing time, respectively, and correcting according to said time unit and time The value sets the time to display the time on the area, including:
    对所述获取的压力值进行分析,确定需要设置的时间单位;The obtained pressure value is analyzed to determine a time unit that needs to be set;
    根据所述按压时间,确定所述时间单位的时间修正值;Determining a time correction value of the time unit according to the pressing time;
    利用所述时间单位的时间修正值修正与所述时间单位对应的时间显示区域上的时间数值。The time value on the time display area corresponding to the time unit is corrected using the time correction value of the time unit.
  3. 根据权利要求2所述的设置时间的方法,其中,所述时间单位包括小时、分钟和秒钟中的一种或多种组合。The method of setting a time according to claim 2, wherein the unit of time comprises one or more combinations of hours, minutes, and seconds.
  4. 根据权利要求3所述的设置时间的方法,其中,所述对所述获取的压力值进行分析,确定需要设置的时间单位的步骤,包括:The method of setting a time according to claim 3, wherein the step of analyzing the acquired pressure value to determine a time unit to be set includes:
    比较所述获取的压力值与第一压力阈值和第二压力阈值的大小关系,所述第二压力阈值大于所述第一压力阈值;Comparing the obtained pressure value with a magnitude relationship between the first pressure threshold and the second pressure threshold, the second pressure threshold being greater than the first pressure threshold;
    当所述获取的压力值小于等于所述第一压力阈值时,确定需要设置的时间单位为秒钟;或者,当所述获取的压力值大于所述第一压力阈值且小于所述第二压力阈值时,确定需要设置的时间单位为分钟;或者,当所述获取的压力值大于等于所述第二压力阈值时,确定需要设置的时间单位为小时。 Determining that a time unit that needs to be set is seconds when the acquired pressure value is less than or equal to the first pressure threshold; or, when the acquired pressure value is greater than the first pressure threshold and less than the second pressure At the threshold, it is determined that the time unit to be set is minutes; or, when the acquired pressure value is greater than or equal to the second pressure threshold, it is determined that the time unit to be set is hour.
  5. 根据权利要求2所述的设置时间的方法,其中,所述设置时间的方法还包括:The method of setting a time according to claim 2, wherein the method of setting a time further comprises:
    对用户施加压力的所述压力检测区域进行判断,得到一判断结果;Determining the pressure detecting area to which the user applies pressure, and obtaining a judgment result;
    所述利用所述时间单位的时间修正值修正与所述时间单位对应的时间显示区域上的时间数值的步骤,包括:And the step of modifying the time value on the time display area corresponding to the time unit by using the time correction value of the time unit, including:
    在所述判断结果为所述压力检测区域为第一压力检测区域时,利用所述时间单位的时间修正值调高与所述时间单位对应的时间显示区域上的时间数值;或者,在所述判断结果为所述压力检测区域为第二压力检测区域时,利用所述时间单位的时间修正值调低与所述时间单位对应的时间显示区域上的时间数值。When the determination result is that the pressure detection area is the first pressure detection area, the time correction value of the time unit is used to increase the time value on the time display area corresponding to the time unit; or, in the When the result of the determination is that the pressure detection area is the second pressure detection area, the time value on the time display area corresponding to the time unit is lowered by the time correction value of the time unit.
  6. 一种设置时间的装置,包括:A device for setting a time, comprising:
    第一获取模块,设置为获取用户在压力检测区域上施加压力的压力值;a first obtaining module configured to obtain a pressure value of a pressure applied by the user on the pressure detecting area;
    第二获取模块,设置为获取用户持续施加压力的按压时间;a second obtaining module, configured to obtain a pressing time for continuously applying pressure by the user;
    设置模块,设置为根据所述压力值和所述按压时间,分别确定时间单位和所述时间单位的时间修正值,并根据所述时间单位和时间修正值设置时间显示区域上的时间。The setting module is configured to respectively determine a time unit and a time correction value of the time unit according to the pressure value and the pressing time, and set a time on the time display area according to the time unit and the time correction value.
  7. 根据权利要求6所述的设置时间的装置,其中,所述设置模块包括:The time setting device of claim 6, wherein the setting module comprises:
    第一确定单元,设置为对所述获取的压力值进行分析,确定需要设置的时间单位;a first determining unit, configured to analyze the acquired pressure value to determine a time unit that needs to be set;
    第二确定单元,设置为根据所述按压时间,确定所述时间单位的时间修正值;a second determining unit, configured to determine a time correction value of the time unit according to the pressing time;
    修正单元,设置为利用所述时间单位的时间修正值修正与所述时间单位对应的时间显示区域上的时间数值。 The correction unit is configured to correct the time value on the time display area corresponding to the time unit by using the time correction value of the time unit.
  8. 根据权利要求7所述的设置时间的装置,其中,所述时间单位包括小时、分钟和秒钟中的一种或多种组合。The time setting device of claim 7, wherein the time unit comprises one or more combinations of hours, minutes, and seconds.
  9. 根据权利要求8所述的设置时间的装置,其中,所述第一确定单元包括:The time setting device of claim 8, wherein the first determining unit comprises:
    比较子单元,设置为比较所述获取的压力值与第一压力阈值和第二压力阈值的大小关系,所述第二压力阈值大于所述第一压力阈值;a comparison subunit, configured to compare a magnitude relationship between the acquired pressure value and a first pressure threshold and a second pressure threshold, the second pressure threshold being greater than the first pressure threshold;
    确定子单元,设置为当所述获取的压力值小于等于所述第一压力阈值时,确定需要设置的时间单位为秒钟;或者,当所述获取的压力值大于所述第一压力阈值且小于所述第二压力阈值时,确定需要设置的时间单位为分钟;或者,当所述获取的压力值大于等于所述第二压力阈值时,确定需要设置的时间单位为小时。Determining a subunit, configured to determine that a time unit to be set is seconds when the acquired pressure value is less than or equal to the first pressure threshold; or, when the acquired pressure value is greater than the first pressure threshold and When it is less than the second pressure threshold, it is determined that the time unit to be set is minutes; or, when the acquired pressure value is greater than or equal to the second pressure threshold, it is determined that the time unit to be set is hour.
  10. 根据权利要求7所述的设置时间的装置,其中,所述设置时间的装置还包括:The time setting device of claim 7, wherein the time setting device further comprises:
    判断模块,设置为对用户施加压力的所述压力检测区域进行判断,得到一判断结果;a determining module, configured to determine the pressure detecting area that applies pressure to the user, to obtain a determination result;
    所述修正单元具体设置为在所述判断结果为所述压力检测区域为第一压力检测区域时,利用所述时间单位的时间修正值调高与所述时间单位对应的时间显示区域上的时间数值;或者,在所述判断结果为所述压力检测区域为第二压力检测区域时,利用所述时间单位的时间修正值调低与所述时间单位对应的时间显示区域上的时间数值。 The correction unit is specifically configured to increase the time on the time display area corresponding to the time unit by using the time correction value of the time unit when the determination result is that the pressure detection area is the first pressure detection area. Or, when the determination result is that the pressure detection area is the second pressure detection area, use the time correction value of the time unit to decrease the time value on the time display area corresponding to the time unit.
PCT/CN2016/100141 2016-03-18 2016-09-26 Method and device for setting time WO2017156997A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610156011.8 2016-03-18
CN201610156011.8A CN107203317A (en) 2016-03-18 2016-03-18 A kind of method and device of setting time

Publications (1)

Publication Number Publication Date
WO2017156997A1 true WO2017156997A1 (en) 2017-09-21

Family

ID=59850084

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/100141 WO2017156997A1 (en) 2016-03-18 2016-09-26 Method and device for setting time

Country Status (2)

Country Link
CN (1) CN107203317A (en)
WO (1) WO2017156997A1 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110063248A1 (en) * 2009-09-14 2011-03-17 Samsung Electronics Co. Ltd. Pressure-sensitive degree control method and system for touchscreen-enabled mobile terminal
CN103793160A (en) * 2012-10-29 2014-05-14 Lg电子株式会社 Mobile terminal
CN105068738A (en) * 2015-07-28 2015-11-18 广东欧珀移动通信有限公司 Control method for smartwatch and smartwatch
CN105117060A (en) * 2015-08-27 2015-12-02 广东欧珀移动通信有限公司 Screen brightness adjustment method and user terminal
CN105141840A (en) * 2015-08-24 2015-12-09 联想(北京)有限公司 Information processing method and electronic device

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100498839B1 (en) * 2002-11-26 2005-07-04 삼성전자주식회사 Method for adjusting time of analog watch of analog watch built-in terminal and apparatus adopting the method
JP5157969B2 (en) * 2009-03-09 2013-03-06 ソニー株式会社 Information processing apparatus, threshold setting method and program thereof
CN105227760A (en) * 2015-08-27 2016-01-06 广东欧珀移动通信有限公司 A kind of alarm clock setting method and terminal
CN105068721B (en) * 2015-08-27 2019-03-15 Oppo广东移动通信有限公司 A kind of actions menu display methods and terminal
CN105183278B (en) * 2015-08-27 2018-03-02 广东欧珀移动通信有限公司 The method to set up and device of a kind of terminal calendar

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110063248A1 (en) * 2009-09-14 2011-03-17 Samsung Electronics Co. Ltd. Pressure-sensitive degree control method and system for touchscreen-enabled mobile terminal
CN103793160A (en) * 2012-10-29 2014-05-14 Lg电子株式会社 Mobile terminal
CN105068738A (en) * 2015-07-28 2015-11-18 广东欧珀移动通信有限公司 Control method for smartwatch and smartwatch
CN105141840A (en) * 2015-08-24 2015-12-09 联想(北京)有限公司 Information processing method and electronic device
CN105117060A (en) * 2015-08-27 2015-12-02 广东欧珀移动通信有限公司 Screen brightness adjustment method and user terminal

Also Published As

Publication number Publication date
CN107203317A (en) 2017-09-26

Similar Documents

Publication Publication Date Title
CN108255653B (en) Product testing method and terminal thereof
US10379732B2 (en) Method for adjusting screen brightness and user terminal
US9367675B2 (en) Method for verifying and calibrating time
EP3334127A1 (en) Message pushing method and apparatus thereof
US20170371773A1 (en) Optimizing Execution Order of System Interval Dependent Test Cases
WO2020147195A1 (en) Method and device for controlling brightness of display panel, storage medium, and processor
US20200379748A1 (en) Upgrading method and apparatus
WO2019200801A1 (en) Insurance policy distribution method and device, computer device and storage medium
US10192091B2 (en) Fingerprint sensor apparatus and a method for controlling the fingerprint sensor apparatus
CN105390088B (en) Backlight control method and electronic equipment
WO2017107737A1 (en) Method, apparatus and device for adjusting screen turn-off time of terminal, and computer storage media
CN108830190A (en) A kind of display equipment and its control method
US11054947B2 (en) Key reference updating method and module, and terminal device
WO2019061865A1 (en) Method for correcting array microphone, device, equipment and storage medium
CN110602380A (en) Video shooting method, device, equipment and medium based on ambient light detection
US20200135156A1 (en) Method and apparatus for correcting delay between accompaniment audio and unaccompanied audio, and storage medium
WO2017156997A1 (en) Method and device for setting time
CN109710510B (en) Code submitting method, device, equipment and readable storage medium
CN108075876B (en) Time calibration method, device and system
CN105205036B (en) A kind of method and electronic device of Auto-writing information
JP2018190324A (en) Comparison program, comparison device and comparison method
CN111397738B (en) Infrared image correction method and device, electronic equipment and readable storage medium
TWI554768B (en) Logic analyzer calibration method
CN104375696B (en) The apparatus and method of touch screen induction value self-correcting
US20170010696A1 (en) Input device adaptable to use habit and adapting method therefor

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE

121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16894156

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 16894156

Country of ref document: EP

Kind code of ref document: A1