@@ -174,6 +174,39 @@ UPDATE { logins: OLD.logins + 1 } IN users
174174
175175Read more about [ ` UPSERT ` operations] ( ../../aql/high-level-operations/upsert.md ) in AQL.
176176
177+ ### Timezone parameter for date functions
178+
179+ The following AQL date functions now accept an optional timezone argument to
180+ perform date and time calculations in certain timezones:
181+
182+ - ` DATE_DAYOFWEEK(date, timezone) `
183+ - ` DATE_YEAR(date, timezone) `
184+ - ` DATE_MONTH(date, timezone) `
185+ - ` DATE_DAY(date, timezone) `
186+ - ` DATE_HOUR(date, timezone) `
187+ - ` DATE_MINUTE(date, timezone) `
188+ - ` DATE_DAYOFYEAR(date, timezone) `
189+ - ` DATE_ISOWEEK(date, timezone) `
190+ - ` DATE_ISOWEEKYEAR(date, timezone) `
191+ - ` DATE_LEAPYEAR(date, timezone) `
192+ - ` DATE_QUARTER(date, timezone) `
193+ - ` DATE_DAYS_IN_MONTH(date, timezone) `
194+ - ` DATE_TRUNC(date, unit, timezone) `
195+ - ` DATE_ROUND(date, amount, unit, timezone) `
196+ - ` DATE_FORMAT(date, format, timezone) `
197+ - ` DATE_ADD(date, amount, unit, timezone) `
198+ - ` DATE_SUBTRACT(date, amount, unit, timezone) `
199+
200+ The following two functions accept up to two timezone arguments. If you only
201+ specify the first, then both input dates are assumed to be in this one timezone.
202+ If you specify two timezones, then the first date is assumed to be in the first
203+ timezone, and the second date in the second timezone:
204+
205+ - ` DATE_DIFF(date1, date2, unit, asFloat, timezone1, timezone2) ` (` asFloat ` can be left out)
206+ - ` DATE_COMPARE(date1, date2, unitRangeStart, unitRangeEnd, timezone1, timezone2) `
207+
208+ See [ Date functions in AQL] ( ../../aql/functions/date.md#date_dayofweek )
209+
177210## Indexing
178211
179212### Stored values can contain the ` _id ` attribute
0 commit comments