CN111291090A - Time period obtaining method and device based on time control, electronic equipment and medium - Google Patents

Time period obtaining method and device based on time control, electronic equipment and medium Download PDF

Info

Publication number
CN111291090A
CN111291090A CN202010071644.5A CN202010071644A CN111291090A CN 111291090 A CN111291090 A CN 111291090A CN 202010071644 A CN202010071644 A CN 202010071644A CN 111291090 A CN111291090 A CN 111291090A
Authority
CN
China
Prior art keywords
time
time period
selection
state
output
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010071644.5A
Other languages
Chinese (zh)
Other versions
CN111291090B (en
Inventor
张凌霄
谢郑凯
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Borui Shangge Technology Co Ltd
Original Assignee
Borui Shangge Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Borui Shangge Technology Co Ltd filed Critical Borui Shangge Technology Co Ltd
Priority to CN202010071644.5A priority Critical patent/CN111291090B/en
Publication of CN111291090A publication Critical patent/CN111291090A/en
Application granted granted Critical
Publication of CN111291090B publication Critical patent/CN111291090B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2458Special types of queries, e.g. statistical queries, fuzzy queries or distributed queries
    • G06F16/2477Temporal data queries
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
    • G06F9/44526Plug-ins; Add-ons

Abstract

The embodiment of the disclosure discloses a method, a device, electronic equipment and a medium for acquiring a time period based on a time control, wherein the method comprises the steps of determining first time of an output time period according to a trigger position of an instruction when the time control receives a time selection instruction when a first time state to be selected is monitored, controlling a time period selection control assembly to be switched from the first time state to be selected to a second time state to be selected, and controlling a time view to call a first prompt assembly, wherein the first prompt assembly comprises a time length selection subassembly, a first direction selection subassembly and a second direction selection subassembly; if it is monitored that the first direction selection subassembly or the second direction selection subassembly receives a click command, the second time of the output time period is determined according to the current recommended time displayed by the time selection subassembly and the first time of the output time period, the output time period is displayed and switched to a time period selection completion state, the time period selection operation can be simplified, and the user experience is improved.

Description

Time period obtaining method and device based on time control, electronic equipment and medium
Technical Field
The embodiment of the disclosure relates to the technical field of computer application, in particular to a time period obtaining method and device based on a time control, electronic equipment and a medium.
Background
At present, in the development process of an Application (APP), a time control capable of determining time needs to be provided for a user, and the time control is generally used for selecting a time period, for example, when a transaction query function in a bank APP is used, the time period needs to be selected as a query condition, and at this time, the time control can be implemented through the time control.
However, the inventor of the present application finds that a time control used in a common application program cannot select an accurate time period, usually only one of the times of year, month and day, and cannot meet the actual requirement, and the user needs to input an instruction respectively when the start time and the end time of the time period are selected by the time control, which is complex to operate and affects user experience.
Disclosure of Invention
In view of this, embodiments of the present disclosure provide a method, an apparatus, an electronic device, and a storage medium for obtaining a time period based on a time control, so as to simplify selection operations of the time period and improve user experience.
Additional features and advantages of the disclosed embodiments will be set forth in the detailed description which follows, or in part will be obvious from the description, or may be learned by practice of the disclosed embodiments.
In a first aspect, an embodiment of the present disclosure provides a method for obtaining a time period based on a time control, where the time control includes a time period selection control component and a time view, where the time period selection control component includes a first display area and a second display area, the time period selection control component includes a first time state to be selected, a second time state to be selected, and a time period selection completion state, and the method includes:
when the time period selection control component is in the first time state to be selected, if the time control is monitored to receive a time selection instruction, determining first time of an output time period according to a trigger position of the time selection instruction, and controlling the time period selection control component to be switched from the first time state to be selected to the second time state to be selected;
if the time period selection control assembly is monitored to be switched from the first time state to be selected to the second time state to be selected, controlling the time view to call a first prompt assembly, wherein the first prompt assembly comprises a duration selection subassembly, a first direction selection subassembly and a second direction selection subassembly;
when the time period selection control component is the second time state to be selected: if the second direction selection subassembly is monitored to receive a click instruction, adding the current recommended duration displayed by the duration selection subassembly to the first time of the output time period to obtain a second time of the output time period; if the first direction selection subassembly is monitored to receive a click instruction, the first time of the output time period is traced back to the current recommended time displayed by the time period selection subassembly forwards to determine the second time of the output time period;
the time period selection control means is controlled to display a smaller value of a first time of the output time period and a second time of the output time period in a first display region, the time period selection control means is controlled to display a larger value of the first time of the output time period and the second time of the output time period in a second display region, and the time period selection control means is controlled to switch to the time period selection completion state.
In one embodiment, the duration selection subcomponent is further operable to modify the current recommended duration in response to a user input operation.
In one embodiment, the duration selection subcomponent is further configured to modify the current recommended duration in response to a user input operation including:
the time length selection subassembly is also used for responding to the double-click operation of the user and then switching to an editable state, and the current recommended time length is modified according to the input operation of the user in the editable state.
In one embodiment, the duration selection subcomponent is further configured to pop up a drop-down list in response to a single-click operation by a user, the drop-down list including a plurality of duration selections of recommended durations.
In one embodiment, controlling the time view to call up the first prompt component includes:
determining a corresponding location of a first time of the output time period in the time view;
and controlling the time view to call the first prompt component out above the corresponding position.
In an embodiment, if it is monitored that the time slot selection control component is switched from the first time state to be selected to the second time state to be selected, the time view is controlled to call the first prompt component, and when the time slot selection control component is in the second time state to be selected: if the second direction selection subassembly is monitored to receive a click instruction, adding the current recommended duration displayed by the duration selection subassembly to the first time of the output time period to obtain a second time of the output time period; if the first direction selection subassembly is monitored to receive a click command, a method for determining a second time of the output time period by tracing the current recommended time displayed by the time period selection subassembly back to the first time of the output time period is replaced by the following steps:
and when the time period selection control component is in the state of the second time to be selected, if the time control receives a time selection instruction, determining the second time of the output time period according to the trigger position of the time selection instruction.
In one embodiment, the method further comprises:
and when the time period selection control component is in the second time state to be selected, if the mouse is monitored to be hovered on the time view, determining the time difference between the time corresponding to the hovering position of the mouse and the first time of the output time period, and controlling the time view to call a second indication control, wherein the second indication control is used for displaying the time difference.
In one embodiment, controlling the time view to call up the second indication control includes:
controlling the temporal view to bring up the second indication control above the location of the mouse hover.
In a second aspect, an embodiment of the present disclosure further provides an apparatus for obtaining a time period based on a time control, where the time control includes a time period selection control component and a time view, where the time period selection control component includes a first display area and a second display area, the time period selection control component includes a first time state to be selected, a second time state to be selected, and a time period selection completion state, and the apparatus includes:
the first monitoring control unit is used for determining the first time of an output time period according to the trigger position of a selection time instruction when the time period selection control component is in the first time state to be selected and when the time control receives the selection time instruction, and controlling the time period selection control component to be switched from the first time state to be selected to the second time state to be selected;
the second monitoring control unit is used for controlling the time view to call out a first prompting component if the time period selection control component is monitored to be switched from the first time state to be selected to the second time state to be selected, wherein the first prompting component comprises a duration selection subassembly, a first direction selection subassembly and a second direction selection subassembly;
a third monitoring control unit, configured to, when the time period selection control component is the second time state to be selected: if the second direction selection subassembly is monitored to receive a click instruction, adding the current recommended duration displayed by the duration selection subassembly to the first time of the output time period to obtain a second time of the output time period; if the first direction selection subassembly is monitored to receive a click instruction, the first time of the output time period is traced back to the current recommended time displayed by the time period selection subassembly forwards to determine the second time of the output time period;
a time period display unit configured to control the time period selection control component to display a smaller value of the first time of the output time period and the second time of the output time period in a first display area, control the time period selection control component to display a larger value of the first time of the output time period and the second time of the output time period in a second display area, and control the time period selection control component to switch to the time period selection completion state.
In a third aspect, an embodiment of the present disclosure further provides an electronic device, including:
one or more processors;
a memory for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement the instructions of the method of any one of the first aspects.
In a fourth aspect, the disclosed embodiments also provide a computer-readable storage medium, on which a computer program is stored, which when executed by a processor implements the steps of the method according to any one of the first aspect.
According to the embodiment of the disclosure, when the time period selection control component is in a to-be-selected first time state, if the time control receives a time selection instruction, the first time of the output time period is determined according to a trigger position of the instruction, and the time period selection control component is controlled to be switched from the to-be-selected first time state to a to-be-selected second time state, and a time view is controlled to call out a first prompt component, wherein the first prompt component comprises a time length selection sub-component, a first direction selection sub-component and a second direction selection sub-component; if it is monitored that the first direction selection subassembly or the second direction selection subassembly receives a click command, the second time of the output time period is determined according to the current recommended time displayed by the time selection subassembly and the first time of the output time period, the output time period is displayed, and the time period selection control assembly is controlled to be switched to a time period selection completion state, so that the time period selection operation can be simplified, and the user experience is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present disclosure, the drawings needed to be used in the description of the embodiments of the present disclosure will be briefly described below, and it is obvious that the drawings in the following description are only a part of the embodiments of the present disclosure, and for those skilled in the art, other drawings can be obtained according to the contents of the embodiments of the present disclosure and the drawings without creative efforts.
Fig. 1 is a schematic flowchart of a method for acquiring a time period based on a time control according to an embodiment of the present disclosure;
FIG. 2 is an effect diagram of an exemplary time control provided by embodiments of the present disclosure;
FIG. 3 is a state diagram of an exemplary time control provided by embodiments of the present disclosure;
FIG. 4 is a state diagram of an exemplary time control provided by embodiments of the present disclosure;
FIG. 5 is a state diagram of an exemplary time control provided by embodiments of the present disclosure;
FIG. 6 is a flowchart illustrating another method for obtaining a time period based on a time control according to an embodiment of the present disclosure;
FIG. 7 is a state diagram of an exemplary time control provided by embodiments of the present disclosure;
FIG. 8 is a state diagram of an exemplary time control provided by embodiments of the present disclosure;
FIG. 9 is a state diagram of an exemplary time control provided by embodiments of the present disclosure;
fig. 10 is a schematic structural diagram of an apparatus for acquiring a time period based on a time control according to an embodiment of the present disclosure;
FIG. 11 shows a schematic structural diagram of an electronic device suitable for use in implementing embodiments of the present disclosure.
Detailed Description
In order to make the technical problems solved, technical solutions adopted and technical effects achieved by the embodiments of the present disclosure clearer, the technical solutions of the embodiments of the present disclosure will be described in further detail below with reference to the accompanying drawings, and it is obvious that the described embodiments are only some embodiments, but not all embodiments, of the embodiments of the present disclosure. All other embodiments, which can be obtained by a person skilled in the art without making creative efforts based on the embodiments of the present disclosure, belong to the protection scope of the embodiments of the present disclosure.
It should be noted that the terms "system" and "network" are often used interchangeably in the embodiments of the present disclosure. Reference to "and/or" in embodiments of the present disclosure is meant to include any and all combinations of one or more of the associated listed items. The terms "first", "second", and the like in the description and claims of the present disclosure and in the drawings are used for distinguishing between different objects and not for limiting a particular order.
It should also be noted that, in the embodiments of the present disclosure, each of the following embodiments may be executed alone, or may be executed in combination with each other, and the embodiments of the present disclosure are not limited specifically.
The names of messages or information exchanged between devices in the embodiments of the present disclosure are for illustrative purposes only, and are not intended to limit the scope of the messages or information.
The technical solutions of the embodiments of the present disclosure are further described by the following detailed description in conjunction with the accompanying drawings.
Fig. 1 is a flowchart illustrating a method for acquiring a time period based on a time control according to an embodiment of the present disclosure, where the present embodiment is applicable to a case where a time period is selected based on a time control including a time period selection control component and a time view, and the method may be performed by an apparatus configured in an electronic device for acquiring a time period based on a time control. The time period selection control component comprises a first display area and a second display area, and the first display area and the second display area correspondingly display corresponding time periods according to the type of the time periods selected by the user. For example, the user may select time period types including year-year, month-month, week-week, day-day time period types, and the like. The time period selection control component comprises a first time state to be selected, a second time state to be selected and a time period selection completion state.
As shown in fig. 1, the method for acquiring a time period based on a time control according to this embodiment includes:
in step S110, when the time period selection control component is in the first time state to be selected, if it is monitored that the time control receives a time selection instruction, determining a first time of an output time period according to a trigger position of the time selection instruction, and controlling the time period selection control component to switch from the first time state to be selected to the second time state to be selected.
For example, fig. 2 is an effect diagram of an exemplary time control provided by the embodiment of the present disclosure, and the present time control is illustrated by taking a day-day time period selection as an example. A time period selection control component 201, a first display area on the left side of the time period selection control component 201, a second display area on the right side, and a time view 202.
In a state where the first time of the output time period is not selected, the time period selection control component 201 is in the state of the first time to be selected, and the time selected by the time view in this state is the first time of the output time period by default, that is, the time selected for the first time is the first time of the output time period by default.
After the first time of the output period is selected, the time selected thereafter is defaulted to the second time of the output period, and therefore, it can be considered that the period selection control component 201 switches from the first time state to be selected to the second time state to be selected after the first time is selected.
After the first time and the second time of the output period are selected, the period selection control component 201 selects a completion state for the period.
In step S120, if it is monitored that the time period selection control component is switched from the first time state to be selected to the second time state to be selected, the time view is controlled to call a first prompt component, where the first prompt component includes a duration selection subcomponent, a first direction selection subcomponent and a second direction selection subcomponent.
The first prompting component comprises a duration selection subcomponent, a first direction selection subcomponent and a second direction selection subcomponent, wherein the duration selection subcomponent is used for displaying the current recommended duration of the output time period, and the first direction selection subcomponent is used for tracing the first time of the output time period back to the current recommended duration displayed by the duration selection subcomponent to determine a second time of the output time period; the second direction selection subcomponent is used to add the current recommended duration displayed by the duration selection subcomponent to the first time of the output period as the second time of the output period.
For example, if the user selects time "4 months and 17 days" in the time view 202 in fig. 2, 4 months and 17 days are the first time of the time period, and the display result is as shown in fig. 3. As shown in fig. 3, the first prompt component 203 is invoked. The position of the first prompting component 203 can be located at any position of the whole range of the time view 202, for example, the position near the first time (for example, above the position of the first time) can be selected, so that the user can conveniently operate after selecting the first time, and the operation efficiency and the operation fluency of the user can be improved.
The concrete implementation can be as follows: determining a corresponding location of a first time of the output time period in the time view; and controlling the time view to call the first prompt component out above the corresponding position.
In an embodiment, the first direction selection sub-component is an operable icon of a first operation area on the left side of the duration selection sub-component, and the second direction selection sub-component is an operable icon of a second operation area on the right side of the duration selection sub-component.
The duration selection subassembly is provided with a duration display area and a duration unit type display area. The user can select the duration according to the recommended duration preset by the duration selection sub-component. And when the recommended time length preset by the system cannot meet the requirement, time length modification can be carried out.
The duration selection subassembly can also be used for responding to the input operation of the user to modify the current recommended duration, for example, the duration selection subassembly is switched to an editable state after responding to the double-click operation of the user, and the current recommended duration is modified according to the input operation of the user in the editable state, wherein the position of the double-click operation of the user can be a duration display area of the time selection subassembly or other configured instruction triggering areas. For another example, the method is used for popping up a drop-down list in response to a user click operation, where the drop-down list includes a plurality of duration options for recommending duration, and the user performs duration modification by clicking other recommended durations of the drop-down list, where a position of the user click operation may be a duration display area or a duration type display area of the time selection component.
As shown in fig. 3, the first prompt component 203, the duration selection subcomponent (the middle portion of the first prompt component 203) display content includes a duration number 30 (the default duration displayed for the duration selection subcomponent) a duration unit type of day, a first direction selection subcomponent (left arrow icon), and a second direction selection subcomponent (right arrow icon). If the user clicks on the duration numeric display area or the duration unit type area of the duration selection sub-assembly, a drop-down list may be called, as shown in fig. 4, for example, the drop-down list includes options "30 days", "60 days", "90 days", "120 days", "150 days", and "180 days", so that the user may select the duration of the output period. The duration can be preset according to the requirements of the user by configuring an application program interface.
In step S130, when the time period selection control component is the second time state to be selected: if the second direction selection subassembly is monitored to receive a click instruction, adding the current recommended duration displayed by the duration selection subassembly to the first time of the output time period to obtain a second time of the output time period; if it is monitored that the first direction selection subassembly receives a click instruction, the first time of the output time period is traced back to the current recommended time displayed by the time period selection subassembly forward to determine the second time of the output time period.
For example, if the user clicks on the second direction selection subcomponent (right arrow icon) after selecting the list item "90 days" in fig. 4, the interface jumps to the effect shown in fig. 5, and the second time is 7 months and 16 days by adding the duration "90" days to the first time "4 months and 17 days".
For another example, if the user clicks the first direction selection sub-component (left arrow icon) after selecting the list item "90 days" in fig. 4, the user traces back the time length "90" days forward according to the first time "4 months and 17 days", and the second time is 1 month and 17 days.
After the recommended time length is selected, when the mouse is hovered in the trigger area of the first direction selection component or the second direction selection component, the corresponding time of the selected recommended time length is highlighted according to the relation with the first time.
In step S140, the period selection control section is controlled to display a smaller value of the first time of the output period and the second time of the output period in the first display area, the period selection control section is controlled to display a larger value of the first time of the output period and the second time of the output period in the second display area, and the period selection control section is controlled to switch to the period selection completion state.
After the first time and the second time of the output time period are selected, in order to display the output time period, the time period selection control module needs to be controlled to display the starting time of the output time period in the first display area and display the ending time of the output time period in the second display area.
Specifically, after the first time and the second time of the output time period are selected, the time period selection control component is controlled to display the smaller value of the first time of the output time period and the second time of the output time period in the first display area, and the time period selection control component is controlled to display the larger value of the first time of the output time period and the second time of the output time period in the second display area, so that time period selection is completed. For example, if the user clicks the first direction selection sub-component (left arrow icon) after selecting the list item "90 days" in fig. 4, the user traces back the time length "90" days forward according to the first time "4 months and 17 days", and the second time is 1 month and 17 days. The time zone selection control means is controlled to display "2019.01.17" in the first display area (left side) and "2019.04.17" in the second display area (right side).
As another example, if the user clicks on the second direction selection subcomponent (right arrow icon) after selecting the list item "90 days" in FIG. 4, the interface jumps to the effect shown in FIG. 5.
It should be noted that the specific display format and form of the time may be various, and this embodiment does not limit this. As shown in fig. 5, in the time slot selection control component 201, time slot contents such as "2019.04.17 to 2019.07.16" are displayed, and the visible part of the time slot in the time view 202 is highlighted. As shown in fig. 5, the time before day "7 months 16" is highlighted.
In the embodiment, when the time period selection control assembly is in a first time state to be selected, if it is monitored that a time control receives a time selection instruction, a first time of an output time period is determined according to a trigger position of the instruction, the time period selection control assembly is controlled to be switched from the first time state to be selected to a second time state to be selected, and a time view is controlled to call out a first prompt assembly, wherein the first prompt assembly comprises a duration selection subassembly, a first direction selection subassembly and a second direction selection subassembly; if it is monitored that the first direction selection subassembly or the second direction selection subassembly receives a click command, the second time of the output time period is determined according to the current recommended time displayed by the time selection subassembly and the first time of the output time period, the output time period is displayed, and the time period selection control assembly is controlled to be switched to a time period selection completion state, so that the time period selection operation can be simplified, and the user experience is improved.
Fig. 6 is a flowchart illustrating another method for acquiring a time period based on a time control according to an embodiment of the present disclosure, where this embodiment is applicable to a case where a time period is selected based on a time control including a time period selection control component and a time view, and the method may be executed by an apparatus configured in an electronic device for acquiring a time period based on a time control, as shown in fig. 6, where the method for acquiring a time period based on a time control according to this embodiment includes:
in step S610, when the time period selection control component is in the first time state to be selected, if it is monitored that the time control receives a time selection instruction, determining a first time of an output time period according to a trigger position of the click instruction, and controlling the time period selection control component to switch from the first time state to be selected to the second time state to be selected.
This step is the same as step S110 in the embodiment shown in fig. 1, and this disclosure will not be repeated here.
In step S620, if it is monitored that the time period selection control component is switched from the first time state to be selected to the second time state to be selected, the time view is controlled to call a first prompt component, where the first prompt component includes a duration selection subcomponent, a first direction selection subcomponent and a second direction selection subcomponent.
This step is the same as step S120 in the embodiment shown in fig. 1, and this disclosure will not be repeated here.
In step S630, when the time period selection control component is in the second time state to be selected, if it is monitored that the time control receives a time selection instruction, determining a second time of the output time period according to a trigger position of the time selection instruction.
Further, this step may further include, when the time period selection control component is in the second time state to be selected, if the mouse is monitored to be hovered over the time view, determining a time difference between a time corresponding to a position where the mouse is hovered and the first time of the output time period, and controlling the time view to call up a second indication control, where the second indication control is used to display the time difference.
Wherein invoking the second indication control may control the temporal view to be invoked in proximity to (e.g., above) the location at which the mouse hovers.
For example, if the user selects time "4 months and 17 days" in the state shown in fig. 2, and the state jumps to the state shown in fig. 3, the user brings up the second indication control 204 if the user hovers the mouse at a position corresponding to a time other than "4 months and 17 days" in the time view.
For example, as shown in FIG. 7, the mouse hovers at the location of day "28" with a time difference of 11 days later from the first time, shown as "11 days in the future". For another example, as shown in fig. 8, when the mouse is hovered at the position of day "6", the time difference from the first time is 11 days ahead, and is displayed as "11 days past".
And when the pointing time of the mouse changes, the display content of the second indication control is dynamically changed according to the time difference between the corresponding time of the current position of the mouse and the first time.
In an embodiment, when the time period selection control component is in the state of the second time to be selected, if it is monitored that the time control receives a time selection instruction, the second time of the output time period is determined according to a trigger position of the time selection instruction.
For example, as shown in fig. 8, when the mouse is hovered over the position of day "6", if the mouse is changed from hovering to pressing, the state of the time control changes to the state shown in fig. 9.
In step S640, the period selection control section is controlled to display a smaller value of the first time of the output period and the second time of the output period in the first display area, the period selection control section is controlled to display a larger value of the first time of the output period and the second time of the output period in the second display area, and the period selection control section is controlled to switch to the period selection completion state.
This step is the same as step S140 in the embodiment shown in fig. 1, and this disclosure will not be repeated here.
In this embodiment, when the time period selection control component is in the to-be-selected first time state, if it is monitored that the time control receives the time selection instruction, the first time of the output time period is determined according to the trigger position of the instruction, and the time period selection control component is controlled to be switched from the to-be-selected first time state to the to-be-selected second time state, if it is monitored that the time control receives the time selection instruction, the second time of the output time period is determined according to the trigger position of the time selection instruction, the output time period is displayed, and the time period selection control component is controlled to be switched to the time period selection completion state, so that the time period selection operation can be simplified, and the user experience.
As an implementation of the methods shown in the above drawings, the present application provides an embodiment of an apparatus for acquiring a time period based on a time control, and fig. 10 illustrates a schematic structural diagram of the apparatus for acquiring a time period based on a time control provided in this embodiment, where the embodiment of the apparatus corresponds to the method embodiments shown in fig. 1 to 9, and the apparatus may be specifically applied to various electronic devices. The time control includes a time period selection control component and a time view, where the time period selection control component includes a first display area and a second display area, and the time period selection control component includes a first time state to be selected, a second time state to be selected, and a time period selection completion state, as shown in fig. 10, the device for acquiring a time period based on the time control described in this embodiment includes a first monitoring control unit 1010, a second monitoring control unit 1020, a third monitoring control unit 1030, and a time period display unit 1040.
The first monitoring control unit 1010 is configured to, when the time period selection control component is in the first time state to be selected, determine a first time of an output time period according to a trigger position of a selection time instruction if it is monitored that the time control receives the selection time instruction, and control the time period selection control component to switch from the first time state to be selected to the second time state to be selected.
The second monitoring control unit 1020 is configured to control the time view to call up a first prompting component if it is monitored that the time period selection control component is switched from the first time state to be selected to the second time state to be selected, wherein the first prompting component comprises a duration selection subcomponent, a first direction selection subcomponent and a second direction selection subcomponent.
The third monitoring control unit 1030 is configured to, when the time period selection control component is the second time state to be selected: if the second direction selection subassembly is monitored to receive a click instruction, adding the current recommended duration displayed by the duration selection subassembly to the first time of the output time period to obtain a second time of the output time period; if it is monitored that the first direction selection subassembly receives a click instruction, the first time of the output time period is traced back to the current recommended time displayed by the time period selection subassembly forward to determine the second time of the output time period.
The period display unit 1040 is configured to control the period selection control component to display a smaller value of the first time of the output period and the second time of the output period in the first display area, control the period selection control component to display a larger value of the first time of the output period and the second time of the output period in the second display area, and control the period selection control component to switch to the period selection completion state.
Further, the duration selection subcomponent is also operable to modify a current recommended duration in response to a user input operation.
In an embodiment, the duration selection subcomponent is further configured to switch to an editable state after responding to a double-click operation by the user, and modify the current recommended duration according to an input operation of the user in the editable state.
Or the duration selection subcomponent is further configured to pop up a drop-down list in response to a single-click operation by the user, the drop-down list including a plurality of duration selections of recommended durations.
Further, the second monitoring control unit 1020 is configured to further control the time-view calling-out first prompting component to include:
determining a corresponding location of a first time of the output time period in the time view;
and controlling the time view to call the first prompt component out above the corresponding position.
In an embodiment, the third monitoring control unit 1030 is configured to:
and when the time period selection control component is in the state of the second time to be selected and the time control is monitored to receive a time selection instruction, determining the second time of the output time period according to the trigger position of the time selection instruction.
Further, the third monitoring control unit 1030 is further configured to:
and when the time period selection control component is in the second time state to be selected, if the mouse is monitored to be hovered on the time view, determining the time difference between the time corresponding to the hovering position of the mouse and the first time of the output time period, and controlling the time view to call a second indication control, wherein the second indication control is used for displaying the time difference.
Further, the third monitoring control unit 1030 is configured to control the time view to call up a second indication control, including:
controlling the temporal view to bring up the second indication control above the location of the mouse hover.
The device for acquiring the time period based on the time control, which is provided by the embodiment of the invention, can execute the method for acquiring the time period based on the time control, and has the corresponding functional modules and beneficial effects of the execution method.
Referring now to FIG. 11, shown is a schematic diagram of an electronic device 1300 suitable for use in implementing embodiments of the present disclosure. The terminal device in the embodiments of the present disclosure may include, but is not limited to, a mobile terminal such as a mobile phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a vehicle terminal (e.g., a car navigation terminal), and the like, and a stationary terminal such as a digital TV, a desktop computer, and the like. The electronic device shown in fig. 11 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 11, the electronic device 1100 may include a processing means (e.g., a central processing unit, a graphics processor, etc.) 1101 that may perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)1102 or a program loaded from a storage means 1108 into a Random Access Memory (RAM) 1103. In the RAM 1103, various programs and data necessary for the operation of the electronic device 1100 are also stored. The processing device 1101, the ROM 1102, and the RAM 1103 are connected to each other by a bus 1104. An input/output (I/O) interface 1105 is also connected to bus 1104.
Generally, the following devices may be connected to the I/O interface 1105: input devices 1106 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; output devices 1107 including, for example, Liquid Crystal Displays (LCDs), speakers, vibrators, and the like; storage devices 1108, including, for example, magnetic tape, hard disk, etc.; and a communication device 1109. The communication means 1109 may allow the electronic device 1100 to communicate wirelessly or wiredly with other devices to exchange data. While fig. 11 illustrates an electronic device 1100 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated by the flow chart. In such embodiments, the computer program may be downloaded and installed from a network via the communication device 1109, or installed from the storage device 1108, or installed from the ROM 1102. The computer program, when executed by the processing device 1101, performs the above-described functions defined in the methods of the embodiments of the present disclosure.
It should be noted that the computer readable medium described above in the embodiments of the present disclosure may be a computer readable signal medium or a computer readable storage medium or any combination of the two. 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 of the computer readable storage medium may include, but are not limited to: 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 disclosed embodiments, 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. In contrast, in the disclosed embodiments, a computer readable signal medium may comprise 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: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device.
The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to:
when the time period selection control component is in the first time state to be selected, if the time control is monitored to receive a time selection instruction, determining first time of an output time period according to a trigger position of the time selection instruction, and controlling the time period selection control component to be switched from the first time state to be selected to the second time state to be selected;
if the time period selection control assembly is monitored to be switched from the first time state to be selected to the second time state to be selected, controlling the time view to call a first prompt assembly, wherein the first prompt assembly comprises a duration selection subassembly, a first direction selection subassembly and a second direction selection subassembly;
when the time period selection control component is the second time state to be selected: if the second direction selection subassembly is monitored to receive a click instruction, adding the current recommended duration displayed by the duration selection subassembly to the first time of the output time period to obtain a second time of the output time period; if the first direction selection subassembly is monitored to receive a click instruction, the first time of the output time period is traced back to the current recommended time displayed by the time period selection subassembly forwards to determine the second time of the output time period;
the time period selection control means is controlled to display a smaller value of a first time of the output time period and a second time of the output time period in a first display region, the time period selection control means is controlled to display a larger value of the first time of the output time period and the second time of the output time period in a second display region, and the time period selection control means is controlled to switch to the time period selection completion state.
Computer program code for carrying out operations for embodiments of the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + +, 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).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present disclosure may be implemented by software or hardware. Where the name of a unit does not in some cases constitute a limitation of the unit itself, for example, the first retrieving unit may also be described as a "unit for retrieving at least two internet protocol addresses".
The foregoing description is only a preferred embodiment of the disclosed embodiments and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the disclosure in the embodiments of the present disclosure is not limited to the particular combination of the above-described features, but also encompasses other embodiments in which any combination of the above-described features or their equivalents is possible without departing from the scope of the present disclosure. For example, the above features and (but not limited to) the features with similar functions disclosed in the embodiments of the present disclosure are mutually replaced to form the technical solution.

