-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nGQL: add new datetime functions like datediff and dateadd #3101
Comments
Sophie-Xie
changed the title
nGQL: add new datetime functions like datediff and dateadd #38
nGQL: add new datetime functions like datediff and dateadd
Oct 15, 2021
This was referenced Nov 3, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the background of the requirement
It's quite a common requirement from customers to calculate the datetime type, e.g, and today it's only possible to do so via timestamp operations, not convenient at all;
Describe the detail of the requirement
Propose to add some new datetime functions, e.g.:
datediff(date1, date2) to return the days between date1 and date2;
dateadd(date1, n) to return a new date value of date1+ n days, n can be a negative number.
etc.
Describe the scenarios of the requirement
This can be helpful in various scenarios when users need to calculate against datetime data type.
Describe the values of the requirement
General: nGQL usability
Values for customer: simplify writing nGQL when datetime calculations are involved.
Importance of the business project: it's common request.
from jingchun
The text was updated successfully, but these errors were encountered: