@arcgis/coding-components 1.0.0-beta.12 → 1.0.0-beta.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ar.json +858 -192
  2. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.bg.json +821 -155
  3. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.bs.json +829 -163
  4. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ca.json +829 -163
  5. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.cs.json +829 -163
  6. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.da.json +829 -163
  7. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.de.json +829 -163
  8. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.el.json +858 -192
  9. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.en.json +851 -185
  10. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.es.json +829 -163
  11. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.et.json +829 -163
  12. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.fi.json +858 -192
  13. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.fr.json +829 -163
  14. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.he.json +858 -192
  15. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.hr.json +829 -163
  16. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.hu.json +829 -163
  17. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.id.json +858 -192
  18. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.it.json +821 -155
  19. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ja.json +859 -193
  20. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ko.json +859 -193
  21. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.lt.json +829 -163
  22. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.lv.json +829 -163
  23. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.nb.json +829 -163
  24. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.nl.json +829 -163
  25. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.pl.json +829 -163
  26. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.pt-BR.json +829 -163
  27. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.pt-PT.json +829 -163
  28. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ro.json +829 -163
  29. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ru.json +858 -192
  30. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.sk.json +829 -163
  31. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.sl.json +829 -163
  32. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.sr.json +845 -179
  33. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.sv.json +829 -163
  34. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.th.json +858 -192
  35. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.tr.json +858 -192
  36. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.uk.json +858 -192
  37. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.vi.json +858 -192
  38. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.zh-CN.json +859 -193
  39. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.zh-HK.json +859 -193
  40. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.zh-TW.json +859 -193
  41. package/package.json +3 -3
@@ -1811,6 +1811,31 @@
1811
1811
  "max": 2
1812
1812
  }
1813
1813
  },
1814
+ {
1815
+ "type": "function",
1816
+ "name": "equals",
1817
+ "bundle": "core",
1818
+ "sinceVersion": "1.24",
1819
+ "link": "https://developers.arcgis.com/arcade/function-reference/logical_functions/#equals",
1820
+ "description": "Indicates if two values are equal. Object types (i.e. Arrays, Features, Dictionaries, Geometry) will return true only if they are the same object.",
1821
+ "examples": "\n##### Приклад\n\nCompares if two values are equal\n\n```arcade\nEquals(1, \"1\") // returns false\n\nvar testVal = \"test\";\nEquals(testVal, \"test\") // returns true\n\nvar array1 = Array(5);\nvar array2 = Array(5);\nEquals(array1, array2); // returns false\nEquals(array1, array1); // returns true\n```\n\n",
1822
+ "completion": {
1823
+ "label": "Equals",
1824
+ "detail": "Equals(value1, value2) -> Boolean",
1825
+ "insertText": "Equals(${1:value1_}, ${2:value2_})$0",
1826
+ "insertTextMode": 2,
1827
+ "insertTextFormat": 2,
1828
+ "kind": 3,
1829
+ "documentation": {
1830
+ "kind": "markdown",
1831
+ "value": "**[Починаючи з версії 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nIndicates if two values are equal. Object types (i.e. Arrays, Features, Dictionaries, Geometry) will return true only if they are the same object.\n\n**Параметри**\n\n- **value1**: [Any](https://developers.arcgis.com/arcade/guide/types/#any) - The first input value.\n- **value2**: [Any](https://developers.arcgis.com/arcade/guide/types/#any) - The second input value.\n\n**Повернуте значення**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean)"
1832
+ }
1833
+ },
1834
+ "parametersInfo": {
1835
+ "min": 2,
1836
+ "max": 2
1837
+ }
1838
+ },
1814
1839
  {
1815
1840
  "type": "function",
1816
1841
  "name": "iif",
@@ -2246,7 +2271,7 @@
2246
2271
  "kind": 3,
2247
2272
  "documentation": {
2248
2273
  "kind": "markdown",
2249
- "value": "**[Починаючи з версії 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nСтворює значення геш-коду для даної змінної.\n\n**Параметр**\n\n- **value**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) \\| [Number](https://developers.arcgis.com/arcade/guide/types/#number) \\| [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean) \\| [Date](https://developers.arcgis.com/arcade/guide/types/#date) \\| [Array](https://developers.arcgis.com/arcade/guide/types/#array)<[Any](https://developers.arcgis.com/arcade/guide/types/#any)> \\| [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) \\| [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) - Змінна, яку потрібно гешувати.\n\n**Повернуте значення**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
2274
+ "value": "**[Починаючи з версії 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nСтворює значення геш-коду для даної змінної.\n\n**Параметр**\n\n- **value**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) \\| [Number](https://developers.arcgis.com/arcade/guide/types/#number) \\| [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean) \\| [Date](https://developers.arcgis.com/arcade/guide/types/#date) \\| [Array](https://developers.arcgis.com/arcade/guide/types/#array)<[Any](https://developers.arcgis.com/arcade/guide/types/#any)> \\| [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) \\| [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) \\| DateOnly \\| Time - Змінна, яку потрібно гешувати.\n\n**Повернуте значення**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
2250
2275
  }
2251
2276
  },
2252
2277
  "parametersInfo": {
@@ -3100,7 +3125,7 @@
3100
3125
  "bundle": "core",
3101
3126
  "link": "https://developers.arcgis.com/arcade/function-reference/text_functions/#text",
3102
3127
  "description": "Перетворює її аргумент у текстове значення та, необов’язково, форматує її. Повертає `null` у випадку невдачі.",
3103
- "examples": "\n##### Приклади\n\nВвести число зліва від десяткового знаку\n\n```arcade\nText(123, '0000') // '0123'\n```\n\nОбмежити зліва від десяткового знаку\n\n```arcade\nText(123, '00') // '23'\n```\n\nЗгрупувати число за тисячами\n\n```arcade\nText(1234, '#,###') // '1,234'\n```\n\nОкруглити число до двох знаків після коми\n\n```arcade\nText(12345678.123, '#,###.00') // '12,345,678.12'\n```\n\nФорматувати число як валюту\n\n```arcade\nText(1234.55, '$#,###.00') // '$1,234.55'\n```\n\nОкруглити число до двох знаків після коми\n\n```arcade\nText(1.236, '#.00') // '1.24'\n```\n\nПідтримувати значущі цифри та згрупувати за тисячами\n\n```arcade\nText(1234.5678, '#,##0.00#') // '1,234.568'\n```\n\nФорматувати число та форматувати «позитивне/негативне», якщо є негативний підшаблон, він слугує тільки для вказання негативного префіксу та суфіксу\n\n```arcade\nText(-2, 'Floor #;Basement #') // 'Basement 2'\n```\n\n\n\n```arcade\nText(2, 'Floor #;Basement #') // 'Floor 2'\n```\n\nПомножити на 100 та форматувати як відсоток\n\n```arcade\nText(0.3, '#%') // '30%'\n```\n\nФормат дати та часу на даний момент. Наприклад, 'Tuesday, October 25, 2016 @ 08:43:11'\n\n```arcade\nText(Now(), 'dddd, MMMM D, Y @ h:m:s')\n```\n\nДата, що зберігається у полі `дата та час`, вже представляє місцевий час, але Arcade припускає, що це UTC Зміщує місцевий час на UTC, щоб уникнути повторного застосування зміщення часового поясу.\n\n```arcade\nText(ToUTC($feature.datetime), 'dddd, MMMM D, Y @ h:m:s')\n```\n\n",
3128
+ "examples": "\n##### Приклади\n\nВвести число зліва від десяткового знаку\n\n```arcade\nText(123, '0000') // '0123'\n```\n\nОбмежити зліва від десяткового знаку\n\n```arcade\nText(123, '00') // '23'\n```\n\nЗгрупувати число за тисячами\n\n```arcade\nText(1234, '#,###') // '1,234'\n```\n\nОкруглити число до двох знаків після коми\n\n```arcade\nText(12345678.123, '#,###.00') // '12,345,678.12'\n```\n\nФорматувати число як валюту\n\n```arcade\nText(1234.55, '$#,###.00') // '$1,234.55'\n```\n\nОкруглити число до двох знаків після коми\n\n```arcade\nText(1.236, '#.00') // '1.24'\n```\n\nПідтримувати значущі цифри та згрупувати за тисячами\n\n```arcade\nText(1234.5678, '#,##0.00#') // '1,234.568'\n```\n\nФорматувати число та форматувати «позитивне/негативне», якщо є негативний підшаблон, він слугує тільки для вказання негативного префіксу та суфіксу\n\n```arcade\nText(-2, 'Floor #;Basement #') // 'Basement 2'\n```\n\n\n\n```arcade\nText(2, 'Floor #;Basement #') // 'Floor 2'\n```\n\nПомножити на 100 та форматувати як відсоток\n\n```arcade\nText(0.3, '#%') // '30%'\n```\n\nФормат дати та часу на даний момент. Наприклад, 'Tuesday, October 25, 2016 @ 08:43:11'\n\n```arcade\nText(Now(), 'dddd, MMMM D, Y @ h:m:s')\n```\n\nДата, що зберігається у полі `дата та час`, вже представляє місцевий час, але Arcade припускає, що це UTC Зміщує місцевий час на UTC, щоб уникнути повторного застосування зміщення часового поясу.\n\n```arcade\nText(startDate, 'ddd, MMM D, Y h:mm:ss A ZZZZ')\n// returns Thu, Sep 14, 2023 10:04:49 AM PDT\n```\n\n",
3104
3129
  "completion": {
3105
3130
  "label": "Text",
3106
3131
  "detail": "Text(value, format?) -> Text",
@@ -3697,6 +3722,31 @@
3697
3722
  "max": 4
3698
3723
  }
3699
3724
  },
