Commit Graph

328 Commits

Author SHA1 Message Date
Shaun Struwig
c238ccd350
Merge branch 'master' into document_addXYZ 2024-05-08 23:54:52 +02:00
Blargian
f9965b6430 Review changes 2024-05-08 23:46:15 +02:00
Shaun Struwig
c0d2a99a9e
Update date-time-functions.md 2024-05-06 16:51:23 +02:00
Robert Schulze
08bcbfc251
Merge pull request #63418 from Blargian/patch-3
[Docs] Fix casing issues
2024-05-06 14:49:49 +00:00
Robert Schulze
a65e208892
Merge pull request #63414 from rschu1ze/docs-update
Docs: Various minor docs updates
2024-05-06 14:40:14 +00:00
Shaun Struwig
87176fdd13
Update date-time-functions.md
- Change parameter `x` to `num` to be more idiomatic.
- Correct issues with casing in types.
2024-05-06 16:37:30 +02:00
Robert Schulze
1dff80374c
Docs: toStartOfInterval uses uppercase units
For consistency with existing documentation
https://clickhouse.com/docs/en/sql-reference/data-types/special-data-types/interval

... and with MySQL
2024-05-06 13:53:36 +00:00
Nikita Mikhaylov
d0c71e1a59
Merge pull request #63251 from Blargian/document_subtractXYZ
[Docs] `subtractXYZ`
2024-05-06 12:34:28 +00:00
Jordi Villar
81e4a754d9 Document start of week differences 2024-05-02 12:51:53 +02:00
Blargian
8de8095480 Update addXYZ documentation 2024-05-02 11:56:14 +02:00
Mattias Naarttijärvi
ea02af6e92
Update date-time-functions.md
Fix broken link to `toStartOfInterval`.
2024-05-02 08:49:38 +02:00
Blargian
33ec14758d Document subtractXYZ 2024-05-01 22:12:43 +02:00
Jordi Villar
8c3a9bc9c7 Revert "Merge pull request #60598 from jrdi/week-default-mode"
This reverts commit 61df8aa466, reversing
changes made to c6d21aebb5.
2024-04-30 09:23:25 +02:00
Blargian
e0c5886982 Undo changes to date-time functions which should be on another branch 2024-04-29 08:20:39 +02:00
Blargian
a4478e8db0 Update timeSlots function 2024-04-28 22:01:31 +02:00
Blargian
2218347180 Update timeslot function 2024-04-28 21:39:11 +02:00
Nikita Mikhaylov
6c7752d4c5
Merge pull request #62632 from pakud/patch-1
documenting alternative syntax that's supported for DATE_ADD, DATE_SUB
2024-04-25 15:54:07 +00:00
Robert Schulze
61df8aa466
Merge pull request #60598 from jrdi/week-default-mode
Add setting `first_day_of_week` for function `toStartOfInterval`
2024-04-17 08:31:46 +00:00
Yarik Briukhovetskyi
ffeec296a1
Merge pull request #62335 from Misz606/patch-5
Added nano- micro- milliseconds unit for `date_trunc`
2024-04-16 23:16:46 +00:00
Paweł Kudzia
210efe1621
documenting alternative syntax that's supported for DATE_ADD, DATE_SUB
this is related to issue https://github.com/ClickHouse/ClickHouse/issues/25815 

i'm adding examples for:
date_add(date, INTERVAL value unit) and date_sub(date, INTERVAL value unit) 

both are covered with a test from e3c09e9703/tests/queries/0_stateless/02160_special_functions.sql (L33) ; i think it's worth documenting them as the syntax is familiar to MySQL users [ https://dev.mysql.com/doc/refman/8.0/en/date-and-time-functions.html#function_date-add ]
2024-04-15 08:50:01 +02:00
Jordi Villar
a4c3153453 Rollback date_diff changes 2024-04-11 15:55:12 +02:00
Robert Schulze
2cc801e74c Some fixups 2024-04-11 15:55:12 +02:00
Jordi Villar
cf51d801ae Documentation 2024-04-11 15:55:12 +02:00
Robert Schulze
486128bd0e Some fixes 2024-04-11 15:55:12 +02:00
Robert Schulze
4ed518d6ad
Docs: Update date_add 2024-04-10 14:21:55 +00:00
Yarik Briukhovetskyi
d9d9174299
Update date-time-functions.md 2024-04-05 15:09:06 +02:00
Misz606
497e3bb48f
Added nanoseconds and milliseconds for date trunc. 2024-04-05 09:03:46 -04:00
Austin Kothig
cefdbfb7c3
Applying feedback. 2024-03-20 07:05:49 -07:00
Austin Kothig
5020741b25
Add support for nanosecond level precision. 2024-03-14 14:34:45 -07:00
Robert Schulze
1c10b96361
Merge remote-tracking branch 'rschu1ze/master' into revert-revert-54746_to_millisecond_function 2024-03-06 09:04:57 +00:00
robot-ch-test-poll4
c46ffbaf24
Merge pull request #60700 from Blargian/document_function_today
Update documentation for `today` function
2024-03-03 18:23:01 +01:00
Blargian
b910a66f19 Update example to showcase aliases 2024-03-03 13:18:35 +01:00
Blargian
27231a9542 Add example query and response 2024-03-03 13:14:29 +01:00
Blargian
8e79b229b1 Update documentation for function 2024-03-03 10:49:59 +01:00
Blargian
e3329a44a8 Add missing documentation for timeDiff function 2024-03-01 21:17:49 +01:00
Robert Schulze
68181ab00f
Revert "Revert "Add toMillisecond function""
This reverts commit 5225fc6a14.
2024-03-01 13:14:44 +00:00
Alexander Tokmakov
5225fc6a14
Revert "Add toMillisecond function" 2024-03-01 13:59:03 +01:00
Blargian
3e5bf7935e Fix documentation 2024-02-29 21:46:25 +01:00
Robert Schulze
b380d06e6e
Update date-time-functions.md 2024-02-28 12:20:29 +01:00
Robert Schulze
6306e51ee9
Update date-time-functions.md 2024-02-28 12:18:58 +01:00
Robert Schulze
613e426484
Some fixups 2024-02-28 11:14:53 +00:00
Shaun Struwig
0eca413fe2
Update date-time-functions.md
correct casing in documentation
2024-02-22 12:38:01 +01:00
Blargian
f9e608f369 update documentation and add a failing test 2024-02-21 21:30:49 +01:00
Nikolai Fedorovskikh
a98af159b5 [Docs] fix some typos and missing commas 2024-02-13 02:10:41 +01:00
zvonand
89beb32e64 Edit docs for toWeek() 2024-01-03 13:10:14 +01:00
yariks5s
1a66dd94fa init 2023-12-18 15:37:02 +00:00
Denny Crane
e33efaff9f
Revert "Update date-time-functions.md" 2023-11-28 15:56:51 -04:00
abakhmetev
23e81d8234
Update date-time-functions.md
month as an integer number (01-12) == %m, and not %c
2023-11-28 17:26:42 +03:00
Robert Schulze
4c236b34f0
Another small cleanup 2023-11-27 11:09:07 +00:00
Robert Schulze
a8671049e1
Various smaller fixups 2023-11-27 08:49:54 +00:00