Claims (11)

1. A method for obtaining a time period based on a time control is characterized in that the time control comprises a time period selection control component and a time view, wherein the time period selection control component comprises a first display area and a second display area, the time period selection control component comprises a first time state to be selected, a second time state to be selected and a time period selection completion state, and the method comprises the following steps:
when the time period selection control component is in the first time state to be selected, if the time control is monitored to receive a time selection instruction, determining first time of an output time period according to a trigger position of the time selection instruction, and controlling the time period selection control component to be switched from the first time state to be selected to the second time state to be selected;
if the time period selection control assembly is monitored to be switched from the first time state to be selected to the second time state to be selected, controlling the time view to call a first prompt assembly, wherein the first prompt assembly comprises a duration selection subassembly, a first direction selection subassembly and a second direction selection subassembly;
when the time period selection control component is the second time state to be selected: if the second direction selection subassembly is monitored to receive a click instruction, adding the current recommended duration displayed by the duration selection subassembly to the first time of the output time period to obtain a second time of the output time period; if the first direction selection subassembly is monitored to receive a click instruction, the first time of the output time period is traced back to the current recommended time displayed by the time period selection subassembly forwards to determine the second time of the output time period;
the time period selection control means is controlled to display a smaller value of a first time of the output time period and a second time of the output time period in a first display region, the time period selection control means is controlled to display a larger value of the first time of the output time period and the second time of the output time period in a second display region, and the time period selection control means is controlled to switch to the time period selection completion state.
2. The method of claim 1, wherein the duration selection subcomponent is further operable to modify a current recommended duration in response to a user input operation.
3. The method of claim 2, wherein the duration selection subcomponent is further operable to modify a current recommended duration in response to a user input operation comprises:
the time length selection subassembly is also used for responding to the double-click operation of the user and then switching to an editable state, and the current recommended time length is modified according to the input operation of the user in the editable state.
4. The method of claim 2, wherein the duration selection subcomponent is further configured to pop up a drop-down list containing duration selections of a plurality of recommended durations in response to a single-click operation by the user.
5. The method of claim 1, wherein controlling the temporal view to bring up a first cueing component comprises:
determining a corresponding location of a first time of the output time period in the time view;
and controlling the time view to call the first prompt component out above the corresponding position.
6. The method according to claim 1, wherein if it is monitored that the time slot selection control component is switched from the first time state to be selected to the second time state to be selected, the time view is controlled to call up a first prompting component, and when the time slot selection control component is in the second time state to be selected: if the second direction selection subassembly is monitored to receive a click instruction, adding the current recommended duration displayed by the duration selection subassembly to the first time of the output time period to obtain a second time of the output time period; if the first direction selection subassembly is monitored to receive a click command, a method for determining a second time of the output time period by tracing the current recommended time displayed by the time period selection subassembly back to the first time of the output time period is replaced by the following steps:
and when the time period selection control component is in the state of the second time to be selected, if the time control receives a time selection instruction, determining the second time of the output time period according to the trigger position of the time selection instruction.
7. The method of claim 6, further comprising:
and when the time period selection control component is in the second time state to be selected, if the mouse is monitored to be hovered on the time view, determining the time difference between the time corresponding to the hovering position of the mouse and the first time of the output time period, and controlling the time view to call a second indication control, wherein the second indication control is used for displaying the time difference.
8. The method of claim 7, wherein controlling the temporal view to invoke a second indication control comprises:
controlling the temporal view to bring up the second indication control above the location of the mouse hover.
9. An apparatus for obtaining a time period based on a time control, wherein the time control comprises a time period selection control component and a time view, the time period selection control component comprises a first display area and a second display area, the time period selection control component comprises a first time state to be selected, a second time state to be selected, and a time period selection completion state, and the apparatus comprises:
the first monitoring control unit is used for determining the first time of an output time period according to the trigger position of a selection time instruction when the time period selection control component is in the first time state to be selected and when the time control receives the selection time instruction, and controlling the time period selection control component to be switched from the first time state to be selected to the second time state to be selected;
the second monitoring control unit is used for controlling the time view to call out a first prompting component if the time period selection control component is monitored to be switched from the first time state to be selected to the second time state to be selected, wherein the first prompting component comprises a duration selection subassembly, a first direction selection subassembly and a second direction selection subassembly;
a third monitoring control unit, configured to, when the time period selection control component is the second time state to be selected: if the second direction selection subassembly is monitored to receive a click instruction, adding the current recommended duration displayed by the duration selection subassembly to the first time of the output time period to obtain a second time of the output time period; if the first direction selection subassembly is monitored to receive a click instruction, the first time of the output time period is traced back to the current recommended time displayed by the time period selection subassembly forwards to determine the second time of the output time period;
a time period display unit configured to control the time period selection control component to display a smaller value of the first time of the output time period and the second time of the output time period in a first display area, control the time period selection control component to display a larger value of the first time of the output time period and the second time of the output time period in a second display area, and control the time period selection control component to switch to the time period selection completion state.
10. An electronic device, comprising:
one or more processors;
a memory for storing one or more programs;
instructions which, when executed by the one or more processors, cause the one or more processors to carry out the method of any one of claims 1-8.
11. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 8.
CN202010071644.5A 2020-01-21 2020-01-21 Method, device, electronic equipment and medium for acquiring time period based on time control Active CN111291090B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010071644.5A CN111291090B (en) 2020-01-21 2020-01-21 Method, device, electronic equipment and medium for acquiring time period based on time control

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010071644.5A CN111291090B (en) 2020-01-21 2020-01-21 Method, device, electronic equipment and medium for acquiring time period based on time control

Publications (2)

Publication Number Publication Date
CN111291090A true CN111291090A (en) 2020-06-16
CN111291090B CN111291090B (en) 2024-02-13

Family

ID=71025623

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010071644.5A Active CN111291090B (en) 2020-01-21 2020-01-21 Method, device, electronic equipment and medium for acquiring time period based on time control

Country Status (1)

Country Link
CN (1) CN111291090B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112364050A (en) * 2020-11-17 2021-02-12 博锐尚格科技股份有限公司 Time period obtaining method and device based on time control, electronic equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130050533A1 (en) * 2011-08-31 2013-02-28 Samsung Electronics Co., Ltd. Schedule managing method and apparatus using optical character reader
CN104142781A (en) * 2013-05-06 2014-11-12 Sap股份公司 Quick time-related data entry
CN104598252A (en) * 2015-02-15 2015-05-06 北京恒华伟业科技股份有限公司 Time control as well as method for determining time based on time control
CN105138238A (en) * 2015-08-12 2015-12-09 北京博锐尚格节能技术股份有限公司 Time display method and apparatus
CN108140253A (en) * 2015-06-15 2018-06-08 加纳技术有限责任公司 For providing computer implemented method, client device and the readable storage medium storing program for executing that map represents and controllable time section is shown
CN110083414A (en) * 2019-03-22 2019-08-02 厦门网宿有限公司 A kind of selection of time method and apparatus, storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130050533A1 (en) * 2011-08-31 2013-02-28 Samsung Electronics Co., Ltd. Schedule managing method and apparatus using optical character reader
CN103150088A (en) * 2011-08-31 2013-06-12 三星电子株式会社 Schedule managing method and apparatus
CN104142781A (en) * 2013-05-06 2014-11-12 Sap股份公司 Quick time-related data entry
CN104598252A (en) * 2015-02-15 2015-05-06 北京恒华伟业科技股份有限公司 Time control as well as method for determining time based on time control
CN108140253A (en) * 2015-06-15 2018-06-08 加纳技术有限责任公司 For providing computer implemented method, client device and the readable storage medium storing program for executing that map represents and controllable time section is shown
CN105138238A (en) * 2015-08-12 2015-12-09 北京博锐尚格节能技术股份有限公司 Time display method and apparatus
CN110083414A (en) * 2019-03-22 2019-08-02 厦门网宿有限公司 A kind of selection of time method and apparatus, storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112364050A (en) * 2020-11-17 2021-02-12 博锐尚格科技股份有限公司 Time period obtaining method and device based on time control, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN111291090B (en) 2024-02-13

