CN106709573B - Method and device for providing date information - Google Patents

Method and device for providing date information Download PDF

Info

Publication number
CN106709573B
CN106709573B CN201510459685.0A CN201510459685A CN106709573B CN 106709573 B CN106709573 B CN 106709573B CN 201510459685 A CN201510459685 A CN 201510459685A CN 106709573 B CN106709573 B CN 106709573B
Authority
CN
China
Prior art keywords
date
dimension
time point
operation instruction
calendar
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.)
Active
Application number
CN201510459685.0A
Other languages
Chinese (zh)
Other versions
CN106709573A (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.)
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology Co Ltd
Original Assignee
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information 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 Beijing Jingdong Century Trading Co Ltd, Beijing Jingdong Shangke Information Technology Co Ltd filed Critical Beijing Jingdong Century Trading Co Ltd
Priority to CN201510459685.0A priority Critical patent/CN106709573B/en
Publication of CN106709573A publication Critical patent/CN106709573A/en
Application granted granted Critical
Publication of CN106709573B publication Critical patent/CN106709573B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • User Interface Of Digital Computer (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention provides a method and a device for providing date information, which can switch among different dimension options according to a set date dimension to realize rapid query of the date information; meanwhile, the user can inquire the date information through the set common time point, so that the inquiry speed of the date information is improved, the time of the user is saved, and the user experience is finally improved. The method for providing date information comprises the following steps: receiving a date dimension selected by a user; determining the date in a selectable state in the date dimension according to the system date and the set date range, and displaying the calendar in the date dimension; receiving an operation instruction of a user on the date dimension, determining and updating the date in the selectable state in the calendar according to the operation instruction of the date dimension and the set date range, and outputting the updated calendar; the operation instruction of the date dimension is used for realizing switching of the date dimension and querying of dates in the same date dimension.

Description

Method and device for providing date information
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method and an apparatus for providing time information.
Background
With the development of the times, thousands of things are changing day by day. The software is really the mainstream in the change, the technology is developing, the product is also new, and the product is continuously sublimated to pursue the perfection and the optimal experience. The internet industry plays a big cattle in the software field, and both user experience and technical deposit require products to ensure high efficiency of iteration and excellent quality.
Nowadays, the internet generates a plurality of visual products surrounding data, and trends, proportions, details, summaries and the like of various services are shown through colorful reports. However, a static report is valid and useless, and neither compares history, nor predicts the future. Thus, we need the report to be dynamic and to be able to look up the actual data in any valid date. This leads to the concept of date dimension selection, i.e., querying the report by time.
At present, a plurality of date selection controls are available in the market, similar products developed based on Javascript, Jquery, Bootstrap and the like can select year (2015 year), month (2015 year 1 month) and day (2015 year 1 month 1 day) through the date controls, and a few products can also select range dates (2015 year 1 month 1 day to 2015 year 1 month 10 days). And moving a mouse into or clicking a control input box, expanding a date selection panel, expanding a selection area of a year, a month or a day, clicking a specific date character, or clicking twice, namely a start date and an end date, and finally determining to inquire. The following disadvantages exist in the prior art solutions:
1) the view operation of the panel is complex, the starting point for the user to start using is high, and a long period is needed for the user to be familiar with the use.
2) The date operation mode is not direct, and the target date can be selected in the corresponding view only by turning the date layer by layer up and down.
3) For the time points which are most concerned and most frequently used by the user, no convenient access is available, and the complicated operation process is required each time.
Disclosure of Invention
In view of this, the present invention provides a method and an apparatus for providing date information, which can switch among different dimension options according to a set date dimension, so as to realize fast query of date information; meanwhile, the user can inquire the date information through the set common time point, so that the inquiry speed of the date information is improved, the time of the user is saved, and the user experience is finally improved.
To achieve the above object, according to one aspect of the present invention, there is provided a method of providing date information.
The method for providing date information comprises the following steps: receiving a date dimension selected by a user; the date dimension includes: a day dimension, a week dimension, and a month dimension; determining the date in a selectable state in the date dimension according to the system date and the set date range, and displaying the calendar in the date dimension; receiving an operation instruction of a user on the date dimension, determining and updating the date in the selectable state in the calendar according to the operation instruction of the date dimension and the set date range, and outputting the updated calendar; the operation instruction of the date dimension is used for realizing switching of the date dimension and querying of dates in the same date dimension.
Optionally, the method further comprises: receiving an operation instruction of a user on a common time point, switching to a corresponding date dimension according to the operation instruction of the common time point, determining and updating a date in an optional state in a calendar according to the operation instruction of the common time point and a set date range, and outputting the updated calendar; the operation instruction of the common time point is used for realizing the query of the common time point.
Optionally, the common time points include a common query time point and a fast query time point; when the common time point is the common query time point, the step of updating the date in the selectable state in the calendar comprises the following steps: modifying the clickable state of the time point in the quick query time points according to the updated date in the selectable state; when the common time point is the quick query time point, the step of updating the date in the selectable state in the calendar comprises the following steps: and clearing the time point selection middle state in the current common query time point.
Optionally, the step of determining and updating the dates in the selectable state in the calendar according to the operation instruction of the date dimension and the set date range includes: judging whether a time point in a selected state exists in the current common query time points, and if so, clearing the selected state of the time point; otherwise, the clickable state of the time point in the quick query time points is modified according to the updated time point in the selectable state.
According to another aspect of the present invention, there is provided an apparatus for providing date information.
The device for providing date information of the present invention includes: a receiving module for receiving a date dimension selected by a user; the date dimension includes: a day dimension, a week dimension, and a month dimension; the determining module is used for determining the date in the selectable state in the date dimension according to the system date and the set date range, and displaying the calendar in the date dimension; the first information providing module is used for receiving an operation instruction of a user on the date dimension, determining and updating the date in the selectable state in the calendar according to the operation instruction of the date dimension and the set date range, and outputting the updated calendar; the operation instruction of the date dimension is used for realizing switching of the date dimension and querying of dates in the same date dimension.
Optionally, the calendar system further comprises a second information providing module, configured to receive an operation instruction of a user for a common time point, switch to a corresponding date dimension according to the operation instruction of the common time point, determine and update a date in an optional state in the calendar according to the operation instruction of the common time point and a set date range, and output the updated calendar; the operation instruction of the common time point is used for realizing the query of the common time point.
Optionally, an update module is further included; when the common time point is the common query time point, the clickable state of the time point in the quick query time points is modified according to the updated date in the optional state; and when the common time point is the quick query time point, clearing the time point selection middle state in the current common query time point.
Optionally, the system further comprises a judging module, configured to judge whether there is a time point in the selected state in the current common query time points, and if yes, clear the selected state of the time point; otherwise, the clickable state of the time point in the quick query time points is modified according to the updated time point in the selectable state.
According to still another aspect of embodiments of the present invention, there is provided an electronic apparatus including: one or more processors; a storage device for storing one or more programs which, when executed by the one or more processors, cause the one or more processors to implement a method of providing date information provided by the present invention.
To achieve the above object, according to still another aspect of embodiments of the present invention, there is provided a computer-readable medium on which a computer program is stored, the program implementing a method of providing date information provided by the present invention when executed by a processor.
According to the technical scheme of the invention, because different date dimensions are set, the switching among different dimension options can be realized according to the set date dimensions, and the rapid query of the date information is realized; meanwhile, due to the fact that the common time points are added, a user can inquire date information through the set common time points, the inquiry speed of the date information is improved, the time of the user is saved, and the user experience is finally improved.
Drawings
The drawings are included to provide a better understanding of the invention and are not to be construed as unduly limiting the invention. Wherein:
FIG. 1 is a schematic diagram of an apparatus for providing date information according to an embodiment of the present invention;
fig. 2 is a schematic diagram of a method of providing date information according to an embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present invention are described below with reference to the accompanying drawings, in which various details of embodiments of the invention are included to assist understanding, and which are to be considered as merely exemplary. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the invention. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
Fig. 1 is a schematic view of an apparatus for providing date information according to an embodiment of the present invention. As shown in fig. 1, an apparatus 10 for providing date information according to an embodiment of the present invention includes a receiving module 11, a determining module 12, and a first information providing module; the receiving module 11 is configured to receive a date dimension selected by a user; the date dimension includes: a day dimension, a week dimension, and a month dimension; the determining module 12 is configured to determine, according to the system date and the set date range, a date in a selectable state in the date dimension, and display a calendar in the date dimension; the first information providing module 13 is configured to receive an operation instruction of a user on the date dimension, determine and update a date in an optional state in the calendar according to the operation instruction of the date dimension and a set date range, and output the updated calendar; the operation instruction of the date dimension is used for realizing switching of the date dimension and querying of dates in the same date dimension.
The device 10 for providing date information according to the embodiment of the present invention may further include a second information providing module (not shown in the figure), configured to receive an operation instruction of a user for a common time point, switch to a corresponding date dimension according to the operation instruction of the common time point, determine and update a date in an optional state in a calendar according to the operation instruction of the common time point and a set date range, and output the updated calendar; the operation instruction of the common time point is used for realizing the query of the common time point.
The apparatus 10 for providing date information according to an embodiment of the present invention may further include an update module (not shown in the drawings); when the common time point is the common query time point, the clickable state of the time point in the quick query time points is modified according to the updated date in the optional state; and when the common time point is the quick query time point, clearing the time point selection middle state in the current common query time point.
The device 10 for providing date information according to the embodiment of the present invention may further include a determining module (not shown in the figure) for determining whether there is a time point in the selected state in the current ordinary query time points, and if yes, clearing the selected state of the time point; otherwise, the clickable state of the time point in the quick query time points is modified according to the updated time point in the selectable state.
Fig. 2 is a schematic diagram of a method of providing date information according to an embodiment of the present invention. As shown in fig. 2, the main execution body of the method is the device 10 for providing date information in fig. 1, and mainly includes the following steps S20 to S22.
Step S20: a date dimension selected by a user is received. Wherein the date dimension includes: a day dimension, a week dimension, and a month dimension. In the device 10 for providing date information, the date dimension options are provided, including the day dimension option, the week dimension option, and the month dimension option. The user selects different dimension options as desired.
Step S21: and determining the date in the selectable state in the date dimension according to the system date and the set date range, and displaying the calendar in the date dimension. The system date refers to the current date of the system, and the set date range can be set as a date range according to the current system date, or a minimum date or a maximum date is set; the date in the set date range is in an optional state; assuming that the user selects the month dimension option in step S20 and the set date range is the selectable state before the selected date, the system date 20150323 is the selectable state at a time point 3 months before in the month dimension option and is the selected state for 3 months.
Step S22: and receiving an operation instruction of the user on the date dimension, determining and updating the date in the selectable state in the calendar according to the operation instruction of the date dimension and the set date range, and outputting the updated calendar. In this step, the operation instruction of the date dimension is used for realizing the switching of the date dimension and the query of the date in the same date dimension. If the user switches between the day dimension, the week dimension, and the month dimension, the device 10 for providing date information switches between the corresponding dimension options according to an operation instruction generated by the user operation; meanwhile, when the user selects a date in one dimension option, the apparatus 10 for providing date information updates the selectable state of the dates in the calendar according to the operation instruction generated by the user when selecting the date and the set date range and outputs the updated calendar. In step S21, the selectable status is obtained 3 months and 3 months ago, when the user clicks 2 months, the date before 2 months is determined to be the selectable status and 2 months is the selected status according to the generated operation instruction and the set date range, then the device 10 for providing date information determines whether there is a time point in the selected status in the current general query time point, if yes, the selected status of the time point is cleared; otherwise, the clickable state of the time point in the quick query time points is modified according to the updated time point in the selectable state.
Meanwhile, the device 10 for providing date information may further receive an operation instruction of the user for the common time point, switch to the corresponding date dimension according to the operation instruction of the common time point, determine and update the date in the selectable state in the calendar according to the operation instruction of the common time point and the set date range, and output the updated calendar. The operation instruction of the common time point is used for realizing the query of the common time point, and the common time point comprises a common query time point and a quick query time point; for example: common query time points include, but are not limited to, previous day, last 7 days, last 15 days, present week, previous week, present month, and previous month; fast query time points include, but are not limited to, the previous day, the next day, the last week, and the next week; and selecting different time points to generate different operation instructions.
When the common time point is the common query time point, for example, the time point selected by the user is "the previous day", the device 10 for providing date information automatically switches to the dimension of the day according to the time point selected by the user, and therefore, when the user selects the previous day, the device 10 for providing date information updates the date in the selectable state in the calendar according to the operation instruction generated by the selected time point "the previous day" and the set date range; and then modifying the clickable state of the time points in the quick query time points according to the updated date in the selectable state.
When the common time point is the quick query time point, for example, the time point selected by the user is "last week", the device 10 for providing date information automatically switches to the week dimension according to the time point selected by the user, and the device 10 for providing date information updates the date in the calendar in the selectable state according to the operation instruction generated by the selected time point "last week" and the set date range, and clears the time point selection state in the current common query time point.
According to the technical scheme of the embodiment of the invention, because different date dimensions are set, switching can be performed among different dimension options according to the set date dimensions, so that rapid query of date information is realized; meanwhile, due to the fact that the common time points are added, a user can inquire date information through the set common time points, the inquiry speed of the date information is improved, the time of the user is saved, and the user experience is finally improved.
The above-described embodiments should not be construed as limiting the scope of the invention. Those skilled in the art will appreciate that various modifications, combinations, sub-combinations, and substitutions can occur, depending on design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (6)

