@@ -57,32 +57,32 @@ s|Description
5757
5858Basic arithmetic operators (`+`, `-`, etc) support date/time parameters as indicated below:
5959
60- [" source"," sql",subs="attributes,callouts,macros" ]
60+ [source, sql]
6161--------------------------------------------------
6262include-tagged::{sql-specs}/docs.csv-spec[dtIntervalPlusInterval]
6363--------------------------------------------------
6464
65- [" source"," sql",subs="attributes,callouts,macros" ]
65+ [source, sql]
6666--------------------------------------------------
6767include-tagged::{sql-specs}/docs.csv-spec[dtDateTimePlusInterval]
6868--------------------------------------------------
6969
70- [" source"," sql",subs="attributes,callouts,macros" ]
70+ [source, sql]
7171--------------------------------------------------
7272include-tagged::{sql-specs}/docs.csv-spec[dtMinusInterval]
7373--------------------------------------------------
7474
75- [" source"," sql",subs="attributes,callouts,macros" ]
75+ [source, sql]
7676--------------------------------------------------
7777include-tagged::{sql-specs}/docs.csv-spec[dtIntervalMinusInterval]
7878--------------------------------------------------
7979
80- [" source"," sql",subs="attributes,callouts,macros" ]
80+ [source, sql]
8181--------------------------------------------------
8282include-tagged::{sql-specs}/docs.csv-spec[dtDateTimeMinusInterval]
8383--------------------------------------------------
8484
85- [" source"," sql",subs="attributes,callouts,macros" ]
85+ [source, sql]
8686--------------------------------------------------
8787include-tagged::{sql-specs}/docs.csv-spec[dtIntervalMul]
8888--------------------------------------------------
@@ -116,25 +116,25 @@ Unlike CURRENT_DATE, `CURDATE()` can only be used as a function with no argument
116116
117117This method always returns the same value for its every occurrence within the same query.
118118
119- [" source"," sql",subs="attributes,callouts,macros" ]
119+ [source, sql]
120120--------------------------------------------------
121121include-tagged::{sql-specs}/docs.csv-spec[currentDate]
122122--------------------------------------------------
123123
124- [" source"," sql",subs="attributes,callouts,macros" ]
124+ [source, sql]
125125--------------------------------------------------
126126include-tagged::{sql-specs}/docs.csv-spec[currentDateFunction]
127127--------------------------------------------------
128128
129- [" source"," sql",subs="attributes,callouts,macros" ]
129+ [source, sql]
130130--------------------------------------------------
131131include-tagged::{sql-specs}/docs.csv-spec[curDateFunction]
132132--------------------------------------------------
133133
134134Typically, this function (as well as its twin <<sql-functions-today,TODAY())>> function
135135is used for relative date filtering:
136136
137- [" source"," sql",subs="attributes,callouts,macros" ]
137+ [source, sql]
138138--------------------------------------------------
139139include-tagged::{sql-specs}/docs.csv-spec[filterToday]
140140--------------------------------------------------
@@ -164,25 +164,25 @@ meaning a milliseconds precision current date/time will be returned.
164164
165165This method always returns the same value for its every occurrence within the same query.
166166
167- [" source"," sql",subs="attributes,callouts,macros" ]
167+ [source, sql]
168168--------------------------------------------------
169169include-tagged::{sql-specs}/docs.csv-spec[curTs]
170170--------------------------------------------------
171171
172- [" source"," sql",subs="attributes,callouts,macros" ]
172+ [source, sql]
173173--------------------------------------------------
174174include-tagged::{sql-specs}/docs.csv-spec[curTsFunction]
175175--------------------------------------------------
176176
177- [" source"," sql",subs="attributes,callouts,macros" ]
177+ [source, sql]
178178--------------------------------------------------
179179include-tagged::{sql-specs}/docs.csv-spec[curTsFunctionPrecision]
180180--------------------------------------------------
181181
182182Typically, this function (as well as its twin <<sql-functions-now,NOW())>> function is used for
183183relative date/time filtering:
184184
185- [" source"," sql",subs="attributes,callouts,macros" ]
185+ [source, sql]
186186--------------------------------------------------
187187include-tagged::{sql-specs}/docs.csv-spec[filterNow]
188188--------------------------------------------------
@@ -210,7 +210,7 @@ DAY_OF_MONTH(datetime_exp) <1>
210210
211211Extract the day of the month from a date/datetime.
212212
213- [" source"," sql",subs="attributes,callouts,macros" ]
213+ [source, sql]
214214--------------------------------------------------
215215include-tagged::{sql-specs}/docs.csv-spec[dayOfMonth]
216216--------------------------------------------------
@@ -234,7 +234,7 @@ DAY_OF_WEEK(datetime_exp) <1>
234234
235235Extract the day of the week from a date/datetime. Sunday is `1`, Monday is `2`, etc.
236236
237- [" source"," sql",subs="attributes,callouts,macros" ]
237+ [source, sql]
238238--------------------------------------------------
239239include-tagged::{sql-specs}/docs.csv-spec[dayOfWeek]
240240--------------------------------------------------
@@ -258,7 +258,7 @@ DAY_OF_YEAR(datetime_exp) <1>
258258
259259Extract the day of the year from a date/datetime.
260260
261- [" source"," sql",subs="attributes,callouts,macros" ]
261+ [source, sql]
262262--------------------------------------------------
263263include-tagged::{sql-specs}/docs.csv-spec[dayOfYear]
264264--------------------------------------------------
@@ -282,7 +282,7 @@ DAY_NAME(datetime_exp) <1>
282282
283283Extract the day of the week from a date/datetime in text format (`Monday`, `Tuesday`...).
284284
285- [" source"," sql",subs="attributes,callouts,macros" ]
285+ [source, sql]
286286--------------------------------------------------
287287include-tagged::{sql-specs}/docs.csv-spec[dayName]
288288--------------------------------------------------
@@ -306,7 +306,7 @@ HOUR_OF_DAY(datetime_exp) <1>
306306
307307Extract the hour of the day from a date/datetime.
308308
309- [" source"," sql",subs="attributes,callouts,macros" ]
309+ [source, sql]
310310--------------------------------------------------
311311include-tagged::{sql-specs}/docs.csv-spec[hourOfDay]
312312--------------------------------------------------
@@ -331,7 +331,7 @@ ISO_DAY_OF_WEEK(datetime_exp) <1>
331331Extract the day of the week from a date/datetime, following the https://en.wikipedia.org/wiki/ISO_week_date[ISO 8601 standard].
332332Monday is `1`, Tuesday is `2`, etc.
333333
334- [" source"," sql",subs="attributes,callouts,macros" ]
334+ [source, sql]
335335--------------------------------------------------
336336include-tagged::{sql-specs}/docs.csv-spec[isoDayOfWeek]
337337--------------------------------------------------
@@ -356,7 +356,7 @@ ISO_WEEK_OF_YEAR(datetime_exp) <1>
356356Extract the week of the year from a date/datetime, following https://en.wikipedia.org/wiki/ISO_week_date[ISO 8601 standard]. The first week
357357of a year is the first week with a majority (4 or more) of its days in January.
358358
359- [" source"," sql",subs="attributes,callouts,macros" ]
359+ [source, sql]
360360--------------------------------------------------
361361include-tagged::{sql-specs}/docs.csv-spec[isoWeekOfYear]
362362--------------------------------------------------
@@ -380,7 +380,7 @@ MINUTE_OF_DAY(datetime_exp) <1>
380380
381381Extract the minute of the day from a date/datetime.
382382
383- [" source"," sql",subs="attributes,callouts,macros" ]
383+ [source, sql]
384384--------------------------------------------------
385385include-tagged::{sql-specs}/docs.csv-spec[minuteOfDay]
386386--------------------------------------------------
@@ -404,7 +404,7 @@ MINUTE_OF_HOUR(datetime_exp) <1>
404404
405405Extract the minute of the hour from a date/datetime.
406406
407- [" source"," sql",subs="attributes,callouts,macros" ]
407+ [source, sql]
408408--------------------------------------------------
409409include-tagged::{sql-specs}/docs.csv-spec[minuteOfHour]
410410--------------------------------------------------
@@ -428,7 +428,7 @@ MONTH(datetime_exp) <1>
428428
429429Extract the month of the year from a date/datetime.
430430
431- [" source"," sql",subs="attributes,callouts,macros" ]
431+ [source, sql]
432432--------------------------------------------------
433433include-tagged::{sql-specs}/docs.csv-spec[monthOfYear]
434434--------------------------------------------------
@@ -452,7 +452,7 @@ MONTH_NAME(datetime_exp) <1>
452452
453453Extract the month from a date/datetime in text format (`January`, `February`...).
454454
455- [" source"," sql",subs="attributes,callouts,macros" ]
455+ [source, sql]
456456--------------------------------------------------
457457include-tagged::{sql-specs}/docs.csv-spec[monthName]
458458--------------------------------------------------
@@ -476,15 +476,15 @@ This function offers the same functionality as <<sql-functions-current-timestamp
476476the datetime when the current query reached the server. This method always returns the same value for its every
477477occurrence within the same query.
478478
479- [" source"," sql",subs="attributes,callouts,macros" ]
479+ [source, sql]
480480--------------------------------------------------
481481include-tagged::{sql-specs}/docs.csv-spec[nowFunction]
482482--------------------------------------------------
483483
484484Typically, this function (as well as its twin <<sql-functions-current-timestamp,CURRENT_TIMESTAMP())>> function is used
485485for relative date/time filtering:
486486
487- [" source"," sql",subs="attributes,callouts,macros" ]
487+ [source, sql]
488488--------------------------------------------------
489489include-tagged::{sql-specs}/docs.csv-spec[filterNow]
490490--------------------------------------------------
@@ -508,7 +508,7 @@ SECOND_OF_MINUTE(datetime_exp) <1>
508508
509509Extract the second of the minute from a date/datetime.
510510
511- [" source"," sql",subs="attributes,callouts,macros" ]
511+ [source, sql]
512512--------------------------------------------------
513513include-tagged::{sql-specs}/docs.csv-spec[secondOfMinute]
514514--------------------------------------------------
@@ -532,7 +532,7 @@ QUARTER(datetime_exp) <1>
532532
533533Extract the year quarter the date/datetime falls in.
534534
535- [" source"," sql",subs="attributes,callouts,macros" ]
535+ [source, sql]
536536--------------------------------------------------
537537include-tagged::{sql-specs}/docs.csv-spec[quarter]
538538--------------------------------------------------
@@ -556,15 +556,15 @@ This function offers the same functionality as <<sql-functions-current-date,CURR
556556the date when the current query reached the server. This method always returns the same value for its every occurrence
557557within the same query.
558558
559- [" source"," sql",subs="attributes,callouts,macros" ]
559+ [source, sql]
560560--------------------------------------------------
561561include-tagged::{sql-specs}/docs.csv-spec[todayFunction]
562562--------------------------------------------------
563563
564564Typically, this function (as well as its twin <<sql-functions-current-timestamp,CURRENT_TIMESTAMP())>> function is used
565565for relative date filtering:
566566
567- [" source"," sql",subs="attributes,callouts,macros" ]
567+ [source, sql]
568568--------------------------------------------------
569569include-tagged::{sql-specs}/docs.csv-spec[filterToday]
570570--------------------------------------------------
@@ -588,7 +588,7 @@ WEEK_OF_YEAR(datetime_exp) <1>
588588
589589Extract the week of the year from a date/datetime.
590590
591- [" source"," sql",subs="attributes,callouts,macros" ]
591+ [source, sql]
592592--------------------------------------------------
593593include-tagged::{sql-specs}/docs.csv-spec[weekOfYear]
594594--------------------------------------------------
@@ -612,7 +612,7 @@ YEAR(datetime_exp) <1>
612612
613613Extract the year from a date/datetime.
614614
615- [" source"," sql",subs="attributes,callouts,macros" ]
615+ [source, sql]
616616--------------------------------------------------
617617include-tagged::{sql-specs}/docs.csv-spec[year]
618618--------------------------------------------------
@@ -640,14 +640,14 @@ EXTRACT(
640640Extract fields from a date/datetime by specifying the name of a <<sql-functions-datetime,datetime function>>.
641641The following
642642
643- [" source"," sql",subs="attributes,callouts,macros" ]
643+ [source, sql]
644644--------------------------------------------------
645645include-tagged::{sql-specs}/docs.csv-spec[extractDayOfYear]
646646--------------------------------------------------
647647
648648is the equivalent to
649649
650- [" source"," sql",subs="attributes,callouts,macros" ]
650+ [source, sql]
651651--------------------------------------------------
652652include-tagged::{sql-specs}/docs.csv-spec[dayOfYear]
653653--------------------------------------------------
0 commit comments