Skip to content
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

[function] toStartOfInterval #850

Closed
BohuTANG opened this issue Jun 19, 2021 · 1 comment
Closed

[function] toStartOfInterval #850

BohuTANG opened this issue Jun 19, 2021 · 1 comment
Labels
C-feature Category: feature prio: high High priority

Comments

@BohuTANG
Copy link
Member

Summary

toStartOfInterval(time_or_data, INTERVAL x unit [, time_zone]) 
This is a generalization of other functions named toStartOf*. For example,
toStartOfInterval(t, INTERVAL 1 year) returns the same as toStartOfYear(t),
toStartOfInterval(t, INTERVAL 1 month) returns the same as toStartOfMonth(t),
toStartOfInterval(t, INTERVAL 1 day) returns the same as toStartOfDay(t),
toStartOfInterval(t, INTERVAL 15 minute) returns the same as toStartOfFifteenMinutes(t) etc.

Reference:
https://clickhouse.tech/docs/en/sql-reference/functions/date-time-functions/#tostartofintervaltime-or-data-interval-x-unit-time-zone

@BohuTANG BohuTANG added the C-feature Category: feature label Jun 19, 2021
@BohuTANG BohuTANG added the prio: high High priority label Jun 19, 2021
@BohuTANG
Copy link
Member Author

Move to #853

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-feature Category: feature prio: high High priority
Projects
None yet
Development

No branches or pull requests

1 participant