3725
+ {
3726
+ "type": "function",
3727
+ "name": "featuresetbyrelationshipclass",
3728
+ "bundle": "data-access",
3729
+ "sinceVersion": "1.24",
3730
+ "link": "https://developers.arcgis.com/arcade/function-reference/featureset_functions/#featuresetbyrelationshipclass",
3731
+ "description": "Returns the related records for a given feature as a FeatureSet based on the class name of the relationship.",
3732
+ "examples": "\n##### Приклад\n\nReturns the count of pole inspection related records\n\n```arcade\n// A calculation rule that returns the count of a pole inspection records.\n// When a pole feature is updated the calculation rule reads all its related inspections records from the comments field and returns the total inspection count for that feature.\nvar fsinspected = FeatureSetByRelationshipClass($feature, “pole_inspection”, [“comments”], false);\nreturn Count(fsinspected);\n```\n\n",
3733
+ "completion": {
3734
+ "label": "FeatureSetByRelationshipClass",
3735
+ "detail": "FeatureSetByRelationshipClass(inputFeature, relationshipClass, fieldNames?, includeGeometry?) -> FeatureSet",
3736
+ "insertText": "FeatureSetByRelationshipClass(${1:inputFeature_}, ${2:relationshipClass_})$0",
3737
+ "insertTextMode": 2,
3738
+ "insertTextFormat": 2,
3739
+ "kind": 3,
3740
+ "documentation": {
3741
+ "kind": "markdown",
3742
+ "value": "**[Починаючи з версії 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nReturns the related records for a given feature as a FeatureSet based on the class name of the relationship.\n\n**Параметри**\n\n- **inputFeature**: [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - The feature from which to fetch related records. This feature must come from a feature service; feature collections are not supported.\n- **relationshipClass**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - The class name of the relationship according to the feature service associated with the given feature.\n- **fieldNames** (_Optional_): [Array](https://developers.arcgis.com/arcade/guide/types/#array)<[Text](https://developers.arcgis.com/arcade/guide/types/#text)> - The fields to return in the FeatureSet. This list includes fields from both the relationship table and the input Feature.\n- **includeGeometry** (_Optional_): [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean) - Indicates whether to return the geometry for the resulting features.\n\n**Повернуте значення**: [FeatureSet](https://developers.arcgis.com/arcade/guide/types/#featureset)"
3743
+ }
3744
+ },
3745
+ "parametersInfo": {
3746
+ "min": 2,
3747
+ "max": 4
3748
+ }
3749
+ },
3700
3750
  {
3701
3751
  "type": "function",
3702
3752
  "name": "featuresetbyrelationshipname",
@@ -4349,29 +4399,54 @@
4349
4399
  "id": "date_functions",
4350
4400
  "title": "Функції дати",
4351
4401
  "items": [
4402
+ {
4403
+ "type": "function",
4404
+ "name": "changetimezone",
4405
+ "bundle": "core",
4406
+ "sinceVersion": "1.24",
4407
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#changetimezone",
4408
+ "description": "Changes the time zone used to display the given Date value. If the input `dateValue` has an `unknown` time zone, then the output Date value will display with the same date and time as the input `dateValue`, but will be assigned the `newTimeZone`.",
4409
+ "examples": "\n##### Приклади\n\nChanges the given Date's time zone from `America/New_York` to `America/Los_Angeles`\n\n```arcade\nvar inputDate = Date(2011,10,11,8,0,0,0, \"America/New_York\")\nChangeTimeZone(inputDate, \"America/Los_Angeles\");\n// returns a Date representing Nov 11, 2011, 5:00:00 AM PST\n```\n\nAssigns a Date with an `unknown` time zone to a time offset of `+07:00`\n\n```arcade\nvar inputDate = Date(2011,10,11,8,0,0,0, \"unknown\")\nChangeTimeZone(inputDate, \"+07:00\");\n// returns a Date representing Nov 11, 2011, 8:00:00 AM +07:00\n```\n\n",
4410
+ "completion": {
4411
+ "label": "ChangeTimeZone",
4412
+ "detail": "ChangeTimeZone(dateValue, newTimeZone) -> Date",
4413
+ "insertText": "ChangeTimeZone(${1:dateValue_}, ${2:newTimeZone_})$0",
4414
+ "insertTextMode": 2,
4415
+ "insertTextFormat": 2,
4416
+ "kind": 3,
4417
+ "documentation": {
4418
+ "kind": "markdown",
4419
+ "value": "**[Починаючи з версії 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nChanges the time zone used to display the given Date value. If the input `dateValue` has an `unknown` time zone, then the output Date value will display with the same date and time as the input `dateValue`, but will be assigned the `newTimeZone`.\n\n**Параметри**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - A Date value containing date and time information.\n- **newTimeZone**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - The new time zone that will be used to display the given Date value. \nThe time zone must be one of the following:\n - text representing an entry in the [IANA time zone database](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List) (e.g. `America/New_York`)\n - text representing the hours and minutes that should be added to UTC (e.g. `+07:00` or `-03:00`)\n - `system` - time zone will be set to the device or system's local time zone \n - `default` - the time zone of the profile's execution context\n - `UTC`\n - `unknown` - removes time zone information for the given value and displays the date and time as it was defined by the data source\n\n\n**Повернуте значення**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)"
4420
+ }
4421
+ },
4422
+ "parametersInfo": {
4423
+ "min": 2,
4424
+ "max": 2
4425
+ }
4426
+ },
4352
4427
  [
4353
4428
  {
4354
4429
  "type": "function",
4355
4430
  "name": "date",
4356
4431
  "bundle": "core",
4357
4432
  "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#date1",
4358
- "description": "Створює об’єкт «дата» із набору параметрів. За замовчуванням дати створюються за місцевим часом клієнта або системи.",
4359
- "examples": "\n##### Приклади\n\nСтворює дату, яка представляє заданий час за місцевим часом системи, у якій запущено Arcade\n\n```arcade\n// Date that represents Jun 02, 1987, 12:00:00 AM PST\nDate(1987,05,02)\n```\n\nСтворює дату, яка представляє поточний час за місцевим часом системи, у якій запущено Arcade\n\n```arcade\n// Date represents Jan 27, 2023, 12:41:20 PM PST\nDate()\n```\n\n",
4433
+ "description": "Creates a Date object from a set of parameters. By default, Dates are created in the time zone of the profile's execution context.",
4434
+ "examples": "\n##### Приклади\n\nCreates a Date representing the given time in the time zone of the profile's execution context running Arcade\n\n```arcade\n// Date that represents Jun 02, 1987, 12:00:00 AM PST\nDate(1987,05,02)\n```\n\nCreates a Date with time defined in a specific time zone\n\n```arcade\nDate(1990, 10, 2, 2, 23, 0, 0, \"America/New_York\");\n // Date represents Nov 2, 1990, 2:23:00 AM EST\n```\n\n",
4360
4435
  "completion": {
4361
4436
  "label": "Date",
4362
- "detail": "Date(year, month, day, hour?, minute?, second?, millisecond?) -> Date",
4437
+ "detail": "Date(year, month, day, hour?, minute?, second?, millisecond?, timeZone?) -> Date",
4363
4438
  "insertText": "Date(${1:year_}, ${2:month_}, ${3:day_})$0",
4364
4439
  "insertTextMode": 2,
4365
4440
  "insertTextFormat": 2,
4366
4441
  "kind": 3,
4367
4442
  "documentation": {
4368
4443
  "kind": "markdown",
4369
- "value": "Створює об’єкт «дата» із набору параметрів. За замовчуванням дати створюються за місцевим часом клієнта або системи.\n\n**Параметри**\n\n- **year**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - Число, яке представляє рік.\n- **month**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - Місяць (011), де `0` це січень, а `11` це грудень.\n- **day**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - День місяця (131).\n- **hour** (_Optional_): [Number](https://developers.arcgis.com/arcade/guide/types/#number) - Година дня (023).\n- **minute** (_Optional_): [Number](https://developers.arcgis.com/arcade/guide/types/#number) - Хвилина години (059).\n- **second** (_Optional_): [Number](https://developers.arcgis.com/arcade/guide/types/#number) - Секунда хвилини (059).\n- **millisecond** (_Optional_): [Number](https://developers.arcgis.com/arcade/guide/types/#number) - Мілісекунда секунди (0999).\n\n**Повернуте значення**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)"
4444
+ "value": "Creates a Date object from a set of parameters. By default, Dates are created in the time zone of the profile's execution context.\n\n**Параметри**\n\n- **year**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - A number representing a year.\n- **month**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - The month (0-11) where `0` is January and `11` is December.\n- **day**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - The day of the month (1-31).\n- **hour** (_Optional_): [Number](https://developers.arcgis.com/arcade/guide/types/#number) - The hour of the day (0-23).\n- **minute** (_Optional_): [Number](https://developers.arcgis.com/arcade/guide/types/#number) - The minute of the hour (0-59).\n- **second** (_Optional_): [Number](https://developers.arcgis.com/arcade/guide/types/#number) - The second of the minute (0-59).\n- **millisecond** (_Optional_): [Number](https://developers.arcgis.com/arcade/guide/types/#number) - The millisecond of the second (0-999).\n- **timeZone** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) - _Since 1.24_ The time zone of the Date. If not specified, the Date will be created in the default time zone of the profile's execution context. \nPossible values:\n - text representing an entry in the [IANA time zone database](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List) (e.g. `America/New_York`)\n - text representing the hours and minutes that should be added to UTC (e.g. `+07:00` or `-03:00`)\n - `system` - time zone will be set to the device or system's local time zone \n - `default` - the time zone of the profile's execution context\n - `UTC`\n - `unknown` - removes time zone information for the given value and displays the date and time as it was defined by the data source\n\n\n**Повернуте значення**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)"
4370
4445
  }
4371
4446
  },
4372
4447
  "parametersInfo": {
4373
4448
  "min": 3,
4374
- "max": 7
4449
+ "max": 8
4375
4450
  }
4376
4451
  },
4377
4452
  {
@@ -4379,8 +4454,8 @@
4379
4454
  "name": "date",
4380
4455
  "bundle": "core",
4381
4456
  "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#date2",
4382
- "description": "Створює дату із заданим номером початку відліку часу Unix у місцевому часовому поясі клієнта або системи.",
4383
- "examples": "\n##### Приклад\n\nМілісекунди з 1 січня 1970 року\n\n```arcade\nDate(1476987783555) // 'Thu Oct 20 2016 11:23:03 GMT-0700 (PDT)'\n```\n\n",
4457
+ "description": "Creates a Date with the given Unix epoch number. By default, the Date will display in the time zone of the profile's execution context. If no epoch is provided, creates a Date at the current date and time in the default time zone of the profile.",
4458
+ "examples": "\n##### Приклади\n\nMilliseconds since January 1, 1970\n\n```arcade\nDate(1476987783555) // 'Thu Oct 20 2016 11:23:03 GMT-0700 (PDT)'\n```\n\nCreates a Date representing the current time in the time zone of the profile's execution context running Arcade\n\n```arcade\n// Date represents Jan 27, 2023, 12:41:20 PM PST\nDate()\n```\n\n",
4384
4459
  "completion": {
4385
4460
  "label": "Date",
4386
4461
  "detail": "Date(epoch?) -> Date",
@@ -4390,7 +4465,7 @@
4390
4465
  "kind": 3,
4391
4466
  "documentation": {
4392
4467
  "kind": "markdown",
4393
- "value": "Створює дату із заданим номером початку відліку часу Unix у місцевому часовому поясі клієнта або системи.\n\n**Параметр**\n\n- **epoch** (_Optional_): [Number](https://developers.arcgis.com/arcade/guide/types/#number) - Число мілісекунд з 1 січня 1970 року UTC.\n\n**Повернуте значення**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)"
4468
+ "value": "Creates a Date with the given Unix epoch number. By default, the Date will display in the time zone of the profile's execution context. If no epoch is provided, creates a Date at the current date and time in the default time zone of the profile.\n\n**Параметр**\n\n- **epoch** (_Optional_): [Number](https://developers.arcgis.com/arcade/guide/types/#number) - The number of milliseconds since January 1, 1970 UTC.\n\n**Повернуте значення**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)"
4394
4469
  }
4395
4470
  },
4396
4471
  "parametersInfo": {
@@ -4403,8 +4478,8 @@
4403
4478
  "name": "date",
4404
4479
  "bundle": "core",
4405
4480
  "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#date3",
4406
- "description": "Перетворює текстове значення ISO 8601 на об’єкт «дата» у місцевому часовому поясі клієнта або системи.",
4407
- "examples": "\n##### Приклад\n\nТекстове значення ISO 8601\n\n```arcade\nDate('2016-10-20T17:41:37+00:00') // 'Thu Oct 20 2016 10:41:37 GMT-0700 (PDT)'\n```\n\n",
4481
+ "description": "Creates a Date value from an ISO 8601 text value. If a UTC offset is provided, the date will still be displayed in the time zone of the profile. If no text value is provided, creates a date at the current date and time in the time zone of the profile.",
4482
+ "examples": "\n##### Приклади\n\nCreates a Date from an ISO 8601 text value with a known time offset\n\n```arcade\nDate('2016-10-20T17:41:37+00:00') // 'Thu Oct 20 2016 10:41:37 GMT-0700 (PDT)'\n```\n\nCreates a Date from an ISO 8601 text value with an unknown time offset\n\n```arcade\nDate('2016-10-20T17:41:37') // 'Thu Oct 20 2016 5:41:37 PM PDT'\n```\n\n",
4408
4483
  "completion": {
4409
4484
  "label": "Date",
4410
4485
  "detail": "Date(timestamp?) -> Date",
@@ -4414,154 +4489,386 @@
4414
4489
  "kind": 3,
4415
4490
  "documentation": {
4416
4491
  "kind": "markdown",
4417
- "value": "Перетворює текстове значення ISO 8601 на об’єкт «дата» у місцевому часовому поясі клієнта або системи.\n\n**Параметр**\n\n- **timestamp** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) - Текстове значення ISO 8601, яке потрібно перетворити на дату.\n\n**Повернуте значення**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)"
4492
+ "value": "Creates a Date value from an ISO 8601 text value. If a UTC offset is provided, the date will still be displayed in the time zone of the profile. If no text value is provided, creates a date at the current date and time in the time zone of the profile.\n\n**Параметр**\n\n- **timestamp** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) - An ISO 8601 text value to be converted into a Date.\n\n**Повернуте значення**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)"
4418
4493
  }
4419
4494
  },
4420
4495
  "parametersInfo": {
4421
4496
  "min": 0,
4422
4497
  "max": 1
4423
4498
  }
4424
- }
4425
- ],
4426
- {
4427
- "type": "function",
4428
- "name": "dateadd",
4429
- "bundle": "core",
4430
- "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#dateadd",
4431
- "description": "Додає визначену кількість часу в заданих одиницях до дати та повертає нову дату.",
4432
- "examples": "\n##### Приклад\n\nДодає 7 днів до дати в наданому полі\n\n```arcade\nvar startDate = Date($feature.dateField);\nvar oneWeekLater = DateAdd(startDate, 7, 'days');\nreturn oneWeekLater;\n```\n\n",
4433
- "completion": {
4434
- "label": "DateAdd",
4435
- "detail": "DateAdd(dateValue, addValue, units?) -> Date",
4436
- "insertText": "DateAdd(${1:dateValue_}, ${2:addValue_})$0",
4437
- "insertTextMode": 2,
4438
- "insertTextFormat": 2,
4439
- "kind": 3,
4440
- "documentation": {
4441
- "kind": "markdown",
4442
- "value": "Додає визначену кількість часу в заданих одиницях до дати та повертає нову дату.\n\n**Параметри**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - Вхідна дата, до якої треба додати час.\n- **addValue**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - Значення, до якого треба додати дату в заданих одиницях.\n- **units** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) - Одиниці числа, яке треба додати до дати. Значення за замовчуванням: 'мілісекунди`. Підтримувані типи одиниць включають `мілісекунди`, `секунди`, `хвилини`, `години`, `дні`, `місяці`, `роки`\n\n**Повернуте значення**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)"
4499
+ },
4500
+ {
4501
+ "type": "function",
4502
+ "name": "date",
4503
+ "bundle": "core",
4504
+ "sinceVersion": "1.24",
4505
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#date4",
4506
+ "description": "Creates a Date from a DateOnly value, with an optional Time and time zone value.",
4507
+ "examples": "\n##### Приклад\n\nCreates a Date from a DateOnly and time type\n\n```arcade\nDate(DateOnly(2022,10,11), Time(\"11:20 am\"))\n// returns a Date representing Nov 11, 2022, 11:20:00 AM in an unknown time zone\n```\n\n",
4508
+ "completion": {
4509
+ "label": "Date",
4510
+ "detail": "Date(dateOnlyValue, timeValue?, timeZone?) -> Date",
4511
+ "insertText": "Date(${1:dateOnlyValue_})$0",
4512
+ "insertTextMode": 2,
4513
+ "insertTextFormat": 2,
4514
+ "kind": 3,
4515
+ "documentation": {
4516
+ "kind": "markdown",
4517
+ "value": "**[Починаючи з версії 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nCreates a Date from a DateOnly value, with an optional Time and time zone value.\n\n**Параметри**\n\n- **dateOnlyValue**: DateOnly - The DateOnly value from which to create a Date value.\n- **timeValue** (_Optional_): Time - The Time value for the Date. If not specified, the Date will be created with a time of `00:00:00`.\n- **timeZone** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) - The time zone of the Date. If not specified, the Date will be created in the `unknown` time zone. \nPossible values:\n - text representing an entry in the [IANA time zone database](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List) (e.g. `America/New_York`)\n - text representing the hours and minutes that should be added to UTC (e.g. `+07:00` or `-03:00`)\n - `system` - time zone will be set to the device or system's local time zone \n - `default` - the time zone of the profile's execution context\n - `UTC`\n - `unknown` - removes time zone information for the given value and displays the date and time as it was defined by the data source\n\n\n**Повернуте значення**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)"
4518
+ }
4519
+ },
4520
+ "parametersInfo": {
4521
+ "min": 1,
4522
+ "max": 3
4443
4523
  }
4444
4524
  },
4445
- "parametersInfo": {
4446
- "min": 2,
4447
- "max": 3
4525
+ {
4526
+ "type": "function",
4527
+ "name": "date",
4528
+ "bundle": "core",
4529
+ "sinceVersion": "1.24",
4530
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#date5",
4531
+ "description": "Creates a copy of the given Date.",
4532
+ "examples": "\n##### Приклад\n\nCreates a copy of the current Date value\n\n```arcade\nvar copiedDate = Date(Now())\n```\n\n",
4533
+ "completion": {
4534
+ "label": "Date",
4535
+ "detail": "Date(dateValue) -> Date",
4536
+ "insertText": "Date(${1:dateValue_})$0",
4537
+ "insertTextMode": 2,
4538
+ "insertTextFormat": 2,
4539
+ "kind": 3,
4540
+ "documentation": {
4541
+ "kind": "markdown",
4542
+ "value": "**[Починаючи з версії 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nCreates a copy of the given Date.\n\n**Параметр**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - The Date to copy.\n\n**Повернуте значення**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)"
4543
+ }
4544
+ },
4545
+ "parametersInfo": {
4546
+ "min": 1,
4547
+ "max": 1
4548
+ }
4448
4549
  }
4449
- },
4450
- {
4451
- "type": "function",
4452
- "name": "datediff",
4453
- "bundle": "core",
4454
- "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#datediff",
4455
- "description": "Віднімає дві дати та повертає різницю у вказаних одиницях.",
4456
- "examples": "\n##### Приклад\n\nВіднімає дві дати та повертає вік\n\n```arcade\nvar startDate = Date($feature.startDateField);\nvar endDate = Date($feature.endDateField);\nvar age = DateDiff(endDate, startDate, 'years');\nreturn age;\n```\n\n",
4457
- "completion": {
4458
- "label": "DateDiff",
4459
- "detail": "DateDiff(date1, date2, units?) -> Number",
4460
- "insertText": "DateDiff(${1:date1_}, ${2:date2_})$0",
4461
- "insertTextMode": 2,
4462
- "insertTextFormat": 2,
4463
- "kind": 3,
4464
- "documentation": {
4465
- "kind": "markdown",
4466
- "value": "Віднімає дві дати та повертає різницю у вказаних одиницях.\n\n**Параметри**\n\n- **date1**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - Значення дати, від якого треба відняти другу дату.\n- **date2**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - Значення дати, яке треба відняти від першої заданої дати.\n- **units** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) - Одиниці, у яких треба повернути різницю двох заданих дат. Підтримувані типи одиниць включають `мілісекунди`, `секунди`, `хвилини`, `години`, `дні`, `місяці`, `роки`. Значення за замовчуванням: `мілісекунди`.\n\n**Повернуте значення**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
4550
+ ],
4551
+ [
4552
+ {
4553
+ "type": "function",
4554
+ "name": "dateadd",
4555
+ "bundle": "core",
4556
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#dateadd1",
4557
+ "description": "Adds a specified amount of time in the given units to a Date and returns a new Date. If the Date has an IANA time zone, then daylight saving and other time zone driven logic will apply.",
4558
+ "examples": "\n##### Приклад\n\nAdds 7 days to the given Date\n\n```arcade\nvar startDate = Date(2023, 9, 1, 12, 00);\nvar oneWeekLater = DateAdd(startDate, 7, 'days');\nreturn oneWeekLater;\n// returns a Date representing Oct 8, 2023, 12:00:00 PM PDT\n```\n\n",
4559
+ "completion": {
4560
+ "label": "DateAdd",
4561
+ "detail": "DateAdd(dateValue, addValue, units?) -> Date",
4562
+ "insertText": "DateAdd(${1:dateValue_}, ${2:addValue_})$0",
4563
+ "insertTextMode": 2,
4564
+ "insertTextFormat": 2,
4565
+ "kind": 3,
4566
+ "documentation": {
4567
+ "kind": "markdown",
4568
+ "value": "Adds a specified amount of time in the given units to a Date and returns a new Date. If the Date has an IANA time zone, then daylight saving and other time zone driven logic will apply.\n\n**Параметри**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - The input Date to which to add time.\n- **addValue**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - The value to add to the Date in the given units.\n- **units** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) - The units of the number to add to the Date. Default is `milliseconds`. The supported unit types include `milliseconds`, `seconds`, `minutes`, `hours`, `days`, `months`, `years`\n\n**Повернуте значення**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)"
4569
+ }
4570
+ },
4571
+ "parametersInfo": {
4572
+ "min": 2,
4573
+ "max": 3
4467
4574
  }
4468
4575
  },
4469
- "parametersInfo": {
4470
- "min": 2,
4471
- "max": 3
4472
- }
4473
- },
4474
- {
4475
- "type": "function",
4476
- "name": "day",
4477
- "bundle": "core",
4478
- "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#day",
4479
- "description": "Повертає день місяця для заданої дати.",
4480
- "examples": "\n##### Приклад\n\nОтримує день місяця для поточної дати\n\n```arcade\nDay(Now())\n```\n\n",
4481
- "completion": {
4482
- "label": "Day",
4483
- "detail": "Day(dateValue) -> Number",
4484
- "insertText": "Day(${1:dateValue_})$0",
4485
- "insertTextMode": 2,
4486
- "insertTextFormat": 2,
4487
- "kind": 3,
4488
- "documentation": {
4489
- "kind": "markdown",
4490
- "value": "Повертає день місяця для заданої дати.\n\n**Параметр**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - Значення дати, від якого треба отримати день місяця.\n\n**Повернуте значення**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
4576
+ {
4577
+ "type": "function",
4578
+ "name": "dateadd",
4579
+ "bundle": "core",
4580
+ "sinceVersion": "1.24",
4581
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#dateadd2",
4582
+ "description": "Adds a specified amount of time in the given units to a DateOnly value and returns a new DateOnly value.",
4583
+ "examples": "\n##### Приклади\n\nAdds 7 days to the Date in the provided field\n\n```arcade\nvar startDate = DateOnly(2023,5,4); // equivalent to 2023-06-04\nvar oneWeekLater = DateAdd(startDate, 7, 'days');\nreturn oneWeekLater;\n// returns 2023-06-11\n```\n\nAdds 12 hours to the Date in the provided field\n\n```arcade\nvar startDate = DateOnly(2023,5,4); // equivalent to 2023-06-04\nvar hoursLater = DateAdd(startDate, 12, 'hours');\nreturn hoursLater;\n// returns the original start date, 2023-06-04\n// since 12 hours < 1 day, the DateOnly input is not changed\n```\n\n",
4584
+ "completion": {
4585
+ "label": "DateAdd",
4586
+ "detail": "DateAdd(dateOnlyValue, addValue, units?) -> DateOnly",
4587
+ "insertText": "DateAdd(${1:dateOnlyValue_}, ${2:addValue_})$0",
4588
+ "insertTextMode": 2,
4589
+ "insertTextFormat": 2,
4590
+ "kind": 3,
4591
+ "documentation": {
4592
+ "kind": "markdown",
4593
+ "value": "**[Починаючи з версії 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nAdds a specified amount of time in the given units to a DateOnly value and returns a new DateOnly value.\n\n**Параметри**\n\n- **dateOnlyValue**: DateOnly - The input DateOnly value to which to add time.\n- **addValue**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - The value to add to the date in the given units. For DateOnly inputs, this value will be rounded down to the nearest day based on a 24-hour interval. If the value to be added is less than 24 hours, then no value will be added to the DateOnly input.\n- **units** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) - The units of the number to add to the date. Default is `milliseconds`. The supported unit types include `milliseconds`, `seconds`, `minutes`, `hours`, `days`, `months`, `years`\n\n**Повернуте значення**: DateOnly"
4594
+ }
4595
+ },
4596
+ "parametersInfo": {
4597
+ "min": 2,
4598
+ "max": 3
4491
4599
  }
4492
4600
  },
4493
- "parametersInfo": {
4494
- "min": 1,
4495
- "max": 1
4601
+ {
4602
+ "type": "function",
4603
+ "name": "dateadd",
4604
+ "bundle": "core",
4605
+ "sinceVersion": "1.24",
4606
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#dateadd3",
4607
+ "description": "Adds a specified amount of time in the given units to a Time value and returns a new Time value.",
4608
+ "examples": "\n##### Приклади\n\nAdds 7 hours to the given Time\n\n```arcade\nvar startTime = Time(11,30); // equivalent to 11:30:00\nvar hoursLater = DateAdd(startTime, 7, 'hours');\nreturn hoursLater;\n// returns 18:30:00\n```\n\nAdds 90 seconds to the given Time\n\n```arcade\nvar startTime = Time(11,30); // equivalent to 11:30:00\nvar secondsLater = DateAdd(startTime, 90, \"seconds\");\nreturn secondsLater;\n// returns 11:31:30\n```\n\nAdds 25 hours to the given Time\n\n```arcade\nvar startTime = Time(11,30); // equivalent to 11:30:00\nvar hoursLater = DateAdd(startTime, 25, 'hours');\nreturn hoursLater;\n// returns 12:30:00\n```\n\n",
4609
+ "completion": {
4610
+ "label": "DateAdd",
4611
+ "detail": "DateAdd(timeValue, addValue, units?) -> Time",
4612
+ "insertText": "DateAdd(${1:timeValue_}, ${2:addValue_})$0",
4613
+ "insertTextMode": 2,
4614
+ "insertTextFormat": 2,
4615
+ "kind": 3,
4616
+ "documentation": {
4617
+ "kind": "markdown",
4618
+ "value": "**[Починаючи з версії 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nAdds a specified amount of time in the given units to a Time value and returns a new Time value.\n\n**Параметри**\n\n- **timeValue**: Time - The input Time value to which to add time.\n- **addValue**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - The value to add to the time in the given units.\n- **units** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) - The units of the number to add to the date. Default is `milliseconds`. The supported unit types include `milliseconds`, `seconds`, `minutes`, `hours`\n\n**Повернуте значення**: Time"
4619
+ }
4620
+ },
4621
+ "parametersInfo": {
4622
+ "min": 2,
4623
+ "max": 3
4624
+ }
4496
4625
  }
4497
- },
4498
- {
4499
- "type": "function",
4500
- "name": "hour",
4501
- "bundle": "core",
4502
- "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#hour",
4503
- "description": "Повертає годину часу для заданої дати (0–23).",
4504
- "examples": "\n##### Приклад\n\nОтримує годину поточного часу\n\n```arcade\nHour(Now())\n```\n\n",
4505
- "completion": {
4506
- "label": "Hour",
4507
- "detail": "Hour(dateValue) -> Number",
4508
- "insertText": "Hour(${1:dateValue_})$0",
4509
- "insertTextMode": 2,
4510
- "insertTextFormat": 2,
4511
- "kind": 3,
4512
- "documentation": {
4513
- "kind": "markdown",
4514
- "value": "Повертає годину часу для заданої дати (0–23).\n\n**Параметр**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - Значення дати, від якого треба отримати годину часу.\n\n**Повернуте значення**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
4626
+ ],
4627
+ [
4628
+ {
4629
+ "type": "function",
4630
+ "name": "datediff",
4631
+ "bundle": "core",
4632
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#datediff1",
4633
+ "description": "Subtracts two Dates, and returns the difference in the specified units.",
4634
+ "examples": "\n##### Приклади\n\nSubtracts two Dates and returns the age\n\n```arcade\nvar startDate = Date($feature.startDateField);\nvar endDate = Date($feature.endDateField);\nvar age = DateDiff(endDate, startDate, 'years');\nreturn age;\n```\n\nSubtracts two Dates and returns the difference. Since the time zone is Los Angeles\n\n```arcade\nvar startDate = Date(2022,2,23,2,23,22,0, \"America/New_York\"); // Mar 23, 2022, 2:23:22 AM EDT\nvar endDate = Date(2022,2,23,5,23,22,0, \"unknown\"); // Mar 23, 2022, 5:23:22 AM\n\nDateDiff(endDate, startDate, 'hours')\n// returns 3, since the Date with an unknown time zone is assumed to be New York time before the difference is calculated\n\nDateDiff(endDate, startDate, 'hours', \"America/Los_Angeles\");\n// returns 6, since the Date with an unknown time zone is now considered to be Los Angeles time before the difference is calculated\n```\n\n",
4635
+ "completion": {
4636
+ "label": "DateDiff",
4637
+ "detail": "DateDiff(date1, date2, units?, timeZone?) -> Number",
4638
+ "insertText": "DateDiff(${1:date1_}, ${2:date2_})$0",
4639
+ "insertTextMode": 2,
4640
+ "insertTextFormat": 2,
4641
+ "kind": 3,
4642
+ "documentation": {
4643
+ "kind": "markdown",
4644
+ "value": "Subtracts two Dates, and returns the difference in the specified units.\n\n**Параметри**\n\n- **date1**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - The Date value from which to subtract a second Date.\n- **date2**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - The Date value to subtract from the first given Date.\n- **units** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) - The units in which to return the difference of the two given Dates. The supported unit types include `milliseconds`, `seconds`, `minutes`, `hours`, `days`, `months`, `years`. The default value is `milliseconds`.\n- **timeZone** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) - _Since version 1.24_ The time zone to assign to input Dates with an unknown time zone. If not specified, then the following will happen: (1) If one input has a defined time zone and the other is unknown, then the value with the unknown time zone will assume a time zone that matches the other input. (2) If both inputs are unknown time zones, then the DateDiff will be calculated on both Dates as if they were defined in the same time zone. \nPossible values: \n - text representing an entry in the [IANA time zone database](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List) (e.g. `America/New_York`)\n - text representing the hours and minutes that should be added to UTC (e.g. `+07:00` or `-03:00`)\n - `system` - time zone will be set to the device or system's local time zone \n - `default` - the time zone of the profile's execution context\n - `UTC`\n - `unknown` - removes time zone information for the given value and displays the date and time as it was defined by the data source\n\n\n**Повернуте значення**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
4645
+ }
4646
+ },
4647
+ "parametersInfo": {
4648
+ "min": 2,
4649
+ "max": 4
4515
4650
  }
4516
4651
  },
4517
- "parametersInfo": {
4518
- "min": 1,
4519
- "max": 1
4520
- }
4521
- },
4522
- {
4523
- "type": "function",
4524
- "name": "isomonth",
4525
- "bundle": "core",
4526
- "sinceVersion": "1.12",
4527
- "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#isomonth",
4528
- "description": "Повертає місяць для заданої дати, на основі стандарту ISO 8601. Значення вказуються в діапазоні від 1 до 12, де січень — це `1`, а грудень — це `12`.",
4529
- "examples": "\n##### Приклад\n\nОтримує місяць для заданої дати, на основі стандарту ISO 8601. Повертає `12` за місяць грудень.\n\n```arcade\nISOMonth(Date(1980, 11, 31))\n```\n\n",
4530
- "completion": {
4531
- "label": "ISOMonth",
4532
- "detail": "ISOMonth(dateValue) -> Number",
4533
- "insertText": "ISOMonth(${1:dateValue_})$0",
4534
- "insertTextMode": 2,
4535
- "insertTextFormat": 2,
4536
- "kind": 3,
4537
- "documentation": {
4538
- "kind": "markdown",
4539
- "value": "**[Починаючи з версії 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nПовертає місяць для заданої дати, на основі стандарту ISO 8601. Значення вказуються в діапазоні від 1 до 12, де січень — це `1`, а грудень — це `12`.\n\n**Параметр**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - Значення дати, від якого треба отримати місяць.\n\n**Повернуте значення**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
4652
+ {
4653
+ "type": "function",
4654
+ "name": "datediff",
4655
+ "bundle": "core",
4656
+ "sinceVersion": "1.24",
4657
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#datediff2",
4658
+ "description": "Subtracts two DateOnly values, and returns the difference in the specified units.",
4659
+ "examples": "\n##### Приклад\n\nSubtracts two DateOnly values and returns the difference in years\n\n```arcade\nvar startDate = DateOnly(1996,11,10);\nvar endDate = DateOnly(); // today's date\nvar age = DateDiff(endDate, startDate, 'years');\nFloor(age); // round down\n// returns 26\n```\n\n",
4660
+ "completion": {
4661
+ "label": "DateDiff",
4662
+ "detail": "DateDiff(dateOnly1, dateOnly2, units?) -> Number",
4663
+ "insertText": "DateDiff(${1:dateOnly1_}, ${2:dateOnly2_})$0",
4664
+ "insertTextMode": 2,
4665
+ "insertTextFormat": 2,
4666
+ "kind": 3,
4667
+ "documentation": {
4668
+ "kind": "markdown",
4669
+ "value": "**[Починаючи з версії 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nSubtracts two DateOnly values, and returns the difference in the specified units.\n\n**Параметри**\n\n- **dateOnly1**: DateOnly - The DateOnly value from which to subtract a second DateOnly value.\n- **dateOnly2**: DateOnly - The DateOnly value to subtract from the first given DateOnly value.\n- **units** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) - The units in which to return the difference of the two given DateOnly values. The supported unit types include `milliseconds`, `seconds`, `minutes`, `hours`, `days`, `months`, `years`. The default value is `milliseconds`.\n\n**Повернуте значення**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
4670
+ }
4671
+ },
4672
+ "parametersInfo": {
4673
+ "min": 2,
4674
+ "max": 3
4540
4675
  }
4541
4676
  },
4542
- "parametersInfo": {
4543
- "min": 1,
4544
- "max": 1
4677
+ {
4678
+ "type": "function",
4679
+ "name": "datediff",
4680
+ "bundle": "core",
4681
+ "sinceVersion": "1.24",
4682
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#datediff3",
4683
+ "description": "Subtracts two Time values, and returns the difference in the specified units.",
4684
+ "examples": "\n##### Приклад\n\nSubtracts two Time values and returns the difference in hours\n\n```arcade\nDateDiff(Time(23,0), Time(9,0), 'hours')\n// returns 14\n```\n\n",
4685
+ "completion": {
4686
+ "label": "DateDiff",
4687
+ "detail": "DateDiff(time1, time2, units?) -> Number",
4688
+ "insertText": "DateDiff(${1:time1_}, ${2:time2_})$0",
4689
+ "insertTextMode": 2,
4690
+ "insertTextFormat": 2,
4691
+ "kind": 3,
4692
+ "documentation": {
4693
+ "kind": "markdown",
4694
+ "value": "**[Починаючи з версії 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nSubtracts two Time values, and returns the difference in the specified units.\n\n**Параметри**\n\n- **time1**: Time - The Time value from which to subtract a second Time value.\n- **time2**: Time - The Time value to subtract from the first given Time value.\n- **units** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) - The units in which to return the difference of the two given Time values. The supported unit types include `milliseconds`, `seconds`, `minutes`, `hours`. The default value is `milliseconds`.\n\n**Повернуте значення**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
4695
+ }
4696
+ },
4697
+ "parametersInfo": {
4698
+ "min": 2,
4699
+ "max": 3
4700
+ }
4545
4701
  }
4546
- },
4547
- {
4702
+ ],
4703
+ [
4704
+ {
4705
+ "type": "function",
4706
+ "name": "dateonly",
4707
+ "bundle": "core",
4708
+ "sinceVersion": "1.24",
4709
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#dateonly1",
4710
+ "description": "Creates a DateOnly value based on the current date in the time zone of the profile's execution context.",
4711
+ "examples": "\n##### Приклад\n\nReturns the current DateOnly (no time)\n\n```arcade\nDateOnly()\n// returns the current date, i.e. 2023-09-12\n```\n\n",
4712
+ "completion": {
4713
+ "label": "DateOnly",
4714
+ "detail": "DateOnly() -> DateOnly",
4715
+ "insertText": "DateOnly($0)",
4716
+ "insertTextMode": 2,
4717
+ "insertTextFormat": 2,
4718
+ "kind": 3,
4719
+ "documentation": {
4720
+ "kind": "markdown",
4721
+ "value": "**[Починаючи з версії 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nCreates a DateOnly value based on the current date in the time zone of the profile's execution context.\n\n**Повернуте значення**: DateOnly"
4722
+ }
4723
+ },
4724
+ "parametersInfo": {
4725
+ "min": 0,
4726
+ "max": 0
4727
+ }
4728
+ },
4729
+ {
4730
+ "type": "function",
4731
+ "name": "dateonly",
4732
+ "bundle": "core",
4733
+ "sinceVersion": "1.24",
4734
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#dateonly2",
4735
+ "description": "Creates a DateOnly value from a given date.",
4736
+ "examples": "\n##### Приклад\n\nReturns the DateOnly from the given date\n\n```arcade\nDateOnly(Date(2008,10,11,10,30));\n// returns 2008-11-11\n```\n\n",
4737
+ "completion": {
4738
+ "label": "DateOnly",
4739
+ "detail": "DateOnly(dateValue) -> DateOnly",
4740
+ "insertText": "DateOnly(${1:dateValue_})$0",
4741
+ "insertTextMode": 2,
4742
+ "insertTextFormat": 2,
4743
+ "kind": 3,
4744
+ "documentation": {
4745
+ "kind": "markdown",
4746
+ "value": "**[Починаючи з версії 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nCreates a DateOnly value from a given date.\n\n**Параметр**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - The date from which to create the DateOnly value.\n\n**Повернуте значення**: DateOnly"
4747
+ }
4748
+ },
4749
+ "parametersInfo": {
4750
+ "min": 1,
4751
+ "max": 1
4752
+ }
4753
+ },
4754
+ {
4755
+ "type": "function",
4756
+ "name": "dateonly",
4757
+ "bundle": "core",
4758
+ "sinceVersion": "1.24",
4759
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#dateonly3",
4760
+ "description": "Creates a DateOnly date with the given Unix epoch number.",
4761
+ "examples": "\n##### Приклад\n\nReturns the DateOnly from the number of milliseconds since January 1, 1970\n\n```arcade\nDateOnly(1476987783555);\n// returns 2016-10-20\n```\n\n",
4762
+ "completion": {
4763
+ "label": "DateOnly",
4764
+ "detail": "DateOnly(epoch) -> DateOnly",
4765
+ "insertText": "DateOnly(${1:epoch_})$0",
4766
+ "insertTextMode": 2,
4767
+ "insertTextFormat": 2,
4768
+ "kind": 3,
4769
+ "documentation": {
4770
+ "kind": "markdown",
4771
+ "value": "**[Починаючи з версії 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nCreates a DateOnly date with the given Unix epoch number.\n\n**Параметр**\n\n- **epoch**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - The number of milliseconds since January 1, 1970 UTC.\n\n**Повернуте значення**: DateOnly"
4772
+ }
4773
+ },
4774
+ "parametersInfo": {
4775
+ "min": 1,
4776
+ "max": 1
4777
+ }
4778
+ },
4779
+ {
4780
+ "type": "function",
4781
+ "name": "dateonly",
4782
+ "bundle": "core",
4783
+ "sinceVersion": "1.24",
4784
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#dateonly4",
4785
+ "description": "Creates a DateOnly value from inputs representing the year, month, and day.",
4786
+ "examples": "\n##### Приклад\n\nCreates a DateOnly value from inputs representing the year, month, and day\n\n```arcade\nDateOnly(1996, 11, 10)\n// returns 1996-12-10\n```\n\n",
4787
+ "completion": {
4788
+ "label": "DateOnly",
4789
+ "detail": "DateOnly(year, month, day) -> DateOnly",
4790
+ "insertText": "DateOnly(${1:year_}, ${2:month_}, ${3:day_})$0",
4791
+ "insertTextMode": 2,
4792
+ "insertTextFormat": 2,
4793
+ "kind": 3,
4794
+ "documentation": {
4795
+ "kind": "markdown",
4796
+ "value": "**[Починаючи з версії 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nCreates a DateOnly value from inputs representing the year, month, and day.\n\n**Параметри**\n\n- **year**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - A number representing a year.\n- **month**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - The month (0-11) where `0` is January and `11` is December.\n- **day**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - The day of the month (1-31).\n\n**Повернуте значення**: DateOnly"
4797
+ }
4798
+ },
4799
+ "parametersInfo": {
4800
+ "min": 3,
4801
+ "max": 3
4802
+ }
4803
+ },
4804
+ {
4805
+ "type": "function",
4806
+ "name": "dateonly",
4807
+ "bundle": "core",
4808
+ "sinceVersion": "1.24",
4809
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#dateonly5",
4810
+ "description": "Creates a DateOnly value from a text input representing an ISO formatted date, or another formatted text with an additional input indicating the date's format.",
4811
+ "examples": "\n##### Приклади\n\nCreates a DateOnly value from a text value representing the date\n\n```arcade\nDateOnly(\"2023-05-11T13:43:18.990+01:00\");\n// returns 2023-05-11\n```\n\nCreates a DateOnly value from a text value representing the date in the given format\n\n```arcade\nDateOnly(\"10 Jan 2022\",\"D MMM Y\")\n// returns 2022-01-10\n```\n\n",
4812
+ "completion": {
4813
+ "label": "DateOnly",
4814
+ "detail": "DateOnly(dateValue, format?) -> DateOnly",
4815
+ "insertText": "DateOnly(${1:dateValue_})$0",
4816
+ "insertTextMode": 2,
4817
+ "insertTextFormat": 2,
4818
+ "kind": 3,
4819
+ "documentation": {
4820
+ "kind": "markdown",
4821
+ "value": "**[Починаючи з версії 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nCreates a DateOnly value from a text input representing an ISO formatted date, or another formatted text with an additional input indicating the date's format.\n\n**Параметри**\n\n- **dateValue**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - A text value representing a date. This should either be an ISO formatted date or another formatted text representing a date. If this value does not follow ISO format, the `format` parameter must be defined indicating the date's format.\n- **format** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) - A text value indicating the format of the `dateValue` input. \nPossible values: \n - `D`: Day of the month, not padded (1 - 31) \n - `DD`: Day of the month, padded (01 - 31) \n - `DDD`: Ordinal day of the year (1 - 365) \n - `d`: Day of the week (1 - 7) \n - `ddd`: Abbreviated day of the week (e.g. Mon) \n - `dddd`: Full day of the week (e.g. Monday) \n - `M`: Month number (1 - 12) \n - `MM`: Month number, padded (01 - 12) \n - `MMM`: Abbreviated month name (e.g. Jan) \n - `MMMM`: Full month name (e.g. January) \n - `Y`: Full year \n - `YY`: Two-digit year \n\n\n**Повернуте значення**: DateOnly"
4822
+ }
4823
+ },
4824
+ "parametersInfo": {
4825
+ "min": 1,
4826
+ "max": 2
4827
+ }
4828
+ },
4829
+ {
4830
+ "type": "function",
4831
+ "name": "dateonly",
4832
+ "bundle": "core",
4833
+ "sinceVersion": "1.24",
4834
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#dateonly6",
4835
+ "description": "Creates a copy of a DateOnly value.",
4836
+ "examples": "\n##### Приклад\n\nCreates a copy of DateOnly value\n\n```arcade\nvar originalDateOnly = DateOnly(1996,11,10)\nvar copiedDateOnly = DateOnly(originalDateOnly)\nreturn copiedDateOnly;\n```\n\n",
4837
+ "completion": {
4838
+ "label": "DateOnly",
4839
+ "detail": "DateOnly(dateOnlyValue) -> DateOnly",
4840
+ "insertText": "DateOnly(${1:dateOnlyValue_})$0",
4841
+ "insertTextMode": 2,
4842
+ "insertTextFormat": 2,
4843
+ "kind": 3,
4844
+ "documentation": {
4845
+ "kind": "markdown",
4846
+ "value": "**[Починаючи з версії 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nCreates a copy of a DateOnly value.\n\n**Параметр**\n\n- **dateOnlyValue**: DateOnly - The DateOnly value to copy.\n\n**Повернуте значення**: DateOnly"
4847
+ }
4848
+ },
4849
+ "parametersInfo": {
4850
+ "min": 1,
4851
+ "max": 1
4852
+ }
4853
+ }
4854
+ ],
4855
+ {
4548
4856
  "type": "function",
4549
- "name": "isoweek",
4857
+ "name": "day",
4550
4858
  "bundle": "core",
4551
- "sinceVersion": "1.12",
4552
- "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#isoweek",
4553
- "description": "Повертає тиждень року для заданої дати на основі календаря дати тижня ISO 8601. Діапазон значень в межах 1-53, де перший тиждень року — це `1`, а останній тиждень року — це `52` або`53`, залежно від року.",
4554
- "examples": "\n##### Приклад\n\nОтримує тиждень для заданої дати, на основі стандарту ISO 8601. Повертає `1`, оскільки ця дата входить у перший тиждень наступного року.\n\n```arcade\nISOWeek(Date(1980, 11, 31))\n```\n\n",
4859
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#day",
4860
+ "description": "Повертає день місяця для заданої дати.",
4861
+ "examples": "\n##### Приклади\n\nОтримує день місяця для поточної дати\n\n```arcade\nDay(Now())\n```\n\nReturns the day of the month from a DateOnly value\n\n```arcade\nDay(DateOnly(1996, 11, 10))\n// returns 10\n```\n\n",
4555
4862
  "completion": {
4556
- "label": "ISOWeek",
4557
- "detail": "ISOWeek(dateValue) -> Number",
4558
- "insertText": "ISOWeek(${1:dateValue_})$0",
4863
+ "label": "Day",
4864
+ "detail": "Day(dateValue) -> Number",
4865
+ "insertText": "Day(${1:dateValue_})$0",
4559
4866
  "insertTextMode": 2,
4560
4867
  "insertTextFormat": 2,
4561
4868
  "kind": 3,
4562
4869
  "documentation": {
4563
4870
  "kind": "markdown",
4564
- "value": "**[Починаючи з версії 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nПовертає тиждень року для заданої дати на основі календаря дати тижня ISO 8601. Діапазон значень в межах 1-53, де перший тиждень року — це `1`, а останній тиждень року — це `52` або`53`, залежно від року.\n\n**Параметр**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - Значення дати, від якої треба отримати тиждень.\n\n**Повернуте значення**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
4871
+ "value": "Повертає день місяця для заданої дати.\n\n**Параметр**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) \\| DateOnly - Значення дати, від якого треба отримати день місяця.\n\n**Повернуте значення**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
4565
4872
  }
4566
4873
  },
4567
4874
  "parametersInfo": {
@@ -4569,24 +4876,75 @@
4569
4876
  "max": 1
4570
4877
  }
4571
4878
  },
4879
+ [
4880
+ {
4881
+ "type": "function",
4882
+ "name": "hour",
4883
+ "bundle": "core",
4884
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#hour1",
4885
+ "description": "Returns the hour of the time in the given date (0-23).",
4886
+ "examples": "\n##### Приклад\n\nGets the hour of the current time\n\n```arcade\nHour(Now())\n```\n\n",
4887
+ "completion": {
4888
+ "label": "Hour",
4889
+ "detail": "Hour(dateValue) -> Number",
4890
+ "insertText": "Hour(${1:dateValue_})$0",
4891
+ "insertTextMode": 2,
4892
+ "insertTextFormat": 2,
4893
+ "kind": 3,
4894
+ "documentation": {
4895
+ "kind": "markdown",
4896
+ "value": "Returns the hour of the time in the given date (0-23).\n\n**Параметр**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - A Date value from which to get the hour of the time.\n\n**Повернуте значення**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
4897
+ }
4898
+ },
4899
+ "parametersInfo": {
4900
+ "min": 1,
4901
+ "max": 1
4902
+ }
4903
+ },
4904
+ {
4905
+ "type": "function",
4906
+ "name": "hour",
4907
+ "bundle": "core",
4908
+ "sinceVersion": "1.24",
4909
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#hour2",
4910
+ "description": "Returns the hour of the given time (0-23).",
4911
+ "examples": "\n##### Приклад\n\nGets the hour of the time\n\n```arcade\nHour(Time(2, 59, 23))\n// returns 2\n```\n\n",
4912
+ "completion": {
4913
+ "label": "Hour",
4914
+ "detail": "Hour(timeValue) -> Number",
4915
+ "insertText": "Hour(${1:timeValue_})$0",
4916
+ "insertTextMode": 2,
4917
+ "insertTextFormat": 2,
4918
+ "kind": 3,
4919
+ "documentation": {
4920
+ "kind": "markdown",
4921
+ "value": "**[Починаючи з версії 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nReturns the hour of the given time (0-23).\n\n**Параметр**\n\n- **timeValue**: Time - A Time value from which to get the hour.\n\n**Повернуте значення**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
4922
+ }
4923
+ },
4924
+ "parametersInfo": {
4925
+ "min": 1,
4926
+ "max": 1
4927
+ }
4928
+ }
4929
+ ],
4572
4930
  {
4573
4931
  "type": "function",
4574
- "name": "isoweekday",
4932
+ "name": "isomonth",
4575
4933
  "bundle": "core",
4576
4934
  "sinceVersion": "1.12",
4577
- "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#isoweekday",
4578
- "description": "Повертає день тижня для заданої дати, на основі стандарту ISO 8601. Значення вказуються в діапазоні від 1 до 7, де пнеділок — це `1`, а неділя — це `7`.",
4579
- "examples": "\n##### Приклад\n\nПовертає день тижня для заданої дати, на основі стандарту ISO 8601. Повертає `3` для середи.\n\n```arcade\nISOWeekday(Date(1980, 11, 31))\n```\n\n",
4935
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#isomonth",
4936
+ "description": "Повертає місяць для заданої дати, на основі стандарту ISO 8601. Значення вказуються в діапазоні від 1 до 12, де січень — це `1`, а грудень — це `12`.",
4937
+ "examples": "\n##### Приклади\n\nОтримує місяць для заданої дати, на основі стандарту ISO 8601. Повертає `12` за місяць грудень.\n\n```arcade\nISOMonth(Date(1980, 11, 31))\n```\n\nGets the month of the given DateOnly value, based on the ISO 8601 standard.\n\n```arcade\nISOMonth(DateOnly(1996, 0, 10))\n// returns 1, for January\n```\n\n",
4580
4938
  "completion": {
4581
- "label": "ISOWeekday",
4582
- "detail": "ISOWeekday(dateValue) -> Number",
4583
- "insertText": "ISOWeekday(${1:dateValue_})$0",
4939
+ "label": "ISOMonth",
4940
+ "detail": "ISOMonth(dateValue) -> Number",
4941
+ "insertText": "ISOMonth(${1:dateValue_})$0",
4584
4942
  "insertTextMode": 2,
4585
4943
  "insertTextFormat": 2,
4586
4944
  "kind": 3,
4587
4945
  "documentation": {
4588
4946
  "kind": "markdown",
4589
- "value": "**[Починаючи з версії 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nПовертає день тижня для заданої дати, на основі стандарту ISO 8601. Значення вказуються в діапазоні від 1 до 7, де пнеділок — це `1`, а неділя — це `7`.\n\n**Параметр**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - Значення дати, від якого треба повернути день тижня.\n\n**Повернуте значення**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
4947
+ "value": "**[Починаючи з версії 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nПовертає місяць для заданої дати, на основі стандарту ISO 8601. Значення вказуються в діапазоні від 1 до 12, де січень — це `1`, а грудень — це `12`.\n\n**Параметр**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) \\| DateOnly - Значення дати, від якого треба отримати місяць.\n\n**Повернуте значення**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
4590
4948
  }
4591
4949
  },
4592
4950
  "parametersInfo": {
@@ -4596,22 +4954,22 @@
4596
4954
  },
4597
4955
  {
4598
4956
  "type": "function",
4599
- "name": "isoyear",
4957
+ "name": "isoweek",
4600
4958
  "bundle": "core",
4601
4959
  "sinceVersion": "1.12",
4602
- "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#isoyear",
4603
- "description": "Повертає рік для заданої дати на основі календаря дати тижня ISO 8601.",
4604
- "examples": "\n##### Приклад\n\nОтримує рік для заданої дати на основі календаря дати тижня ISO 8601. Повертає `1981`, оскільки ця дата входить у перший тиждень наступного року.\n\n```arcade\nISOYear(Date(1980, 11, 31))\n```\n\n",
4960
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#isoweek",
4961
+ "description": "Повертає тиждень року для заданої дати на основі календаря дати тижня ISO 8601. Діапазон значень в межах 1-53, де перший тиждень року — це `1`, а останній тиждень року — це `52` або`53`, залежно від року.",
4962
+ "examples": "\n##### Приклади\n\nОтримує тиждень для заданої дати, на основі стандарту ISO 8601. Повертає `1`, оскільки ця дата входить у перший тиждень наступного року.\n\n```arcade\nISOWeek(Date(1980, 11, 31))\n```\n\nGets the week of the given DateOnly value, based on the ISO 8601 standard.\n\n```arcade\nISOWeek(DateOnly(1996, 11, 10))\n// returns 50\n```\n\n",
4605
4963
  "completion": {
4606
- "label": "ISOYear",
4607
- "detail": "ISOYear(dateValue) -> Number",
4608
- "insertText": "ISOYear(${1:dateValue_})$0",
4964
+ "label": "ISOWeek",
4965
+ "detail": "ISOWeek(dateValue) -> Number",
4966
+ "insertText": "ISOWeek(${1:dateValue_})$0",
4609
4967
  "insertTextMode": 2,
4610
4968
  "insertTextFormat": 2,
4611
4969
  "kind": 3,
4612
4970
  "documentation": {
4613
4971
  "kind": "markdown",
4614
- "value": "**[Починаючи з версії 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nПовертає рік для заданої дати на основі календаря дати тижня ISO 8601.\n\n**Параметр**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - Значення дати, від якого треба отримати рік.\n\n**Повернуте значення**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
4972
+ "value": "**[Починаючи з версії 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nПовертає тиждень року для заданої дати на основі календаря дати тижня ISO 8601. Діапазон значень в межах 1-53, де перший тиждень року — це `1`, а останній тиждень року — це `52` або`53`, залежно від року.\n\n**Параметр**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) \\| DateOnly - Значення дати, від якої треба отримати тиждень.\n\n**Повернуте значення**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
4615
4973
  }
4616
4974
  },
4617
4975
  "parametersInfo": {
@@ -4621,21 +4979,22 @@
4621
4979
  },
4622
4980
  {
4623
4981
  "type": "function",
4624
- "name": "millisecond",
4982
+ "name": "isoweekday",
4625
4983
  "bundle": "core",
4626
- "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#millisecond",
4627
- "description": "Повертає мілісекунду часу для дати.",
4628
- "examples": "\n##### Приклад\n\nОтримує мілісекунду поточного часу\n\n```arcade\nMillisecond(Now())\n```\n\n",
4984
+ "sinceVersion": "1.12",
4985
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#isoweekday",
4986
+ "description": "Повертає день тижня для заданої дати, на основі стандарту ISO 8601. Значення вказуються в діапазоні від 1 до 7, де пнеділок — це `1`, а неділя — це `7`.",
4987
+ "examples": "\n##### Приклади\n\nПовертає день тижня для заданої дати, на основі стандарту ISO 8601. Повертає `3` для середи.\n\n```arcade\nISOWeekday(Date(1980, 11, 31))\n```\n\nReturns the day of the week of the given DateOnly value, based on the ISO 8601 standard.\n\n```arcade\nISOWeekday(DateOnly(1996, 11, 10))\n// returns 2, for Tuesday\n```\n\n",
4629
4988
  "completion": {
4630
- "label": "Millisecond",
4631
- "detail": "Millisecond(dateValue) -> Number",
4632
- "insertText": "Millisecond(${1:dateValue_})$0",
4989
+ "label": "ISOWeekday",
4990
+ "detail": "ISOWeekday(dateValue) -> Number",
4991
+ "insertText": "ISOWeekday(${1:dateValue_})$0",
4633
4992
  "insertTextMode": 2,
4634
4993
  "insertTextFormat": 2,
4635
4994
  "kind": 3,
4636
4995
  "documentation": {
4637
4996
  "kind": "markdown",
4638
- "value": "Повертає мілісекунду часу для дати.\n\n**Параметр**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - Значення дати, від якого треба отримати мілісекунду часу.\n\n**Повернуте значення**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
4997
+ "value": "**[Починаючи з версії 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nПовертає день тижня для заданої дати, на основі стандарту ISO 8601. Значення вказуються в діапазоні від 1 до 7, де пнеділок — це `1`, а неділя — це `7`.\n\n**Параметр**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) \\| DateOnly - Значення дати, від якого треба повернути день тижня.\n\n**Повернуте значення**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
4639
4998
  }
4640
4999
  },
4641
5000
  "parametersInfo": {
@@ -4645,21 +5004,22 @@
4645
5004
  },
4646
5005
  {
4647
5006
  "type": "function",
4648
- "name": "minute",
5007
+ "name": "isoyear",
4649
5008
  "bundle": "core",
4650
- "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#minute",
4651
- "description": "Повертає хвилину часу для заданої дати.",
4652
- "examples": "\n##### Приклад\n\nОтримує хвилину поточного часу\n\n```arcade\nMinute(Now())\n```\n\n",
5009
+ "sinceVersion": "1.12",
5010
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#isoyear",
5011
+ "description": "Повертає рік для заданої дати на основі календаря дати тижня ISO 8601.",
5012
+ "examples": "\n##### Приклади\n\nОтримує рік для заданої дати на основі календаря дати тижня ISO 8601. Повертає `1981`, оскільки ця дата входить у перший тиждень наступного року.\n\n```arcade\nISOYear(Date(1980, 11, 31))\n```\n\nGets the year of the given DateOnly value, based on the ISO 8601 week date calendar.\n\n```arcade\nISOYear(DateOnly(1996, 11, 10))\n// returns 1996\n```\n\n",
4653
5013
  "completion": {
4654
- "label": "Minute",
4655
- "detail": "Minute(dateValue) -> Number",
4656
- "insertText": "Minute(${1:dateValue_})$0",
5014
+ "label": "ISOYear",
5015
+ "detail": "ISOYear(dateValue) -> Number",
5016
+ "insertText": "ISOYear(${1:dateValue_})$0",
4657
5017
  "insertTextMode": 2,
4658
5018
  "insertTextFormat": 2,
4659
5019
  "kind": 3,
4660
5020
  "documentation": {
4661
5021
  "kind": "markdown",
4662
- "value": "Повертає хвилину часу для заданої дати.\n\n**Параметр**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - Значення дати, від якого треба отримати хвилину часу.\n\n**Повернуте значення**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
5022
+ "value": "**[Починаючи з версії 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nПовертає рік для заданої дати на основі календаря дати тижня ISO 8601.\n\n**Параметр**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) \\| DateOnly - Значення дати, від якого треба отримати рік.\n\n**Повернуте значення**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
4663
5023
  }
4664
5024
  },
4665
5025
  "parametersInfo": {
@@ -4667,13 +5027,115 @@
4667
5027
  "max": 1
4668
5028
  }
4669
5029
  },
5030
+ [
5031
+ {
5032
+ "type": "function",
5033
+ "name": "millisecond",
5034
+ "bundle": "core",
5035
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#millisecond1",
5036
+ "description": "Returns the millisecond of the time in the date.",
5037
+ "examples": "\n##### Приклад\n\nGets the millisecond of the current time\n\n```arcade\nMillisecond(Now())\n```\n\n",
5038
+ "completion": {
5039
+ "label": "Millisecond",
5040
+ "detail": "Millisecond(dateValue) -> Number",
5041
+ "insertText": "Millisecond(${1:dateValue_})$0",
5042
+ "insertTextMode": 2,
5043
+ "insertTextFormat": 2,
5044
+ "kind": 3,
5045
+ "documentation": {
5046
+ "kind": "markdown",
5047
+ "value": "Returns the millisecond of the time in the date.\n\n**Параметр**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - A Date value from which to get the millisecond of the time.\n\n**Повернуте значення**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
5048
+ }
5049
+ },
5050
+ "parametersInfo": {
5051
+ "min": 1,
5052
+ "max": 1
5053
+ }
5054
+ },
5055
+ {
5056
+ "type": "function",
5057
+ "name": "millisecond",
5058
+ "bundle": "core",
5059
+ "sinceVersion": "1.24",
5060
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#millisecond2",
5061
+ "description": "Returns the millisecond of the given time.",
5062
+ "examples": "\n##### Приклад\n\nGets the millisecond of the time\n\n```arcade\nHour(Time(2, 59, 23, 450))\n// returns 450\n```\n\n",
5063
+ "completion": {
5064
+ "label": "Millisecond",
5065
+ "detail": "Millisecond(timeValue) -> Number",
5066
+ "insertText": "Millisecond(${1:timeValue_})$0",
5067
+ "insertTextMode": 2,
5068
+ "insertTextFormat": 2,
5069
+ "kind": 3,
5070
+ "documentation": {
5071
+ "kind": "markdown",
5072
+ "value": "**[Починаючи з версії 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nReturns the millisecond of the given time.\n\n**Параметр**\n\n- **timeValue**: Time - A Time value from which to get the millisecond.\n\n**Повернуте значення**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
5073
+ }
5074
+ },
5075
+ "parametersInfo": {
5076
+ "min": 1,
5077
+ "max": 1
5078
+ }
5079
+ }
5080
+ ],
5081
+ [
5082
+ {
5083
+ "type": "function",
5084
+ "name": "minute",
5085
+ "bundle": "core",
5086
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#minute1",
5087
+ "description": "Returns the minute of the time in the given date.",
5088
+ "examples": "\n##### Приклад\n\nGets the minute of the current time\n\n```arcade\nMinute(Now())\n```\n\n",
5089
+ "completion": {
5090
+ "label": "Minute",
5091
+ "detail": "Minute(dateValue) -> Number",
5092
+ "insertText": "Minute(${1:dateValue_})$0",
5093
+ "insertTextMode": 2,
5094
+ "insertTextFormat": 2,
5095
+ "kind": 3,
5096
+ "documentation": {
5097
+ "kind": "markdown",
5098
+ "value": "Returns the minute of the time in the given date.\n\n**Параметр**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - A Date value from which to get the minute of the time.\n\n**Повернуте значення**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
5099
+ }
5100
+ },
5101
+ "parametersInfo": {
5102
+ "min": 1,
5103
+ "max": 1
5104
+ }
5105
+ },
5106
+ {
5107
+ "type": "function",
5108
+ "name": "minute",
5109
+ "bundle": "core",
5110
+ "sinceVersion": "1.24",
5111
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#minute2",
5112
+ "description": "Returns the minute of the given time.",
5113
+ "examples": "\n##### Приклад\n\nGets the minute of the time\n\n```arcade\nHour(Time(2, 59, 23))\n// returns 59\n```\n\n",
5114
+ "completion": {
5115
+ "label": "Minute",
5116
+ "detail": "Minute(timeValue) -> Number",
5117
+ "insertText": "Minute(${1:timeValue_})$0",
5118
+ "insertTextMode": 2,
5119
+ "insertTextFormat": 2,
5120
+ "kind": 3,
5121
+ "documentation": {
5122
+ "kind": "markdown",
5123
+ "value": "**[Починаючи з версії 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nReturns the minute of the given time.\n\n**Параметр**\n\n- **timeValue**: Time - A Time value from which to get the minute.\n\n**Повернуте значення**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
5124
+ }
5125
+ },
5126
+ "parametersInfo": {
5127
+ "min": 1,
5128
+ "max": 1
5129
+ }
5130
+ }
5131
+ ],
4670
5132
  {
4671
5133
  "type": "function",
4672
5134
  "name": "month",
4673
5135
  "bundle": "core",
4674
5136
  "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#month",
4675
5137
  "description": "Повертає місяць для заданої дати. Значення вказуються в діапазоні від 0 до 11, де січень — це `0`, а грудень — це `11`.",
4676
- "examples": "\n##### Приклад\n\nОтримує місяць для заданої дати. Повертає 11 за місяць грудень.\n\n```arcade\nMonth(Date(1980, 11, 31))\n```\n\n",
5138
+ "examples": "\n##### Приклади\n\nОтримує місяць для заданої дати. Повертає 11 за місяць грудень.\n\n```arcade\nMonth(Date(1980, 11, 31))\n// returns 11\n```\n\nGets the month of the given DateOnly value.\n\n```arcade\nMonth(DateOnly(1996, 0, 31))\n// returns 0, for the month of January\n```\n\n",
4677
5139
  "completion": {
4678
5140
  "label": "Month",
4679
5141
  "detail": "Month(dateValue) -> Number",
@@ -4683,7 +5145,7 @@
4683
5145
  "kind": 3,
4684
5146
  "documentation": {
4685
5147
  "kind": "markdown",
4686
- "value": "Повертає місяць для заданої дати. Значення вказуються в діапазоні від 0 до 11, де січень — це `0`, а грудень — це `11`.\n\n**Параметр**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - Значення дати, від якого треба отримати місяць.\n\n**Повернуте значення**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
5148
+ "value": "Повертає місяць для заданої дати. Значення вказуються в діапазоні від 0 до 11, де січень — це `0`, а грудень — це `11`.\n\n**Параметр**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) \\| DateOnly - Значення дати, від якого треба отримати місяць.\n\n**Повернуте значення**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
4687
5149
  }
4688
5150
  },
4689
5151
  "parametersInfo": {
@@ -4715,23 +5177,227 @@
4715
5177
  "max": 0
4716
5178
  }
4717
5179
  },
5180
+ [
5181
+ {
5182
+ "type": "function",
5183
+ "name": "second",
5184
+ "bundle": "core",
5185
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#second1",
5186
+ "description": "Returns the second of the time in the date.",
5187
+ "examples": "\n##### Приклад\n\nGets the second of the current time\n\n```arcade\nSecond(Now())\n```\n\n",
5188
+ "completion": {
5189
+ "label": "Second",
5190
+ "detail": "Second(dateValue) -> Number",
5191
+ "insertText": "Second(${1:dateValue_})$0",
5192
+ "insertTextMode": 2,
5193
+ "insertTextFormat": 2,
5194
+ "kind": 3,
5195
+ "documentation": {
5196
+ "kind": "markdown",
5197
+ "value": "Returns the second of the time in the date.\n\n**Параметр**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - A Date value from which to get the second of the time.\n\n**Повернуте значення**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
5198
+ }
5199
+ },
5200
+ "parametersInfo": {
5201
+ "min": 1,
5202
+ "max": 1
5203
+ }
5204
+ },
5205
+ {
5206
+ "type": "function",
5207
+ "name": "second",
5208
+ "bundle": "core",
5209
+ "sinceVersion": "1.24",
5210
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#second2",
5211
+ "description": "Returns the second of the given time.",
5212
+ "examples": "\n##### Приклад\n\nGets the second of the time\n\n```arcade\nHour(Time(2, 59, 23))\n// returns 23\n```\n\n",
5213
+ "completion": {
5214
+ "label": "Second",
5215
+ "detail": "Second(timeValue) -> Number",
5216
+ "insertText": "Second(${1:timeValue_})$0",
5217
+ "insertTextMode": 2,
5218
+ "insertTextFormat": 2,
5219
+ "kind": 3,
5220
+ "documentation": {
5221
+ "kind": "markdown",
5222
+ "value": "**[Починаючи з версії 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nReturns the second of the given time.\n\n**Параметр**\n\n- **timeValue**: Time - A Time value from which to get the second.\n\n**Повернуте значення**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
5223
+ }
5224
+ },
5225
+ "parametersInfo": {
5226
+ "min": 1,
5227
+ "max": 1
5228
+ }
5229
+ }
5230
+ ],
5231
+ [
5232
+ {
5233
+ "type": "function",
5234
+ "name": "time",
5235
+ "bundle": "core",
5236
+ "sinceVersion": "1.24",
5237
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#time1",
5238
+ "description": "Creates a Time value representing the current time in the time zone of the profile's execution context.",
5239
+ "examples": "\n##### Приклад\n\nReturns the current time displayed using the profile's default time zone\n\n```arcade\n// Time represents 12:41:20 PM\nTime()\n```\n\n",
5240
+ "completion": {
5241
+ "label": "Time",
5242
+ "detail": "Time() -> Time",
5243
+ "insertText": "Time($0)",
5244
+ "insertTextMode": 2,
5245
+ "insertTextFormat": 2,
5246
+ "kind": 3,
5247
+ "documentation": {
5248
+ "kind": "markdown",
5249
+ "value": "**[Починаючи з версії 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nCreates a Time value representing the current time in the time zone of the profile's execution context.\n\n**Повернуте значення**: Time"
5250
+ }
5251
+ },
5252
+ "parametersInfo": {
5253
+ "min": 0,
5254
+ "max": 0
5255
+ }
5256
+ },
5257
+ {
5258
+ "type": "function",
5259
+ "name": "time",
5260
+ "bundle": "core",
5261
+ "sinceVersion": "1.24",
5262
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#time2",
5263
+ "description": "Creates a Time value from a given date.",
5264
+ "examples": "\n##### Приклад\n\nReturns the Time from the given date\n\n```arcade\nTime(Date(2008,10,11,10,30));\n// returns a Time value of 10:30:00 AM\n```\n\n",
5265
+ "completion": {
5266
+ "label": "Time",
5267
+ "detail": "Time(dateValue) -> Time",
5268
+ "insertText": "Time(${1:dateValue_})$0",
5269
+ "insertTextMode": 2,
5270
+ "insertTextFormat": 2,
5271
+ "kind": 3,
5272
+ "documentation": {
5273
+ "kind": "markdown",
5274
+ "value": "**[Починаючи з версії 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nCreates a Time value from a given date.\n\n**Параметр**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - The date from which to get the time.\n\n**Повернуте значення**: Time"
5275
+ }
5276
+ },
5277
+ "parametersInfo": {
5278
+ "min": 1,
5279
+ "max": 1
5280
+ }
5281
+ },
5282
+ {
5283
+ "type": "function",
5284
+ "name": "time",
5285
+ "bundle": "core",
5286
+ "sinceVersion": "1.24",
5287
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#time3",
5288
+ "description": "Creates a Time value from a given number representing milliseconds since midnight. If the input value is larger than 86,400,000 (the maximum number of milliseconds in a day) or less than 0, the function will return `null`.",
5289
+ "examples": "\n##### Приклади\n\nReturns the Time from the number of milliseconds since midnight\n\n```arcade\nTime(8119800);\n// returns a Time value of 02:15:19.800\n```\n\nReturns the Time from the number of milliseconds since midnight\n\n```arcade\nTime(86400001);\n// returns null - the input value exceeds the number of milliseconds in a day\n```\n\n",
5290
+ "completion": {
5291
+ "label": "Time",
5292
+ "detail": "Time(numValue) -> Time",
5293
+ "insertText": "Time(${1:numValue_})$0",
5294
+ "insertTextMode": 2,
5295
+ "insertTextFormat": 2,
5296
+ "kind": 3,
5297
+ "documentation": {
5298
+ "kind": "markdown",
5299
+ "value": "**[Починаючи з версії 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nCreates a Time value from a given number representing milliseconds since midnight. If the input value is larger than 86,400,000 (the maximum number of milliseconds in a day) or less than 0, the function will return `null`.\n\n**Параметр**\n\n- **numValue**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - The number of milliseconds since midnight.\n\n**Повернуте значення**: Time"
5300
+ }
5301
+ },
5302
+ "parametersInfo": {
5303
+ "min": 1,
5304
+ "max": 1
5305
+ }
5306
+ },
5307
+ {
5308
+ "type": "function",
5309
+ "name": "time",
5310
+ "bundle": "core",
5311
+ "sinceVersion": "1.24",
5312
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#time4",
5313
+ "description": "Creates a Time value from inputs representing hours, minutes, seconds, and milliseconds.",
5314
+ "examples": "\n##### Приклад\n\nCreates a Time value from inputs representing hours, minutes, seconds, and milliseconds\n\n```arcade\nTime(13, 20);\n// returns a Time value of 13:20:00\n \nTime(2, 59, 23)\n// returns a Time value of 02:59:23\n \nTime(15, 47, 0, 474)\n// returns a Time value of 15:47:00.474\n```\n\n",
5315
+ "completion": {
5316
+ "label": "Time",
5317
+ "detail": "Time(hours, minutes, seconds?, milliseconds?) -> Time",
5318
+ "insertText": "Time(${1:hours_}, ${2:minutes_})$0",
5319
+ "insertTextMode": 2,
5320
+ "insertTextFormat": 2,
5321
+ "kind": 3,
5322
+ "documentation": {
5323
+ "kind": "markdown",
5324
+ "value": "**[Починаючи з версії 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nCreates a Time value from inputs representing hours, minutes, seconds, and milliseconds.\n\n**Параметри**\n\n- **hours**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - The number representing hours of the Time value (0-23).\n- **minutes**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - The number representing the minutes of the Time value (0-59).\n- **seconds** (_Optional_): [Number](https://developers.arcgis.com/arcade/guide/types/#number) - The number representing the seconds of the Time value (0-59).\n- **milliseconds** (_Optional_): [Number](https://developers.arcgis.com/arcade/guide/types/#number) - The number representing the milliseconds of the Time value (0-999).\n\n**Повернуте значення**: Time"
5325
+ }
5326
+ },
5327
+ "parametersInfo": {
5328
+ "min": 2,
5329
+ "max": 4
5330
+ }
5331
+ },
5332
+ {
5333
+ "type": "function",
5334
+ "name": "time",
5335
+ "bundle": "core",
5336
+ "sinceVersion": "1.24",
5337
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#time5",
5338
+ "description": "Creates a Time value from a text input representing time, with an optional input indicating the text's format.",
5339
+ "examples": "\n##### Приклади\n\nCreates a Time value from a text value representing the time\n\n```arcade\nTime(\"1:20 PM\");\n// returns a Time value of 13:20:00\n```\n\nCreates a Time value from a text value representing the time and formatting\n\n```arcade\nTime(\"12 05 04\", \"HH MM ss\")\n// returns a Time value of 12:05:04\n```\n\n",
5340
+ "completion": {
5341
+ "label": "Time",
5342
+ "detail": "Time(timeValue, format?) -> Time",
5343
+ "insertText": "Time(${1:timeValue_})$0",
5344
+ "insertTextMode": 2,
5345
+ "insertTextFormat": 2,
5346
+ "kind": 3,
5347
+ "documentation": {
5348
+ "kind": "markdown",
5349
+ "value": "**[Починаючи з версії 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nCreates a Time value from a text input representing time, with an optional input indicating the text's format.\n\n**Параметри**\n\n- **timeValue**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - A text value representing a time.\n- **format** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) - A text value indicating the format of the `timeValue` input. \nPossible values: \n - `h`: Civilian hours, not padded (0 - 12) \n - `hh`: Civilian hours, padded (00 - 12) \n - `H`: Military hours, not padded (0 - 24) \n - `HH`: Military hours, padded (00 - 24) \n - `m`: Minutes, not padded (0 - 59) \n - `mm`: Minutes, padded (00 - 59) \n - `s`: Seconds, not padded (0 - 59) \n - `ss`: Seconds, padded (00 - 59) \n - `A`: AM/PM \n\n\n**Повернуте значення**: Time"
5350
+ }
5351
+ },
5352
+ "parametersInfo": {
5353
+ "min": 1,
5354
+ "max": 2
5355
+ }
5356
+ }
5357
+ ],
5358
+ {
5359
+ "type": "function",
5360
+ "name": "timestamp",
5361
+ "bundle": "core",
5362
+ "sinceVersion": "1.1",
5363
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#timestamp",
5364
+ "description": "Створює значення дати, що представляє поточну дату й час у форматі UTC.",
5365
+ "examples": "\n##### Приклад\n\nСтворює дату у форматі UTC\n\n```arcade\n// Date that represents Jan 27, 2023, 8:41:20 PM UTC\nTimestamp()\n```\n\n",
5366
+ "completion": {
5367
+ "label": "Timestamp",
5368
+ "detail": "Timestamp() -> Date",
5369
+ "insertText": "Timestamp($0)",
5370
+ "insertTextMode": 2,
5371
+ "insertTextFormat": 2,
5372
+ "kind": 3,
5373
+ "documentation": {
5374
+ "kind": "markdown",
5375
+ "value": "**[Починаючи з версії 1.1](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nСтворює значення дати, що представляє поточну дату й час у форматі UTC.\n\n**Повернуте значення**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)"
5376
+ }
5377
+ },
5378
+ "parametersInfo": {
5379
+ "min": 0,
5380
+ "max": 0
5381
+ }
5382
+ },
4718
5383
  {
4719
5384
  "type": "function",
4720
- "name": "second",
5385
+ "name": "timezone",
4721
5386
  "bundle": "core",
4722
- "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#second",
4723
- "description": "Повертає секунду часу для дати.",
4724
- "examples": "\n##### Приклад\n\nОтримує секунду поточного часу\n\n```arcade\nSecond(Now())\n```\n\n",
5387
+ "sinceVersion": "1.24",
5388
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#timezone",
5389
+ "description": "Returns the time zone of the given Date. The time zone will be one of the following:\n- text representing an entry in the [IANA time zone database](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List) (i.e. `America/New_York`)\n- text representing the hours and minutes that should be added to UTC (i.e. `+07:00` or `-03:00`)\n- `system` - time zone will be based on the client or system's local time zone \n- `UTC`\n- `unknown`\n",
5390
+ "examples": "\n##### Приклад\n\nReturns the time zone of a Date\n\n```arcade\nvar natlPizzaDay = Date(2024, 1, 9, 0, 0, 0, 0, \"America/Los_Angeles\");\nTimeZone(natlPizzaDay);\n// Returns 'America/Los_Angeles'\n```\n\n",
4725
5391
  "completion": {
4726
- "label": "Second",
4727
- "detail": "Second(dateValue) -> Number",
4728
- "insertText": "Second(${1:dateValue_})$0",
5392
+ "label": "TimeZone",
5393
+ "detail": "TimeZone(dateValue) -> Text",
5394
+ "insertText": "TimeZone(${1:dateValue_})$0",
4729
5395
  "insertTextMode": 2,
4730
5396
  "insertTextFormat": 2,
4731
5397
  "kind": 3,
4732
5398
  "documentation": {
4733
5399
  "kind": "markdown",
4734
- "value": "Повертає секунду часу для дати.\n\n**Параметр**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - Значення дати, від якого треба отримати секунду часу.\n\n**Повернуте значення**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
5400
+ "value": "**[Починаючи з версії 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nReturns the time zone of the given Date. The time zone will be one of the following:\n- text representing an entry in the [IANA time zone database](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List) (i.e. `America/New_York`)\n- text representing the hours and minutes that should be added to UTC (i.e. `+07:00` or `-03:00`)\n- `system` - time zone will be based on the client or system's local time zone \n- `UTC`\n- `unknown`\n\n\n**Параметр**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - A Date value from which to get the time zone.\n\n**Повернуте значення**: [Text](https://developers.arcgis.com/arcade/guide/types/#text)"
4735
5401
  }
4736
5402
  },
4737
5403
  "parametersInfo": {
@@ -4741,27 +5407,27 @@
4741
5407
  },
4742
5408
  {
4743
5409
  "type": "function",
4744
- "name": "timestamp",
5410
+ "name": "timezoneoffset",
4745
5411
  "bundle": "core",
4746
- "sinceVersion": "1.1",
4747
- "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#timestamp",
4748
- "description": "Створює значення дати, що представляє поточну дату й час у форматі UTC.",
4749
- "examples": "\n##### Приклад\n\nСтворює дату у форматі UTC\n\n```arcade\n// Date that represents Jan 27, 2023, 8:41:20 PM UTC\nTimestamp()\n```\n\n",
5412
+ "sinceVersion": "1.24",
5413
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#timezoneoffset",
5414
+ "description": "Returns the time zone offset in minutes from UTC for the given Date.",
5415
+ "examples": "\n##### Приклад\n\nReturns the time zone offset in minutes from UTC\n\n```arcade\nvar inputDate = Date(2011, 10, 11, 8, 0, 0, 0, \"America/New_York\")\nTimeZoneOffset(inputDate);\n// returns -18000000\n```\n\n",
4750
5416
  "completion": {
4751
- "label": "Timestamp",
4752
- "detail": "Timestamp() -> Date",
4753
- "insertText": "Timestamp($0)",
5417
+ "label": "TimeZoneOffset",
5418
+ "detail": "TimeZoneOffset(dateValue) -> Number",
5419
+ "insertText": "TimeZoneOffset(${1:dateValue_})$0",
4754
5420
  "insertTextMode": 2,
4755
5421
  "insertTextFormat": 2,
4756
5422
  "kind": 3,
4757
5423
  "documentation": {
4758
5424
  "kind": "markdown",
4759
- "value": "**[Починаючи з версії 1.1](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nСтворює значення дати, що представляє поточну дату й час у форматі UTC.\n\n**Повернуте значення**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)"
5425
+ "value": "**[Починаючи з версії 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nReturns the time zone offset in minutes from UTC for the given Date.\n\n**Параметр**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - A Date value from which to get the time zone offset.\n\n**Повернуте значення**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
4760
5426
  }
4761
5427
  },
4762
5428
  "parametersInfo": {
4763
- "min": 0,
4764
- "max": 0
5429
+ "min": 1,
5430
+ "max": 1
4765
5431
  }
4766
5432
  },
4767
5433
  {
@@ -4845,7 +5511,7 @@
4845
5511
  "sinceVersion": "1.14",
4846
5512
  "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#week",
4847
5513
  "description": "Повертає номер тижня у році вказаної дати. Діапазон значень в межах 0-53, де перший тиждень року — це `0`, а останній тиждень року — це `51`, `52` або `53`, залежно від року. Перший і останній тижні можуть мати тривалість менше семи днів.",
4848
- "examples": "\n##### Приклади\n\nВикористовувати початок тижня за замовчуванням (неділя)\n\n```arcade\nWeek( Date(1974,0,3) )\n// Returns 0\n```\n\nВстановити початок тижня на четвер\n\n```arcade\nWeek( Date(1974,0,3), 4 )\n// Returns 1\n```\n\nВстановити початок тижня на п’ятницю\n\n```arcade\nWeek( Date(1974,0,3), 5 )\n// Returns 0\n```\n\n\n\n```arcade\nWeek( Date(1945,8,23) )\n// Returns 38\n```\n\n\n\n```arcade\nWeek( Date(2022,7,20) )\n// Returns 33\n```\n\n",
5514
+ "examples": "\n##### Приклади\n\nВикористовувати початок тижня за замовчуванням (неділя)\n\n```arcade\nWeek( Date(1974,0,3) )\n// Returns 0\n```\n\nВстановити початок тижня на четвер\n\n```arcade\nWeek( Date(1974,0,3), 4 )\n// Returns 1\n```\n\nВстановити початок тижня на п’ятницю\n\n```arcade\nWeek( Date(1974,0,3), 5 )\n// Returns 0\n```\n\n\n\n```arcade\nWeek( Date(1945,8,23) )\n// Returns 38\n```\n\n\n\n```arcade\nWeek( Date(2022,7,20) )\n// Returns 33\n```\n\nReturns the week from the DateOnly value\n\n```arcade\nWeek(DateOnly(1996, 11, 10))\n// returns 49\n```\n\n",
4849
5515
  "completion": {
4850
5516
  "label": "Week",
4851
5517
  "detail": "Week(dateValue, startDay?) -> Number",
@@ -4855,7 +5521,7 @@
4855
5521
  "kind": 3,
4856
5522
  "documentation": {
4857
5523
  "kind": "markdown",
4858
- "value": "**[Починаючи з версії 1.14](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nПовертає номер тижня у році вказаної дати. Діапазон значень в межах 0-53, де перший тиждень року — це `0`, а останній тиждень року — це `51`, `52` або `53`, залежно від року. Перший і останній тижні можуть мати тривалість менше семи днів.\n\n**Параметри**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - Значення дати, від якої треба отримати тиждень.\n- **startDay** (_Optional_): [Number](https://developers.arcgis.com/arcade/guide/types/#number) - Число, яке представляє день початку тижня. Неділя = 0; Понеділок = 1; Вівторок = 2; Середа = 3; Четвер = 4; П’ятниця = 5; Субота = 6. Значення за замовчуванням `0` (неділя).\n\n**Повернуте значення**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
5524
+ "value": "**[Починаючи з версії 1.14](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nПовертає номер тижня у році вказаної дати. Діапазон значень в межах 0-53, де перший тиждень року — це `0`, а останній тиждень року — це `51`, `52` або `53`, залежно від року. Перший і останній тижні можуть мати тривалість менше семи днів.\n\n**Параметри**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) \\| DateOnly - Значення дати, від якої треба отримати тиждень.\n- **startDay** (_Optional_): [Number](https://developers.arcgis.com/arcade/guide/types/#number) - Число, яке представляє день початку тижня. Неділя = 0; Понеділок = 1; Вівторок = 2; Середа = 3; Четвер = 4; П’ятниця = 5; Субота = 6. Значення за замовчуванням `0` (неділя).\n\n**Повернуте значення**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
4859
5525
  }
4860
5526
  },
4861
5527
  "parametersInfo": {
@@ -4869,7 +5535,7 @@
4869
5535
  "bundle": "core",
4870
5536
  "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#weekday",
4871
5537
  "description": "Повертає день тижня для заданої дати. Значення вказуються в діапазоні від 0 до 6, де неділя — це `0`, а субота — це `6`.",
4872
- "examples": "\n##### Приклад\n\nПовертає день тижня для заданої дати. Повертає `3` для середи.\n\n```arcade\nWeekday(Date(1980, 11, 31))\n```\n\n",
5538
+ "examples": "\n##### Приклади\n\nПовертає день тижня для заданої дати. Повертає `3` для середи.\n\n```arcade\nWeekday(Date(1980, 11, 31))\n```\n\nReturns the day of the week of the given DateOnly value.\n\n```arcade\nWeekday(DateOnly(1996, 11, 10))\n// returns 2, for Tuesday\n```\n\n",
4873
5539
  "completion": {
4874
5540
  "label": "Weekday",
4875
5541
  "detail": "Weekday(dateValue) -> Number",
@@ -4879,7 +5545,7 @@
4879
5545
  "kind": 3,
4880
5546
  "documentation": {
4881
5547
  "kind": "markdown",
4882
- "value": "Повертає день тижня для заданої дати. Значення вказуються в діапазоні від 0 до 6, де неділя — це `0`, а субота — це `6`.\n\n**Параметр**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - Значення дати, від якого треба повернути день тижня.\n\n**Повернуте значення**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
5548
+ "value": "Повертає день тижня для заданої дати. Значення вказуються в діапазоні від 0 до 6, де неділя — це `0`, а субота — це `6`.\n\n**Параметр**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) \\| DateOnly - Значення дати, від якого треба повернути день тижня.\n\n**Повернуте значення**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
4883
5549
  }
4884
5550
  },
4885
5551
  "parametersInfo": {
@@ -4893,7 +5559,7 @@
4893
5559
  "bundle": "core",
4894
5560
  "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#year",
4895
5561
  "description": "Повертає рік для заданої дати.",
4896
- "examples": "\n##### Приклад\n\nОтримує рік для поточної дати\n\n```arcade\nYear(Now())\n```\n\n",
5562
+ "examples": "\n##### Приклади\n\nОтримує рік для поточної дати\n\n```arcade\nYear(Now())\n```\n\nGets the year of the given DateOnly value\n\n```arcade\nYear(DateOnly(1996, 11, 10))\n// returns 1996\n```\n\n",
4897
5563
  "completion": {
4898
5564
  "label": "Year",
4899
5565
  "detail": "Year(dateValue) -> Number",
@@ -4903,7 +5569,7 @@
4903
5569
  "kind": 3,
4904
5570
  "documentation": {
4905
5571
  "kind": "markdown",
4906
- "value": "Повертає рік для заданої дати.\n\n**Параметр**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - Значення дати, від якого треба отримати рік.\n\n**Повернуте значення**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
5572
+ "value": "Повертає рік для заданої дати.\n\n**Параметр**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) \\| DateOnly - Значення дати, від якого треба отримати рік.\n\n**Повернуте значення**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
4907
5573
  }
4908
5574
  },
4909
5575
  "parametersInfo": {