1. A method of providing date information, comprising:
receiving a date dimension selected by a user; the date dimension includes: a day dimension, a week dimension, and a month dimension;
determining the date in a selectable state in the date dimension according to the system date and the set date range, and displaying the calendar in the date dimension;
receiving an operation instruction of a user on the date dimension, determining and updating the date in the selectable state in the calendar according to the operation instruction of the date dimension and the set date range, and outputting the updated calendar; the operation instruction of the date dimension is used for realizing the switching of the date dimension and the query of the date in the same date dimension; and
receiving an operation instruction of a user on a common time point, and switching to a corresponding date dimension according to the operation instruction of the common time point; the common time points comprise common query time points and quick query time points, and the operation instructions of the common time points are used for realizing the query of the common time points;
determining and updating the date in the selectable state in the calendar according to the operation instruction of the common query time point and the set date range, modifying the clickable state of the time point in the quick query time point, and outputting the updated calendar; or
And determining and updating the date in the selectable state in the calendar according to the operation instruction of the quick query time point and the set date range, clearing the time point selection state in the current common query time point, and outputting the updated calendar.
2. The method of claim 1, wherein the step of determining and updating the dates in the selectable state in the calendar according to the operation instructions of the date dimension and the set date range comprises the following steps:
judging whether a time point in a selected state exists in the current common query time points, and if so, clearing the selected state of the time point; otherwise, the clickable state of the time point in the quick query time points is modified according to the updated time point in the selectable state.
3. An apparatus for providing date information, comprising:
a receiving module for receiving a date dimension selected by a user; the date dimension includes: a day dimension, a week dimension, and a month dimension;
the determining module is used for determining the date in the selectable state in the date dimension according to the system date and the set date range, and displaying the calendar in the date dimension;
the first information providing module is used for receiving an operation instruction of a user on the date dimension, determining and updating the date in the selectable state in the calendar according to the operation instruction of the date dimension and the set date range, and outputting the updated calendar; the operation instruction of the date dimension is used for realizing the switching of the date dimension and the query of the date in the same date dimension; and
the second information providing module is used for receiving an operation instruction of a user on a common time point and switching to a corresponding date dimension according to the operation instruction of the common time point; the common time points comprise common query time points and quick query time points, and the operation instructions of the common time points are used for realizing the query of the common time points;
determining and updating the date in the selectable state in the calendar according to the operation instruction of the common query time point and the set date range, modifying the clickable state of the time point in the quick query time point, and outputting the updated calendar; or
And determining and updating the date in the selectable state in the calendar according to the operation instruction of the quick query time point and the set date range, clearing the time point selection state in the current common query time point, and outputting the updated calendar.
4. The apparatus of claim 3, further comprising a determining module configured to:
judging whether a time point in a selected state exists in the current common query time points, and if so, clearing the selected state of the time point; otherwise, the clickable state of the time point in the quick query time points is modified according to the updated time point in the selectable state.
5. An electronic device, comprising:
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 method of any one of claims 1-2.
6. A computer-readable medium, on which a computer program is stored, which, when being executed by a processor, carries out the method according to any one of claims 1-2.
CN201510459685.0A 2015-07-30 2015-07-30 Method and device for providing date information Active CN106709573B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510459685.0A CN106709573B (en) 2015-07-30 2015-07-30 Method and device for providing date information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510459685.0A CN106709573B (en) 2015-07-30 2015-07-30 Method and device for providing date information