Similar Documents

Publication Publication Date Title
CN110046021B (en) Page display method, device, system, equipment and storage medium
EP4040278A1 (en) Information display method and apparatus, electronic device, and computer readable medium
US11875437B2 (en) Image drawing method based on target template image, apparatus, readable medium and electronic device
CN109857486B (en) Method, device, equipment and medium for processing program page data
WO2023040948A1 (en) Information processing method and apparatus, and terminal and storage medium
CN109634599B (en) Page view display method, device, equipment and storage medium
EP4124052A1 (en) Video production method and apparatus, and device and storage medium
CN111796820B (en) Method and device for constructing front-end page based on integrated assembly and electronic equipment
CN115145560B (en) Business orchestration method, apparatus, device, computer-readable medium, and program product
CN110865734B (en) Target object display method and device, electronic equipment and computer readable medium
US20220050562A1 (en) Methods and apparatuses for generating a hosted application
CN109634702B (en) Information prompting method and device, electronic equipment and readable medium
WO2024060943A1 (en) Comment information publishing method and apparatus, electronic device, and storage medium
CN111291090B (en) Method, device, electronic equipment and medium for acquiring time period based on time control
CN110069186B (en) Method and equipment for displaying operation interface of application
CN112905281A (en) View display method and device, electronic equipment and storage medium
CN110147283B (en) Display content switching display method, device, equipment and medium
WO2020186927A1 (en) Data sharing method, apparatus and device, and medium
CN109976857B (en) Display control method and device of terminal interface, storage medium and electronic equipment
WO2022184012A1 (en) Document creation method and apparatus, and device and storage medium
CN113377365B (en) Code display method, apparatus, device, computer readable storage medium and product
CN111382039A (en) Method, device, electronic equipment and storage medium for reporting user behavior event
CN110083407B (en) Method and device for realizing step bar in applet, electronic equipment and storage medium
CN115269886A (en) Media content processing method, device, equipment and storage medium
JP2024500300A (en) Information interaction methods, devices, and equipment

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
GR01 Patent grant
GR01 Patent grant