CN114356183A - Time input method and device, electronic equipment and storage equipment - Google Patents
Time input method and device, electronic equipment and storage equipment Download PDFInfo
- Publication number
- CN114356183A CN114356183A CN202111667041.2A CN202111667041A CN114356183A CN 114356183 A CN114356183 A CN 114356183A CN 202111667041 A CN202111667041 A CN 202111667041A CN 114356183 A CN114356183 A CN 114356183A
- Authority
- CN
- China
- Prior art keywords
- time
- target
- input
- time point
- plug
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 49
- 238000011112 process operation Methods 0.000 claims abstract description 8
- 230000007704 transition Effects 0.000 description 12
- 238000010586 diagram Methods 0.000 description 8
- 230000008859 change Effects 0.000 description 7
- 230000000694 effects Effects 0.000 description 7
- 230000003287 optical effect Effects 0.000 description 6
- 230000008569 process Effects 0.000 description 5
- 230000006870 function Effects 0.000 description 4
- 238000004590 computer program Methods 0.000 description 3
- 239000013307 optical fiber Substances 0.000 description 2
- 230000002093 peripheral effect Effects 0.000 description 2
- 230000000644 propagated effect Effects 0.000 description 2
- 230000001960 triggered effect Effects 0.000 description 2
- 238000003491 array Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 238000004883 computer application Methods 0.000 description 1
- 238000003825 pressing Methods 0.000 description 1
- 230000008707 rearrangement Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Landscapes
- User Interface Of Digital Computer (AREA)
Abstract
The embodiment of the invention discloses a time input method, a time input device, electronic equipment and storage equipment, wherein the method comprises the following steps: receiving time click in-process operation input based on a time display area, and displaying a target time point corresponding to the time click in-process operation; receiving an input plug-in triggering operation used for displaying a time plug-in, and displaying a plug-in entry interface of the time plug-in, wherein the plug-in entry interface displays a time span entry item; receiving target time span information input aiming at the time span entry item, and determining a target input time period according to the target time point and the target time span information. According to the technical scheme of the embodiment of the invention, the target input time period can be accurately and quickly input in the time display area only by selecting the target time point without repeated searching by a user in a mode of determining the selected target time point and inputting the target time span information in the time plug-in.
Description
Technical Field
The embodiment of the invention relates to the technical field of computer application, in particular to a time input method and device, electronic equipment and storage equipment.
Background
At present, in an actual service scenario, a situation of querying service information based on time is often encountered. For example, business data over a period of time is queried.
The selection mode of the time period provided by the related art is often to select two time points of the time period by searching the calendar, and the operation convenience is poor. In addition, in this way of selecting a time period, two time points of the time period need to be defined first when selecting a time period. If only the time length and one of the time points are known, the user is required to calculate the other time point by himself, and the calculation and the searching process are troublesome and prone to errors.
Disclosure of Invention
The embodiment of the invention provides a time input method and device, electronic equipment and storage equipment, and aims to accurately and quickly locate a target input time period in a time display area.
In a first aspect, an embodiment of the present invention provides a time input method, where the method includes:
receiving time click in-process operation input based on a time display area, and displaying a target time point corresponding to the time click in-process operation;
receiving an input plug-in triggering operation used for displaying a time plug-in, and displaying a plug-in entry interface of the time plug-in, wherein the plug-in entry interface displays a time span entry item;
receiving target time span information input aiming at the time span entry item, and determining a target input time period according to the target time point and the target time span information.
In a second aspect, an embodiment of the present invention further provides a time input device, where the time input device includes:
the target time point display module is used for receiving time point selection operation input based on the time display area and displaying a target time point corresponding to the time point selection operation;
the plug-in input interface display module is used for receiving an input plug-in triggering operation for displaying a time plug-in and displaying a plug-in input interface of the time plug-in, wherein the plug-in input interface displays a time span input item;
and the target input time period determining module is used for receiving target time span information input aiming at the time span entry and determining a target input time period according to the target time point and the target time span information.
In a third aspect, an embodiment of the present invention further provides an electronic device, where the electronic device includes:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the time input methods provided by any of the embodiments of the invention.
In a fourth aspect, the embodiments of the present invention further provide a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the time input method provided in any embodiment of the present invention.
According to the technical scheme of the embodiment of the invention, the target time point corresponding to the time click operation is displayed by receiving the time click operation input based on the time display area, and the target time point is input in a mode of selecting the time point in the time display area, so that the operation is simple and convenient; receiving an input plug-in triggering operation for displaying a time plug-in, and displaying a plug-in entry interface of the time plug-in, wherein the plug-in entry interface displays a time span entry item, so that the time plug-in capable of entering a time span is provided, and the quick selection of a time period is facilitated; the target time span information input aiming at the time span entry item is received, the target input time period is determined according to the target time point and the target time span information, the target input time period can be calculated and determined automatically, the problems that the step of determining the target input time period is complex and the accuracy is low are solved, the effect that the target input time period can be input accurately and quickly in the time display area only by selecting the target time point without being searched for many times by a user is achieved.
Drawings
In order to more clearly illustrate the technical solutions of the exemplary embodiments of the present invention, a brief description is given below of the drawings used in describing the embodiments. It should be clear that the described figures are only views of some of the embodiments of the invention to be described, not all, and that for a person skilled in the art, other figures can be derived from these figures without inventive effort.
Fig. 1 is a schematic flowchart of a time input method according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of a time input method according to a second embodiment of the present invention;
fig. 3 is a schematic flowchart of a time input method according to a third embodiment of the present invention;
FIG. 4 is a schematic diagram of a plug-in entry interface of a time plug-in provided by the fourth embodiment of the present invention;
fig. 5 is a schematic flowchart of a time input method according to a fourth embodiment of the present invention;
fig. 6 is a schematic structural diagram of a time input device according to a fifth embodiment of the present invention;
fig. 7 is a schematic structural diagram of an electronic device according to a sixth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
It should be further noted that, for the convenience of description, only some but not all of the relevant aspects of the present invention are shown in the drawings. Before discussing exemplary embodiments in more detail, it should be noted that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart may describe the operations (or steps) as a sequential process, many of the operations can be performed in parallel, concurrently or simultaneously. In addition, the order of the operations may be re-arranged. The process may be terminated when its operations are completed, but may have additional steps not included in the figure. The processes may correspond to methods, functions, procedures, subroutines, and the like.
Example one
Fig. 1 is a flowchart of a time input method according to an embodiment of the present invention, where the embodiment is applicable to a case where a target time zone is quickly located by a time plug-in, the method may be executed by a time input device, the time input device may be implemented by software and/or hardware, and may be configured in a terminal and/or a server to implement the time input method according to the embodiment of the present invention.
As shown in fig. 1, the method of the embodiment may specifically include:
s110, receiving time point selection operation input based on the time display area, and displaying a target time point corresponding to the time point selection operation.
The time display area may be a display area on which time information such as specific date and week is displayed. The time presentation area may be displayed on an interface of the target application. The time presentation area may be presented in the form of a calendar. The default presentation time of the time presentation area may be the current time of the system used to display the time presentation area. The time shown by the time showing area may be in units of months, weeks, or days. Illustratively, the time presentation area may present time information for a single month. In order to conveniently select the time interval with a large time span, the time display area can simultaneously display the time information of two months.
For example, the time presentation area may present a bi-month mode of the current month and the previous month of the current month in which the target time point is located, or a bi-month mode of the current month and the next month of the current month in which the target time point is located. Specifically, if the current month at which the target time point is located is 11 months, the time display area may be in a 11-month single-month mode, the time display area may also be in a 10-11-month double-month mode, or in a 11-12-month double-month mode, it should be noted that the time information displayed in the time display area, the layout and the style of the time display area, and the like may be set in a user-defined manner according to a specific use scenario and an operation habit.
The time point may be specific date information or specific time information in a certain date. The time click operation may be a click or press operation on the time display area. In the embodiment of the present invention, the selected target time point may be a single time point, or may be a time period formed by two time points.
In an alternative of this embodiment, receiving a time click in-progress operation input based on a time presentation area, and presenting a target time point corresponding to the time click in-progress operation includes: and receiving a click operation on a single time point displayed in a first display state in the time display area, taking the clicked time point as a target time point, and displaying the target time point in a second display state.
The first presentation state may be understood as a state before the click at the time point of the click in the time presentation area. The first presentation state may also be understood as a default presentation state of a point in time in the time presentation area before the point in time is operated, for example, the default presentation state of the point in time in the time presentation area may be a white background color and a square background block.
The second display state is different from the first display state, and can be understood as a display state at a selected time point after the selected time point in the time display area. Optionally, the second display state is different from the first display state. The second presentation state may be presented by, for example, marking the selected time point or making a formal change in presentation of the selected time point, to achieve an effect of distinguishing from the first presentation state in the time presentation area at the time point before the selection. The method has the advantages that the selected target time point is highlighted in the time display area, so that a user can know whether the system successfully responds to the time point selection operation or not, and whether the target time point which is matched with the selected target time point is correct or not is facilitated.
Specifically, the selected time point is taken as a target time point, and the second presentation state may be a change in color of the background of the space region in the time presentation region for the target time point, for example, a change in a white background color to a blue background color or a green background color; the second presentation state may also be a change in shape of the background of the space area in the time presentation area for the target time point, for example, a change from a square background to a circle background; the second presentation state may also change the content portion at the target time point, for example, the content portion at the target time point may be changed to be deepened, thickened or enlarged.
The "first" and the "second" in the "first display state" and the "second display state" are used to distinguish the display states in different scenes, and the display parameters such as the display order of the display states are not limited.
S120, receiving an input plug-in triggering operation for displaying the time plug-in, and displaying a plug-in entry interface of the time plug-in, wherein the plug-in entry interface displays a time span entry item.
In the embodiment of the present invention, the plug-in triggering operation may be understood as an operation for triggering the event plug-in to display. The input mode of the plug-in trigger operation can be various. Optionally, the control is triggered by triggering a preset time plug-in to input, or the target time point is triggered to input, and the like. The preset time plug-in triggering control may be an entity control, such as a preset shortcut key for starting the time plug-in, or a virtual key displayed on the application software interface, and may be displayed in the time display area, or in an area outside the time display area, for example.
In an alternative of this embodiment, the plug-in trigger operation for receiving input for showing a time plug-in includes: receiving a plug-in trigger operation for showing a time plug-in input aiming at the target time point, wherein the plug-in trigger operation comprises a double-click operation, a hovering operation or a long-press operation.
The plug-in triggering operation for displaying the time plug-in can be input in a touch input mode or a mouse input mode. Specifically, the plug-in trigger operation includes a double-click operation, a hover operation, or a long-press operation. The double-click operation is performed for two times of continuous clicking operation within preset time, the hovering operation is performed for the time which is within the set range and exceeds the preset time range, and the long-time pressing operation is performed for continuous clicking operation within the preset time.
Wherein the time plug-in may comprise a plug-in entry interface. Illustratively, the plug-in entry interface may be understood as an interface for entering target time span information. In particular, the plug-in entry interface may be an interface that contains time span entries. Optionally, the time span entries may include a time span value input control and a time lapse direction control. The time span value input control is used for inputting a time span value, is a time span data input control, and can input a target time span value through the time span value input control. The time lapse direction control is used for inputting a time lapse direction control, and the time lapse direction control can input the time lapse direction through the time lapse direction control, wherein the time lapse direction control comprises forward lapse and/or backward lapse.
S130, receiving target time span information input aiming at the time span entry item, and determining a target input time period according to the target time point and the target time span information.
The target time span information may be information such as a time span value input in the time span value input control and a transition direction input in the time transition direction control. Colloquially, the target time span information may be understood as a length of time to be entered. Specifically, on the basis of the target time point, the target input time period may be determined according to the target time span information. If the target time span information changes, the target input time period will also change accordingly. When the time span value input in the time span value input control is reduced, the size of a time region of a target input time period is reduced; when the transition direction input in the time transition direction control changes, the range of the time zone of the target input time period also changes.
Optionally, a target input time period is determined according to the target time point and the target time span information, specifically, the target input time period may be obtained by shifting a time span value along a time shifting direction with the target time point as a reference.
According to the technical scheme of the embodiment of the invention, the target time point corresponding to the time click operation is displayed by receiving the time click operation input based on the time display area, and the target time point is input in a mode of selecting the time point in the time display area, so that the operation is simple and convenient; receiving an input plug-in triggering operation for displaying a time plug-in, and displaying a plug-in entry interface of the time plug-in, wherein the plug-in entry interface displays a time span entry item, so that the time plug-in capable of entering a time span is provided, and the quick selection of a time period is facilitated; the target time span information input aiming at the time span entry item is received, the target input time period is determined according to the target time point and the target time span information, the target input time period can be calculated and determined automatically, the problems that the step of determining the target input time period is complex and the accuracy is low are solved, the effect that the target input time period can be input accurately and quickly in the time display area only by selecting the target time point without being searched for many times by a user is achieved.
Example two
Fig. 2 is a schematic flow chart of a time input method according to a second embodiment of the present invention, which is based on any optional technical solution in the second embodiment of the present invention, and optionally receives a target time span value input by the time span value input control, and receives a time shift direction input based on the time shift direction control, where the time shift direction includes forward shift and backward shift.
On the basis of the foregoing alternatives, optionally, the determining a target input time period according to the target time point and the target time span information includes: if the time lapse direction is forward lapse, taking the target time point as an end time point of a target input time period, and taking a time point which is earlier than the target time point and has a time difference with the target time point equal to a target time span value as a start time point of the target input time period; and if the time lapse direction is backward lapse, taking the target time point as a starting time point of a target input time period, and taking a time point which is later than the target time point and has a time difference with the target time point equal to a target time span value as an ending time point of the target input time period.
Here, technical features or technical terms that are the same as or similar to those of the foregoing embodiments are not repeated herein.
As shown in fig. 2, the method of the embodiment may specifically include:
s210, receiving time point selection operation input based on the time display area, and displaying a target time point corresponding to the time point selection operation.
S220, receiving an input plug-in triggering operation used for displaying the time plug-in, and displaying a plug-in entry interface of the time plug-in, wherein the plug-in entry interface displays a time span entry item.
And S230, receiving a target time span value input by aiming at the time span value input control, and receiving a time lapse direction input by aiming at the time lapse direction control, wherein the time lapse direction comprises forward lapse and backward lapse.
As mentioned above, the time span value input control may be understood as a control for controlling the size of the time span value, and the target time span value may be input through the time span value input control. Specifically, the target time span value may be understood as including a numerical value input box and a unit input box, where the numerical value input box and the unit input box are both based on the target time point, and the numerical value input by the numerical value input box of the time span value is the numerical value part needing the span time; the unit of time input by the unit input box of the time span value is the unit part needing the span time length.
It should be noted that, in the time span value input control, the number of the numeric value input boxes may be one or two, and the number of the unit input boxes may be one or two. For example, when the target time point includes a first time point and a second time point, a time span value number input box and a unit input box may be set for the first time point and the second time point, respectively.
The time lapse direction control may be a control for controlling a time lapse direction, and the time lapse direction may be input by the time lapse direction control. Specifically, the time shift direction may include a forward shift and a backward shift, and the forward shift and the backward shift are based on the target time point to search for a start time point earlier than the target time point or to search for an end time point later than the target time point, the forward shift in the time shift direction may be understood as searching for a start time point earlier than the target time point, and the backward shift in the time shift direction may be understood as searching for an end time point later than the target time point.
In an alternative of this embodiment, the time span value input control comprises a numeric input box; the receiving a target time span value input for the time span value input control comprises: and receiving the input number input in the numerical value input box, and taking the input number as the numerical value of the target time span value.
The numerical value input box can be self-defined input or digital display triggering operation input to the numerical value input box, a digital pull-down list is displayed, the digital pull-down list can be slid, numbers are selected from the digital pull-down list, and the selected numbers can appear in the numerical value input box and serve as numerical value parts of the target time span value.
Illustratively, a numerical value part of the target time span value is entered in a numerical value input box of the time span value input control, and the number input in the numerical value input box is used as the numerical value part of the target time span value. Specifically, if the selected target time point is 11 months and 3 days and the target time span value is 1 month, the numeric portion of the target time span value is entered in the numeric input box of the time span value input control to be 1.
In an alternative of this embodiment, the time span value input control comprises a unit input box;
the receiving a target time span value input for the time span value input control comprises:
receiving unit display triggering operation input aiming at a unit input box, and displaying a unit drop-down list, wherein the unit drop-down list comprises at least one time unit;
and receiving time selection operation input aiming at least one time unit, and taking the selected time unit as the time unit of the target time span value.
The time unit can be used as an alternative in the unit drop-down list, that is, at least one time unit needs to be included in the unit drop-down list as an alternative, and a common time unit can include: second, minute, hour, day, week, month, year, etc.
Illustratively, a unit part of the target time span value is entered in a unit input box of the time span value input control, and a unit of time input in the unit input box is taken as the unit part of the target time span value. Specifically, if the selected target time point is 11 months and 3 days and the target time span value is 1 month, the unit part of the target time span value is entered in the unit input box of the time span value input control is month.
And S240, if the time lapse direction is forward lapse, taking the target time point as the ending time point of the target input time period, and taking a time point which is earlier than the target time point and has a time difference with the target time point equal to a target time span value as the starting time point of the target input time period.
For example, if the time shift direction is forward shift, and the target time point at this time is 11 months and 3 days, the target time point is 11 months and 3 days, which is taken as the end time point of the target input time period; if the target time span value is 1 month, the starting time point of the target input time period is 11 months and 3 days earlier than the target time point, the time difference between the starting time point of the target input time period and the 11 months and 3 days of the target time point is equal to the target time span value of 1 month, 10 months and 4 days are earlier than the 11 months and 3 days of the target time point and the time difference between the starting time point of the target input time period and the 11 months and 3 days of the target time point is equal to 1 month, and 10 months and 4 days are taken as the starting time point of the target input time period; therefore, if the time transition direction is forward transition, the target time point is 11 months and 3 days, and the target time span value is 1 month, the target input time period is 10 months and 4 days to 11 months and 3 days.
And S250, if the time lapse direction is backward lapse, taking the target time point as the starting time point of the target input time period, and taking a time point which is later than the target time point and has a time difference with the target time point equal to the target time span value as the ending time point of the target input time period.
For example, if the time shift direction is backward shift, and the target time point at this time is 11 months and 3 days, the target time point is 11 months and 3 days as the starting time point of the target input time period; if the target time span value is 1 month, the ending time point of the target input time period is 11 months and 3 days later than the target time point, the time difference between the ending time point of the target input time period and the 11 months and 3 days of the target time point is equal to the target time span value of 1 month, 12 months and 2 days are later than the 11 months and 3 days of the target time point, the time difference between the 12 months and 2 days is equal to 1 month, and the 12 months and 2 days are taken as the ending time point of the target input time period; therefore, if the time transition direction is the backward transition, the target time point is 11 months and 3 days, and the target time span value is 1 month, the target input time period is 11 months and 3 days to 12 months and 2 days.
According to the technical scheme of the embodiment, a time point is input, the time point is taken as a reference to determine a target time point, and at the moment, the target time point is the time point; according to the target time point and the target time span information, the target input time period can be automatically calculated and determined, and the initially selected time point can be included in the target input time period, so that the problems of complicated steps and low accuracy in determining the target input time period are solved, the effect that the target input time period can be accurately and quickly input in the time display area only by initially selecting one time point as the target time point without repeated searching by a user is achieved.
EXAMPLE III
Fig. 3 is a flowchart of a time input method according to a third embodiment of the present invention, where this embodiment optionally receives continuous click operations for a first time point and a second time point displayed in a first display state in a time display area, and displays the target time point in a second display state with the first time point and the second time point as target time points, based on any optional technical solution in the third embodiment of the present invention.
On the basis of the above alternatives, optionally, the target time span information includes a target time span value and a time lapse direction; the determining a target input time period according to the target time point and the target time span information includes: if the time lapse direction is forward lapse, taking a later time point of the first time point and the second time point as an ending time point of a target input time period, and taking a time point which is earlier than an earlier time point of the first time point and the second time point and has a time difference with the earlier time point of the first time point and the second time point equal to a target time span value as a starting time point of the target input time period; and if the time lapse direction is backward lapse, taking an earlier time point of the first time point and the second time point as a start time point of a target input time period, and taking a time point which is later than a later time point of the first time point and the second time point and has a time difference with the later time point of the first time point and the second time point equal to a target time span value as an end time point of the target input time period.
Here, technical features or technical terms that are the same as or similar to those of the foregoing embodiments are not repeated herein.
As shown in fig. 3, the method of the present embodiment may specifically include:
s310, receiving continuous clicking operation of a first time point and a second time point displayed in a first display state in a time display area, using the first time point and the second time point as target time points, and displaying the target time points in a second display state.
The continuous clicking operation can be understood as a clicking operation in which the difference between the time of clicking the first time point and the operation time of clicking the second time point is within a preset time interval range. Specifically, the first time point may be a time point of one click in a continuous click operation, the second time point may be a time point of another click in the continuous click operation, and the first time point and the second time point may be target time points.
It should be noted that "first" and "second" in "first time point" and "second time point" are only used to distinguish different time points, and are not intended to limit the time points to be early or late or the click sequence of the time points. The first time point may be earlier or later than the second time point.
S320, receiving an input plug-in triggering operation used for displaying the time plug-in, and displaying a plug-in entry interface of the time plug-in, wherein the plug-in entry interface displays a time span entry item.
S330, receiving target time span information input aiming at the time span entry, wherein the target time span information comprises a target time span value and a time lapse direction.
S340, if the time moving direction is moving forward, taking a later time point of the first time point and the second time point as an ending time point of the target input time period, and taking a time point which is earlier than an earlier time point of the first time point and the second time point and has a time difference equal to a target time span value from the earlier time point of the first time point and the second time point as a starting time point of the target input time period.
Illustratively, if the time lapse direction is forward lapse, the first time point is 11 months and 3 days, the second time point is 11 months and 8 days, and 11 months and 8 days, which are the later dates among the 11 months and 3 days and the 11 months and 8 days, are selected, and therefore, the 11 months and 8 days are taken as the end time point of the target input time period; if the target time span value is 1 month, the start time point of the target input time period is earlier than 11 months 3 days, which are earlier time points of 11 months 3 days and 11 months 8 days, and the time difference between the start time point of the target input time period and the 11 months 3 days, which are earlier time points of 11 months 3 days and 11 months 8 days, is equal to the target time span value of 1 month, 10 months 4 days are earlier than 11 months 3 days, which are earlier time points of 11 months 3 days and 11 months 8 days, and the time difference between the 11 months 3 days, which are earlier time points of 11 months 3 days and 11 months 8 days, is equal to 1 month, and 10 months 4 days are taken as the start time point of the target input time period; therefore, if the time transition direction is forward transition, the first time point is 11 months and 3 days, the second time point is 11 months and 8 days, and the target time span value is 1 month, the target input time period is 10 months and 4 days to 11 months and 8 days.
And S350, if the time lapse direction is backward lapse, taking the earlier time point of the first time point and the second time point as the starting time point of the target input time period, and taking the time point which is later than the later time point of the first time point and the second time point and has the time difference with the later time point of the first time point and the second time point equal to the target time span value as the ending time point of the target input time period.
Illustratively, if the time lapse direction is a backward lapse, the first time point is 11 months and 3 days, the second time point is 11 months and 8 days, and the 11 months and 3 days, which are the earlier dates among the 11 months and 3 days and the 11 months and 8 days, are selected, and therefore, the 11 months and 3 days are taken as the start time point of the target input period; if the target time span value is 1 month, the start time point of the target input time period is 11 months and 8 days later than the later time point of 11 months and 3 days and 11 months and 8 days, and the time difference between the end time point of the target input time period and the later time point of 11 months and 8 days is equal to the target time span value of 1 month, 12 months and 7 days are earlier than the later time point of 11 months and 8 days and equal to 1 month than the later time point of 11 months and 8 days, and 12 months and 7 days are taken as the end time point of the target input time period; therefore, if the time transition direction is the backward transition, the first time point is 11 months and 3 days, the second time point is 11 months and 8 days, and the target time span value is 1 month, the target input time period is 11 months and 3 days to 12 months and 7 days.
According to the technical scheme of the embodiment, the target time point is determined by quickly inputting two time points and taking the two time points as references, wherein the target time point is a period of time; according to the target time point and the target time span information, the target input time period can be automatically calculated and determined, and the target input time period can also comprise a time interval selected initially, so that the problems of complicated steps and low accuracy in determining the target input time period are solved, the effect that the target input time period can be accurately and quickly input in the time display area only by initially selecting the time interval as the target time point without repeated searching by a user is achieved.
Example four
Fig. 4 is a schematic flowchart of a time input method according to a fourth embodiment of the present invention, and fig. 5 is a schematic diagram of a plug-in entry interface of a time plug-in according to the fourth embodiment of the present invention.
Illustratively, the current target time points are 3 days and 8 days, and a time plug-in may be presented by double-clicking the trigger or otherwise setting to trigger 3 days. Where the time-plug is the area circled by the dashed box in figure 4. Completing the target time span information in the time plug-in, wherein the target time span information comprises a target time span value and a time lapse direction. Completing the input number of the target time span value part needing to be input in a numerical value input box in the time plug-in unit, and taking the input number as the numerical value of the target time span value; and the unit display triggering operation input in the unit input box in the time plug-in unit is needed to complete the target time span value part, a unit pull-down list is displayed, and the selected unit is used as the unit of the target time span value.
As shown in fig. 5, a flow diagram of a time input method is shown.
1. And clicking the time information control to trigger the display time display area. Specifically, a time selection box displayed at a target time period of the target interface may be clicked.
2. And acquiring current time information displayed on a software interface of the application program in the JS of Web, and calling out a calendar of a month in which the current time information is positioned in a time display area. The Web can be understood as a global wide area network, also called world wide Web, and the Web is established on the Internet and can provide a graphical interface for a browser to search and browse information on the Internet. The JS is called JavaScript entirely, and the JS is a script language running on the browser. The JS can enable the webpage to have interactivity, for example, responding to clicking of a user, and providing better experience for the user; the JS can also dynamically create pages according to the operation of the user.
3. And capturing a click event in a time display area in the JS, and taking a clicked time point as a node of a target time point, namely a date.
4. And judging whether the clicking operation in the time display area is a single-clicking event or a double-clicking event.
5. If the single click event is detected, selecting a node corresponding to the single click event in the previous step, namely the date, and assigning a time interval of two single click nodes to a time selection box. In other words, a time period between the first time point date (r) and the second time point date (r) is selected as the target input time period. As shown in fig. 4, the calendar of the current month is displayed in the time display area, since the dates corresponding to the node (r) and the node (r) may be 3 days and 8 days of the current month, respectively.
5. If it is a double-click event, the rollout component pops up a time plug-in within the time presentation area. Along with FIG. 4, a left numerical entry box and a right date unit selection box may be included in the time plug-in for determining time span information.
6. Clicking a numerical value input box of the time plug-in unit to input a number III; and selects the date unit by clicking the time unit drop-down list of the time plug-in.
7. A click event of a left double arrow or a right double arrow of the time plug-in is received. Wherein, the left double-headed arrow and the right double-headed arrow are time lapse direction controls.
8. Selecting a left double arrow, wherein the time shift direction is forward shift, and at the moment, acquiring the number of the left input box of the time plug-in unit and the date unit. And assigning the time node serving as the end time of the target input time period to a time selection box, and assigning the date of the unit of the time node subtracted by the unit of the time node serving as the start time of the target input time period to the time selection box.
9. Selecting a right double arrow, wherein the time moving direction is moving backwards, the number (c) and the date unit (c) in the time plug-in are obtained, the time node (c) is assigned to the starting time, and the date (c) and the date unit (c) are assigned to the time selection box as the ending time.
10. And finishing the operation.
According to the technical scheme, the problems that the step of determining the target input time period is complicated and the accuracy is low are solved under the condition that the target input time period is determined according to the target time point and the target time span information, and the effect that the target input time period can be accurately and quickly input in the time display area only by initially selecting a time interval as the target time point without repeated searching by a user is achieved.
EXAMPLE five
Fig. 6 is a schematic structural diagram of a time input device according to a fifth embodiment of the present invention, where the time input device provided in this embodiment may be implemented by software and/or hardware, and may be configured in a terminal and/or a server to implement the time input method in the embodiment of the present invention. The device may specifically comprise: a target time point presentation module 610, a plug-in entry interface presentation module 620, and a target input time period determination module 630.
The target time point display module 610 is configured to receive a time selection operation input based on a time display area, and display a target time point corresponding to the time selection operation; the plug-in entry interface display module 620 is configured to receive an input plug-in trigger operation for displaying a time plug-in, and display a plug-in entry interface of the time plug-in, where the plug-in entry interface displays a time span entry item; a target input time period determining module 630, configured to receive target time span information input for the time span entry, and determine a target input time period according to the target time point and the target time span information.
According to the technical scheme of the embodiment of the invention, the target time point corresponding to the time click operation is displayed by receiving the time click operation input based on the time display area, and the target time point is input in a mode of selecting the time point in the time display area, so that the operation is simple and convenient; receiving an input plug-in triggering operation for displaying a time plug-in, and displaying a plug-in entry interface of the time plug-in, wherein the plug-in entry interface displays a time span entry item, so that the time plug-in capable of entering a time span is provided, and the quick selection of a time period is facilitated; the target time span information input aiming at the time span entry item is received, the target input time period is determined according to the target time point and the target time span information, the target input time period can be calculated and determined automatically, the problems that the step of determining the target input time period is complex and the accuracy is low are solved, the effect that the target input time period can be input accurately and quickly in the time display area only by selecting the target time point without being searched for many times by a user is achieved.
On the basis of any optional technical solution in the embodiment of the present invention, optionally, the target time point display module is configured to:
and receiving a click operation on a single time point displayed in a first display state in the time display area, taking the clicked time point as a target time point, and displaying the target time point in a second display state.
On the basis of any optional technical scheme in the embodiment of the present invention, optionally, the plug-in entry interface display module is configured to:
receiving a plug-in trigger operation for showing a time plug-in input aiming at the target time point, wherein the plug-in trigger operation comprises a double-click operation, a hovering operation or a long-press operation.
On the basis of any optional technical scheme in the embodiment of the present invention, optionally, the time span entry includes a time span value input control and a time lapse direction control;
further, the target input time period determination module may be to:
receiving a target time span value input for the time span value input control, and receiving a time lapse direction input based on the time lapse direction control, wherein the time lapse direction includes a forward lapse and a backward lapse.
On the basis of any optional technical scheme in the embodiment of the present invention, optionally, the time span value input control includes a numerical value input box;
further, the target input time period determination module may be specifically configured to:
and receiving the input number input in the numerical value input box, and taking the input number as the numerical value of the target time span value.
On the basis of any optional technical scheme in the embodiment of the present invention, optionally, the time span value input control includes a unit input box;
further, the target input time period determination module may be specifically configured to:
receiving unit display triggering operation input aiming at a unit input box, and displaying a unit drop-down list, wherein the unit drop-down list comprises at least one time unit;
and receiving time selection operation input aiming at least one time unit, and taking the selected time unit as the time unit of the target time span value.
On the basis of any optional technical solution in the embodiment of the present invention, optionally, the target input time period determining module is specifically configured to:
if the time lapse direction is forward lapse, taking the target time point as an end time point of a target input time period, and taking a time point which is earlier than the target time point and has a time difference with the target time point equal to a target time span value as a start time point of the target input time period;
and if the time lapse direction is backward lapse, taking the target time point as a starting time point of a target input time period, and taking a time point which is later than the target time point and has a time difference with the target time point equal to a target time span value as an ending time point of the target input time period.
On the basis of any optional technical solution in the embodiment of the present invention, optionally, the target time point display module is configured to:
receiving continuous clicking operation aiming at a first time point and a second time point displayed in a first display state in a time display area, taking the first time point and the second time point as target time points, and displaying the target time points in a second display state.
On the basis of any optional technical solution in the embodiment of the present invention, optionally, the target time span information includes a target time span value and a time lapse direction;
further, the target input time period determination module may be specifically configured to:
if the time lapse direction is forward lapse, taking a later time point of the first time point and the second time point as an ending time point of a target input time period, and taking a time point which is earlier than an earlier time point of the first time point and the second time point and has a time difference with the earlier time point of the first time point and the second time point equal to a target time span value as a starting time point of the target input time period;
and if the time lapse direction is backward lapse, taking an earlier time point of the first time point and the second time point as a start time point of a target input time period, and taking a time point which is later than a later time point of the first time point and the second time point and has a time difference with the later time point of the first time point and the second time point equal to a target time span value as an end time point of the target input time period.
The time input device can execute the time input method provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution time input method.
EXAMPLE six
Fig. 7 is a schematic structural diagram of an electronic device according to a sixth embodiment of the present invention. FIG. 7 illustrates a block diagram of an exemplary electronic device 12 suitable for use in implementing embodiments of the present invention. The electronic device 12 shown in fig. 7 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiment of the present invention.
As shown in FIG. 7, electronic device 12 is embodied in the form of a general purpose computing device. The components of electronic device 12 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, and a bus 18 that couples various system components including the system memory 28 and the processing unit 16.
The system memory 28 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM)30 and/or cache memory 32. The electronic device 12 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 34 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 7, and commonly referred to as a "hard drive"). Although not shown in FIG. 7, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to bus 18 by one or more data media interfaces. System memory 28 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the invention.
A program/utility 40 having a set (at least one) of program modules 42 may be stored, for example, in system memory 28, such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which examples or some combination thereof may comprise an implementation of a network environment. Program modules 42 generally carry out the functions and/or methodologies of the described embodiments of the invention.
The processing unit 16 executes various functional applications and data processing by executing programs stored in the system memory 28, for example, implementing a time input method provided by the present embodiment.
EXAMPLE seven
An embodiment of the present invention further provides a storage medium containing computer-executable instructions, which when executed by a computer processor, perform a time input method, the method including: receiving time click in-process operation input based on a time display area, and displaying a target time point corresponding to the time click in-process operation; receiving an input plug-in triggering operation used for displaying a time plug-in, and displaying a plug-in entry interface of the time plug-in, wherein the plug-in entry interface displays a time span entry item; receiving target time span information input aiming at the time span entry item, and determining a target input time period according to the target time point and the target time span information.
Computer storage media for embodiments of the invention may employ any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for embodiments of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.
Claims (10)
1. A time input method, comprising:
receiving time click in-process operation input based on a time display area, and displaying a target time point corresponding to the time click in-process operation;
receiving an input plug-in triggering operation used for displaying a time plug-in, and displaying a plug-in entry interface of the time plug-in, wherein the plug-in entry interface displays a time span entry item;
receiving target time span information input aiming at the time span entry item, and determining a target input time period according to the target time point and the target time span information.
2. The method of claim 1, wherein receiving a time selection operation based on a time display area input, and displaying a target time point corresponding to the time selection operation comprises:
and receiving a click operation on a single time point displayed in a first display state in the time display area, taking the clicked time point as a target time point, and displaying the target time point in a second display state.
3. The method of claim 2, wherein receiving an input plug-in trigger operation for presenting a time plug-in comprises:
receiving a plug-in trigger operation for showing a time plug-in input aiming at the target time point, wherein the plug-in trigger operation comprises a double-click operation, a hovering operation or a long-press operation.
4. The method of claim 1, wherein the time span entry comprises a time span value input control and a time lapse direction control;
the receiving target time span information entered for the time span entry includes:
receiving a target time span value input for the time span value input control, and receiving a time lapse direction input based on the time lapse direction control, wherein the time lapse direction includes a forward lapse and a backward lapse.
5. The method of claim 4, wherein the time span value input control comprises a numeric input box;
the receiving a target time span value input for the time span value input control comprises:
and receiving the input number input in the numerical value input box, and taking the input number as the numerical value of the target time span value.
6. The method according to claim 4 or 5, wherein the time span value input control comprises a unit input box;
the receiving a target time span value input for the time span value input control comprises:
receiving unit display triggering operation input aiming at a unit input box, and displaying a unit drop-down list, wherein the unit drop-down list comprises at least one time unit;
and receiving time selection operation input aiming at least one time unit, and taking the selected time unit as the time unit of the target time span value.
7. The method of claim 4, wherein determining a target input time period based on the target time point and the target time span information comprises:
if the time lapse direction is forward lapse, taking the target time point as an end time point of a target input time period, and taking a time point which is earlier than the target time point and has a time difference with the target time point equal to a target time span value as a start time point of the target input time period;
and if the time lapse direction is backward lapse, taking the target time point as a starting time point of a target input time period, and taking a time point which is later than the target time point and has a time difference with the target time point equal to a target time span value as an ending time point of the target input time period.
8. The method of claim 1, wherein receiving a time selection operation based on a time display area input, and displaying a target time point corresponding to the time selection operation comprises:
receiving continuous clicking operation aiming at a first time point and a second time point displayed in a first display state in a time display area, taking the first time point and the second time point as target time points, and displaying the target time points in a second display state.
9. The method of claim 8, wherein the target time span information includes a target time span value and a direction of time lapse;
the determining a target input time period according to the target time point and the target time span information includes:
if the time lapse direction is forward lapse, taking a later time point of the first time point and the second time point as an ending time point of a target input time period, and taking a time point which is earlier than an earlier time point of the first time point and the second time point and has a time difference with the earlier time point of the first time point and the second time point equal to a target time span value as a starting time point of the target input time period;
and if the time lapse direction is backward lapse, taking an earlier time point of the first time point and the second time point as a start time point of a target input time period, and taking a time point which is later than a later time point of the first time point and the second time point and has a time difference with the later time point of the first time point and the second time point equal to a target time span value as an end time point of the target input time period.
10. A time input device, comprising:
the target time point display module is used for receiving time point selection operation input based on the time display area and displaying a target time point corresponding to the time point selection operation;
the plug-in input interface display module is used for receiving an input plug-in triggering operation for displaying a time plug-in and displaying a plug-in input interface of the time plug-in, wherein the plug-in input interface displays a time span input item;
and the target input time period determining module is used for receiving target time span information input aiming at the time span entry and determining a target input time period according to the target time point and the target time span information.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111667041.2A CN114356183A (en) | 2021-12-31 | 2021-12-31 | Time input method and device, electronic equipment and storage equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111667041.2A CN114356183A (en) | 2021-12-31 | 2021-12-31 | Time input method and device, electronic equipment and storage equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114356183A true CN114356183A (en) | 2022-04-15 |
Family
ID=81105278
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111667041.2A Pending CN114356183A (en) | 2021-12-31 | 2021-12-31 | Time input method and device, electronic equipment and storage equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114356183A (en) |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1353348A (en) * | 2000-11-02 | 2002-06-12 | 英新达(上海)电子有限公司 | Calculator with automatic date memory and calculation functions |
US20070157090A1 (en) * | 2005-12-29 | 2007-07-05 | Tobias Haug | Timescale selection window for temporal selection in computer applications |
-
2021
- 2021-12-31 CN CN202111667041.2A patent/CN114356183A/en active Pending
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1353348A (en) * | 2000-11-02 | 2002-06-12 | 英新达(上海)电子有限公司 | Calculator with automatic date memory and calculation functions |
US20070157090A1 (en) * | 2005-12-29 | 2007-07-05 | Tobias Haug | Timescale selection window for temporal selection in computer applications |
Non-Patent Citations (1)
Title |
---|
Y小余666: "如何在日历中进行日期推算?", pages 1 - 6, Retrieved from the Internet <URL:https://mbd.baidu.com/ug_share/mbox/4a83aa9e65/share?product=smartapp&tk=67b359375e9c31e7cd7e00360e248ea7&share_url=https%3A%2F%2F7dapi7.smartapps.baidu.com%2Fpages%2Farticle%2Farticle%3Feid%3D574c5219d13fc62d8c9dc150%26scene%3D10810008%26from%3D%26_swebfr%3D1%26_swebFromHost%3Dbaiduboxapp&domain=mbd.baidu.com> * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11270066B2 (en) | Temporary formatting and charting of selected data | |
US9336502B2 (en) | Showing relationships between tasks in a Gantt chart | |
CA2795367C (en) | Spin control user interface for selecting options | |
CN109992589A (en) | Method, apparatus, server and the medium of SQL statement are generated based on visual page | |
CN109739855B (en) | Method and system for realizing data sheet splicing and automatically training machine learning model | |
US7836406B1 (en) | Method and apparatus for displaying a user interface enabling selection and instant display and access of pages | |
US10817148B2 (en) | Display control method of communication device, control method of server, and recording medium | |
US10394422B2 (en) | Data interaction cards for capturing and replaying logic in visual analyses | |
CN114003843A (en) | Page generation method, device, equipment and storage medium | |
CN114201615B (en) | Scientific research data change review method and server based on data snapshot | |
JP2024502516A (en) | Data annotation methods, apparatus, systems, devices and storage media | |
CN114356183A (en) | Time input method and device, electronic equipment and storage equipment | |
US10198150B2 (en) | Cross database data selection and correlation interface | |
CN114625472A (en) | Page display method and device, electronic equipment and storage medium | |
CN114385562A (en) | Text information deleting method and device and electronic equipment | |
CN114491218A (en) | Information updating method, information updating device, electronic device, and medium | |
CN109190097B (en) | Method and apparatus for outputting information | |
US9501586B2 (en) | Displaying data sets across a plurality of views of a user interface | |
US20230315542A1 (en) | Managing a presentation mode for application programming interface functions | |
CN113127417A (en) | File query method, device, equipment and storage medium | |
CN115983214A (en) | Data editing method, apparatus, device, medium, and program product | |
CN115563149A (en) | Index calculation method and device, electronic equipment and storage medium | |
TWI520042B (en) | Method and system for spin control user interface for selecting options, and computer-readable storage medium for recording related instructions thereon | |
CN118605776A (en) | Calendar-based date selection method, electronic device, medium, and program product | |
CN117827194A (en) | Method, apparatus, device and storage medium for inspecting elements |
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 |