Skip to content

Commit 3c72d7d

Browse files
committed
Add toStartOfDay datetime function
1 parent 03b9adb commit 3c72d7d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

clickhouse_backend/models/functions/datetime.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
"toStartOfTenMinutes",
1212
"toStartOfFifteenMinutes",
1313
"toStartOfHour",
14+
"toStartOfDay",
1415
"toYYYYMM",
1516
"toYYYYMMDD",
1617
"toYYYYMMDDhhmmss",
@@ -80,6 +81,10 @@ class toStartOfHour(toStartOfMinute):
8081
pass
8182

8283

84+
class toStartOfDay(toStartOfMinute):
85+
pass
86+
87+
8388
class toYearWeek(Func):
8489
output_field = fields.UInt32Field()
8590

0 commit comments

Comments
 (0)