Publications (2)

Publication Number Publication Date
CN106709573A CN106709573A (en) 2017-05-24
CN106709573B true CN106709573B (en) 2021-07-30

Family

ID=58901624

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510459685.0A Active CN106709573B (en) 2015-07-30 2015-07-30 Method and device for providing date information

Country Status (1)

Country Link
CN (1) CN106709573B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111026472A (en) * 2019-10-28 2020-04-17 珠海格力电器股份有限公司 Calendar configuration and date selection method and device, storage medium and electronic equipment
CN111292059B (en) * 2020-01-22 2020-11-27 深圳市道旅旅游科技股份有限公司 Date selection method and device, computer equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104598252A (en) * 2015-02-15 2015-05-06 北京恒华伟业科技股份有限公司 Time control as well as method for determining time based on time control
CN104750348A (en) * 2013-12-25 2015-07-01 中国移动通信集团公司 Calendar interaction method and equipment
CN104793845A (en) * 2015-04-01 2015-07-22 乐视致新电子科技(天津)有限公司 Date switching display method and date switching display device

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2684306Y (en) * 2003-07-10 2005-03-09 王昌平 A permanent calendar using celestial stem and terrestrial branch to display lunar calendar
CN102098389A (en) * 2011-02-16 2011-06-15 中兴通讯股份有限公司 Method and device for automatically reminding schedule as well as terminal equipment
CN104038621A (en) * 2013-03-06 2014-09-10 三星电子(中国)研发中心 Device and method for managing event information in communication terminal
CN104123633A (en) * 2014-07-24 2014-10-29 北京嘉和美康信息技术有限公司 Calendar control

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104750348A (en) * 2013-12-25 2015-07-01 中国移动通信集团公司 Calendar interaction method and equipment
CN104598252A (en) * 2015-02-15 2015-05-06 北京恒华伟业科技股份有限公司 Time control as well as method for determining time based on time control
CN104793845A (en) * 2015-04-01 2015-07-22 乐视致新电子科技(天津)有限公司 Date switching display method and date switching display device

Also Published As

Publication number Publication date
CN106709573A (en) 2017-05-24

Similar Documents

Publication Publication Date Title
KR101891765B1 (en) User interface for translation webpage
US9213478B2 (en) Visualization interaction design for cross-platform utilization
US20120304121A1 (en) Method, processing device, and article of manufacture for providing instructions for displaying time-dependent information and for allowing user selection of time ranges
US11062382B2 (en) Search machine with dynamically updated flag on graphical slider
WO2012006352A2 (en) Visualizing expressions for dynamic analytics
CN103412949B (en) Updating method and device of browser navigation page and client
EP3882791A1 (en) Method, apparatus for content recommendation, electronic device and storage medium
US20160162598A1 (en) Efficient navigation through hierarchical mappings
US8645859B2 (en) Sliding stacks
JP2020502678A (en) Personalized calendar for digital media content related events
CN104951491A (en) Information searching method and device
US10782857B2 (en) Adaptive user interface
CN106709573B (en) Method and device for providing date information
JP2024524107A (en) Form processing method, device, electronic device, medium and program product
US10467782B2 (en) Interactive hierarchical bar chart
CN111045561A (en) Display method and device of function keys, terminal equipment and storage medium
CN105511754A (en) Page jump method and device based on page pull-down operation
CN110647704B (en) Page updating method, device and equipment
CN109753612B (en) Questionnaire display control method and device, storage medium and electronic equipment
US10809904B2 (en) Interactive time range selector
CN103218425A (en) Method and device for processing browser extension items
CN102915378A (en) Method and device for changing display status of contents in webpage
JP2011107890A (en) Design support program and design support device
CN108279962B (en) Method and device for creating visual data display interface
JP6575426B2 (en) Operation support system and operation support program

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