@arcgis/coding-components 1.0.0-beta.9 → 4.28.0-beta.1

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 (140) hide show
  1. package/dist/arcgis-coding-components/arcgis-coding-components.esm.js +1 -1
  2. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ar.json +858 -192
  3. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.bg.json +821 -155
  4. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.bs.json +829 -163
  5. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ca.json +829 -163
  6. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.cs.json +829 -163
  7. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.da.json +829 -163
  8. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.de.json +829 -163
  9. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.el.json +858 -192
  10. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.en.json +853 -187
  11. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.es.json +829 -163
  12. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.et.json +829 -163
  13. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.fi.json +858 -192
  14. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.fr.json +829 -163
  15. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.he.json +858 -192
  16. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.hr.json +829 -163
  17. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.hu.json +829 -163
  18. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.id.json +858 -192
  19. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.it.json +821 -155
  20. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ja.json +859 -193
  21. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ko.json +859 -193
  22. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.lt.json +829 -163
  23. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.lv.json +829 -163
  24. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.nb.json +829 -163
  25. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.nl.json +829 -163
  26. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.pl.json +829 -163
  27. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.pt-BR.json +829 -163
  28. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.pt-PT.json +829 -163
  29. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ro.json +829 -163
  30. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ru.json +858 -192
  31. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.sk.json +829 -163
  32. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.sl.json +829 -163
  33. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.sr.json +845 -179
  34. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.sv.json +829 -163
  35. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.th.json +858 -192
  36. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.tr.json +858 -192
  37. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.uk.json +858 -192
  38. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.vi.json +858 -192
  39. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.zh-CN.json +859 -193
  40. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.zh-HK.json +859 -193
  41. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.zh-TW.json +859 -193
  42. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.ar.json +1 -2
  43. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.bg.json +1 -2
  44. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.bs.json +1 -2
  45. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.ca.json +1 -2
  46. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.cs.json +1 -2
  47. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.da.json +1 -2
  48. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.de.json +1 -2
  49. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.el.json +1 -2
  50. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.en.json +1 -2
  51. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.es.json +1 -2
  52. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.et.json +1 -2
  53. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.fi.json +1 -2
  54. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.fr.json +1 -2
  55. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.he.json +1 -2
  56. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.hr.json +1 -2
  57. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.hu.json +1 -2
  58. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.id.json +1 -2
  59. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.it.json +1 -2
  60. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.ja.json +1 -2
  61. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.ko.json +1 -2
  62. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.lt.json +1 -2
  63. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.lv.json +1 -2
  64. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.nb.json +1 -2
  65. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.nl.json +1 -2
  66. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.pl.json +1 -2
  67. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.pt-BR.json +1 -2
  68. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.pt-PT.json +1 -2
  69. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.ro.json +1 -2
  70. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.ru.json +1 -2
  71. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.sk.json +1 -2
  72. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.sl.json +1 -2
  73. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.sr.json +1 -2
  74. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.sv.json +1 -2
  75. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.th.json +1 -2
  76. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.tr.json +1 -2
  77. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.uk.json +1 -2
  78. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.vi.json +1 -2
  79. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.zh-CN.json +1 -2
  80. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.zh-HK.json +1 -2
  81. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.zh-TW.json +1 -2
  82. package/dist/arcgis-coding-components/assets/code-editor/arcade.worker.js +20 -20
  83. package/dist/arcgis-coding-components/index.esm.js +1 -1
  84. package/dist/arcgis-coding-components/{p-c14a46af.js → p-172f4702.js} +1 -1
  85. package/dist/arcgis-coding-components/{p-63d6d128.js → p-489997f4.js} +1 -1
  86. package/dist/arcgis-coding-components/{p-41feaa6e.js → p-4cbf1d3d.js} +1 -1
  87. package/dist/arcgis-coding-components/p-84c74c0e.entry.js +1 -0
  88. package/dist/arcgis-coding-components/{p-616bcc2c.js → p-be1fbbb3.js} +1 -1
  89. package/dist/arcgis-coding-components/p-c5a7203a.js +1 -0
  90. package/dist/arcgis-coding-components/{p-ed254359.js → p-d9a5e2f2.js} +1 -1
  91. package/dist/arcgis-coding-components/{p-2eee5b07.js → p-e291bfec.js} +7 -7
  92. package/dist/arcgis-coding-components/{p-ee4aaf72.js → p-e4be94b6.js} +1 -1
  93. package/dist/arcgis-coding-components/{p-b866ffa3.js → p-fca44881.js} +1 -1
  94. package/dist/cjs/{arcade-defaults-f77b7bae.js → arcade-defaults-34cb0922.js} +3271 -3169
  95. package/dist/cjs/arcade-mode-ab1f27e6.js +600 -0
  96. package/dist/cjs/arcgis-arcade-api_6.cjs.entry.js +51 -30
  97. package/dist/cjs/{cssMode-c21a8b34.js → cssMode-1aa8c00c.js} +1 -1
  98. package/dist/cjs/{html-baddeebf.js → html-d5c8ae9b.js} +1 -1
  99. package/dist/cjs/{htmlMode-3ca73779.js → htmlMode-78095155.js} +1 -1
  100. package/dist/cjs/index.cjs.js +3 -5
  101. package/dist/cjs/{javascript-4226e8d4.js → javascript-1feb315a.js} +2 -2
  102. package/dist/cjs/{jsonMode-4496d6b9.js → jsonMode-3b4bffa4.js} +1 -1
  103. package/dist/cjs/{tsMode-6fa6f2f6.js → tsMode-927347f4.js} +1 -1
  104. package/dist/cjs/{typescript-5b6bab68.js → typescript-b6461e0f.js} +1 -1
  105. package/dist/components/arcade-api.js +3 -2
  106. package/dist/components/arcade-contribution.js +1 -1
  107. package/dist/components/arcade-defaults.js +7 -24
  108. package/dist/components/arcade-mode.js +3 -3
  109. package/dist/components/arcade-results.js +40 -10
  110. package/dist/components/arcade-suggestions.js +2 -1
  111. package/dist/components/arcade-variables.js +2 -2
  112. package/dist/components/arcgis-arcade-editor.js +2 -2
  113. package/dist/components/code-editor.js +9 -2
  114. package/dist/components/fields.js +125 -0
  115. package/dist/components/index.js +1 -7
  116. package/dist/components/index2.js +282 -32
  117. package/dist/components/markdown.js +1 -1
  118. package/dist/components/utilities.js +2 -334
  119. package/dist/esm/{arcade-defaults-24670a1d.js → arcade-defaults-f030a3ab.js} +3270 -3171
  120. package/dist/esm/arcade-mode-e27773ee.js +596 -0
  121. package/dist/esm/arcgis-arcade-api_6.entry.js +49 -28
  122. package/dist/esm/{cssMode-0ae84348.js → cssMode-7174073f.js} +1 -1
  123. package/dist/esm/{html-c18864a6.js → html-232bf55e.js} +1 -1
  124. package/dist/esm/{htmlMode-426699f2.js → htmlMode-81da247d.js} +1 -1
  125. package/dist/esm/index.js +1 -7
  126. package/dist/esm/{javascript-982f2d73.js → javascript-675b1c44.js} +2 -2
  127. package/dist/esm/{jsonMode-170e0a0e.js → jsonMode-aa4be4a6.js} +1 -1
  128. package/dist/esm/{tsMode-99d2e8e5.js → tsMode-f163b829.js} +1 -1
  129. package/dist/esm/{typescript-de4f8a27.js → typescript-ebf5062c.js} +1 -1
  130. package/dist/types/index.d.ts +2 -4
  131. package/dist/types/utils/arcade-executor.d.ts +35 -3
  132. package/dist/types/utils/arcade-monaco/arcade-defaults.d.ts +6 -0
  133. package/dist/types/utils/fields.d.ts +10 -0
  134. package/dist/types/utils/profile/types.d.ts +2 -2
  135. package/dist/types/utils/utilities.d.ts +0 -6
  136. package/package.json +8 -8
  137. package/dist/arcgis-coding-components/p-4d7cdaf4.js +0 -1
  138. package/dist/arcgis-coding-components/p-7d6c922f.entry.js +0 -1
  139. package/dist/cjs/arcade-mode-4b1d5adc.js +0 -600
  140. package/dist/esm/arcade-mode-dc10ed9f.js +0 -596
@@ -504,29 +504,54 @@
504
504
  "id": "date_functions",
505
505
  "title": "Funcions de data",
506
506
  "items": [
507
+ {
508
+ "type": "function",
509
+ "name": "changetimezone",
510
+ "bundle": "core",
511
+ "sinceVersion": "1.24",
512
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#changetimezone",
513
+ "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`.",
514
+ "examples": "\n##### Exemples\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",
515
+ "completion": {
516
+ "label": "ChangeTimeZone",
517
+ "detail": "ChangeTimeZone(dateValue, newTimeZone) -> Date",
518
+ "insertText": "ChangeTimeZone(${1:dateValue_}, ${2:newTimeZone_})$0",
519
+ "insertTextMode": 2,
520
+ "insertTextFormat": 2,
521
+ "kind": 3,
522
+ "documentation": {
523
+ "kind": "markdown",
524
+ "value": "**[A partir de la versió 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**Paràmetres**\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**Valor de retorn**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)"
525
+ }
526
+ },
527
+ "parametersInfo": {
528
+ "min": 2,
529
+ "max": 2
530
+ }
531
+ },
507
532
  [
508
533
  {
509
534
  "type": "function",
510
535
  "name": "date",
511
536
  "bundle": "core",
512
537
  "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#date1",
513
- "description": "Crea un objecte de dades a partir d'un conjunt de paràmetres. De manera predeterminada, les dates es creen en l'hora local del client o del sistema.",
514
- "examples": "\n##### Exemples\n\nCrea una data que representa l'hora indicada en l'hora local del sistema on s'hi executa Arcade\n\n```arcade\n// Date that represents Jun 02, 1987, 12:00:00 AM PST\nDate(1987,05,02)\n```\n\nCrea una data que representa l'hora actual en l'hora local del sistema on s'hi executa Arcade\n\n```arcade\n// Date represents Jan 27, 2023, 12:41:20 PM PST\nDate()\n```\n\n",
538
+ "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.",
539
+ "examples": "\n##### Exemples\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",
515
540
  "completion": {
516
541
  "label": "Date",
517
- "detail": "Date(year, month, day, hour?, minute?, second?, millisecond?) -> Date",
542
+ "detail": "Date(year, month, day, hour?, minute?, second?, millisecond?, timeZone?) -> Date",
518
543
  "insertText": "Date(${1:year_}, ${2:month_}, ${3:day_})$0",
519
544
  "insertTextMode": 2,
520
545
  "insertTextFormat": 2,
521
546
  "kind": 3,
522
547
  "documentation": {
523
548
  "kind": "markdown",
524
- "value": "Crea un objecte de dades a partir d'un conjunt de paràmetres. De manera predeterminada, les dates es creen en l'hora local del client o del sistema.\n\n**Paràmetres**\n\n- **year**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - Nombre que representa un any.\n- **month**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - Mes (0-11), on `0` és gener i `11` és desembre.\n- **day**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - Dia del mes (1-31).\n- **hour** (_Optional_): [Number](https://developers.arcgis.com/arcade/guide/types/#number) - Hora del dia (0-23).\n- **minute** (_Optional_): [Number](https://developers.arcgis.com/arcade/guide/types/#number) - Minut de l'hora (0-59).\n- **second** (_Optional_): [Number](https://developers.arcgis.com/arcade/guide/types/#number) - Segon del minut (0-59).\n- **millisecond** (_Optional_): [Number](https://developers.arcgis.com/arcade/guide/types/#number) - Mil·lisegon del segon (0-999).\n\n**Valor de retorn**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)"
549
+ "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**Paràmetres**\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**Valor de retorn**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)"
525
550
  }
526
551
  },
527
552
  "parametersInfo": {
528
553
  "min": 3,
529
- "max": 7
554
+ "max": 8
530
555
  }
531
556
  },
532
557
  {
@@ -534,8 +559,8 @@
534
559
  "name": "date",
535
560
  "bundle": "core",
536
561
  "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#date2",
537
- "description": "Crea una data amb el número de l'època Unix indicat a la zona horària local del client o del sistema.",
538
- "examples": "\n##### Exemple\n\nMil·lisegons des de l'1 de gener de 1970\n\n```arcade\nDate(1476987783555) // 'Thu Oct 20 2016 11:23:03 GMT-0700 (PDT)'\n```\n\n",
562
+ "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.",
563
+ "examples": "\n##### Exemples\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",
539
564
  "completion": {
540
565
  "label": "Date",
541
566
  "detail": "Date(epoch?) -> Date",
@@ -545,7 +570,7 @@
545
570
  "kind": 3,
546
571
  "documentation": {
547
572
  "kind": "markdown",
548
- "value": "Crea una data amb el número de l'època Unix indicat a la zona horària local del client o del sistema.\n\n**Paràmetre**\n\n- **epoch** (_Optional_): [Number](https://developers.arcgis.com/arcade/guide/types/#number) - Nombre de mil·lisegons des de l'1 de gener de 1970 UTC.\n\n**Valor de retorn**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)"
573
+ "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**Paràmetre**\n\n- **epoch** (_Optional_): [Number](https://developers.arcgis.com/arcade/guide/types/#number) - The number of milliseconds since January 1, 1970 UTC.\n\n**Valor de retorn**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)"
549
574
  }
550
575
  },
551
576
  "parametersInfo": {
@@ -558,8 +583,8 @@
558
583
  "name": "date",
559
584
  "bundle": "core",
560
585
  "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#date3",
561
- "description": "Converteix un valor de text ISO 8601 en un objecte de data a la zona horària local del client o del sistema.",
562
- "examples": "\n##### Exemple\n\nValor de text 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",
586
+ "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.",
587
+ "examples": "\n##### Exemples\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",
563
588
  "completion": {
564
589
  "label": "Date",
565
590
  "detail": "Date(timestamp?) -> Date",
@@ -569,70 +594,376 @@
569
594
  "kind": 3,
570
595
  "documentation": {
571
596
  "kind": "markdown",
572
- "value": "Converteix un valor de text ISO 8601 en un objecte de data a la zona horària local del client o del sistema.\n\n**Paràmetre**\n\n- **timestamp** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) - Valor de text ISO 8601 que es convertirà en una data.\n\n**Valor de retorn**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)"
597
+ "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**Paràmetre**\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**Valor de retorn**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)"
573
598
  }
574
599
  },
575
600
  "parametersInfo": {
576
601
  "min": 0,
577
602
  "max": 1
578
603
  }
604
+ },
605
+ {
606
+ "type": "function",
607
+ "name": "date",
608
+ "bundle": "core",
609
+ "sinceVersion": "1.24",
610
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#date4",
611
+ "description": "Creates a Date from a DateOnly value, with an optional Time and time zone value.",
612
+ "examples": "\n##### Exemple\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",
613
+ "completion": {
614
+ "label": "Date",
615
+ "detail": "Date(dateOnlyValue, timeValue?, timeZone?) -> Date",
616
+ "insertText": "Date(${1:dateOnlyValue_})$0",
617
+ "insertTextMode": 2,
618
+ "insertTextFormat": 2,
619
+ "kind": 3,
620
+ "documentation": {
621
+ "kind": "markdown",
622
+ "value": "**[A partir de la versió 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**Paràmetres**\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**Valor de retorn**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)"
623
+ }
624
+ },
625
+ "parametersInfo": {
626
+ "min": 1,
627
+ "max": 3
628
+ }
629
+ },
630
+ {
631
+ "type": "function",
632
+ "name": "date",
633
+ "bundle": "core",
634
+ "sinceVersion": "1.24",
635
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#date5",
636
+ "description": "Creates a copy of the given Date.",
637
+ "examples": "\n##### Exemple\n\nCreates a copy of the current Date value\n\n```arcade\nvar copiedDate = Date(Now())\n```\n\n",
638
+ "completion": {
639
+ "label": "Date",
640
+ "detail": "Date(dateValue) -> Date",
641
+ "insertText": "Date(${1:dateValue_})$0",
642
+ "insertTextMode": 2,
643
+ "insertTextFormat": 2,
644
+ "kind": 3,
645
+ "documentation": {
646
+ "kind": "markdown",
647
+ "value": "**[A partir de la versió 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nCreates a copy of the given Date.\n\n**Paràmetre**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - The Date to copy.\n\n**Valor de retorn**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)"
648
+ }
649
+ },
650
+ "parametersInfo": {
651
+ "min": 1,
652
+ "max": 1
653
+ }
579
654
  }
580
655
  ],
581
- {
582
- "type": "function",
583
- "name": "dateadd",
584
- "bundle": "core",
585
- "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#dateadd",
586
- "description": "Afegeix una quantitat de temps especificada en les unitats proporcionades per a una data i retorna una data nova.",
587
- "examples": "\n##### Exemple\n\nAfegeix 7 dies a la data al camp proporcionat\n\n```arcade\nvar startDate = Date($feature.dateField);\nvar oneWeekLater = DateAdd(startDate, 7, 'days');\nreturn oneWeekLater;\n```\n\n",
588
- "completion": {
589
- "label": "DateAdd",
590
- "detail": "DateAdd(dateValue, addValue, units?) -> Date",
591
- "insertText": "DateAdd(${1:dateValue_}, ${2:addValue_})$0",
592
- "insertTextMode": 2,
593
- "insertTextFormat": 2,
594
- "kind": 3,
595
- "documentation": {
596
- "kind": "markdown",
597
- "value": "Afegeix una quantitat de temps especificada en les unitats proporcionades per a una data i retorna una data nova.\n\n**Paràmetres**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - Data d'entrada a la qual s'afegirà l'hora.\n- **addValue**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - Valor que s'afegirà a la data en les unitats proporcionades.\n- **units** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) - Unitats del nombre que s'afegirà a la data. El valor per defecte és `milliseconds`. Els tipus d'unitat compatibles inclouen `milliseconds`, `seconds`, `minutes`, `hours`, `days`, `months` i `years`\n\n**Valor de retorn**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)"
656
+ [
657
+ {
658
+ "type": "function",
659
+ "name": "dateadd",
660
+ "bundle": "core",
661
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#dateadd1",
662
+ "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.",
663
+ "examples": "\n##### Exemple\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",
664
+ "completion": {
665
+ "label": "DateAdd",
666
+ "detail": "DateAdd(dateValue, addValue, units?) -> Date",
667
+ "insertText": "DateAdd(${1:dateValue_}, ${2:addValue_})$0",
668
+ "insertTextMode": 2,
669
+ "insertTextFormat": 2,
670
+ "kind": 3,
671
+ "documentation": {
672
+ "kind": "markdown",
673
+ "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**Paràmetres**\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**Valor de retorn**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)"
674
+ }
675
+ },
676
+ "parametersInfo": {
677
+ "min": 2,
678
+ "max": 3
598
679
  }
599
680
  },
600
- "parametersInfo": {
601
- "min": 2,
602
- "max": 3
681
+ {
682
+ "type": "function",
683
+ "name": "dateadd",
684
+ "bundle": "core",
685
+ "sinceVersion": "1.24",
686
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#dateadd2",
687
+ "description": "Adds a specified amount of time in the given units to a DateOnly value and returns a new DateOnly value.",
688
+ "examples": "\n##### Exemples\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",
689
+ "completion": {
690
+ "label": "DateAdd",
691
+ "detail": "DateAdd(dateOnlyValue, addValue, units?) -> DateOnly",
692
+ "insertText": "DateAdd(${1:dateOnlyValue_}, ${2:addValue_})$0",
693
+ "insertTextMode": 2,
694
+ "insertTextFormat": 2,
695
+ "kind": 3,
696
+ "documentation": {
697
+ "kind": "markdown",
698
+ "value": "**[A partir de la versió 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**Paràmetres**\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**Valor de retorn**: DateOnly"
699
+ }
700
+ },
701
+ "parametersInfo": {
702
+ "min": 2,
703
+ "max": 3
704
+ }
705
+ },
706
+ {
707
+ "type": "function",
708
+ "name": "dateadd",
709
+ "bundle": "core",
710
+ "sinceVersion": "1.24",
711
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#dateadd3",
712
+ "description": "Adds a specified amount of time in the given units to a Time value and returns a new Time value.",
713
+ "examples": "\n##### Exemples\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",
714
+ "completion": {
715
+ "label": "DateAdd",
716
+ "detail": "DateAdd(timeValue, addValue, units?) -> Time",
717
+ "insertText": "DateAdd(${1:timeValue_}, ${2:addValue_})$0",
718
+ "insertTextMode": 2,
719
+ "insertTextFormat": 2,
720
+ "kind": 3,
721
+ "documentation": {
722
+ "kind": "markdown",
723
+ "value": "**[A partir de la versió 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**Paràmetres**\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**Valor de retorn**: Time"
724
+ }
725
+ },
726
+ "parametersInfo": {
727
+ "min": 2,
728
+ "max": 3
729
+ }
603
730
  }
604
- },
605
- {
606
- "type": "function",
607
- "name": "datediff",
608
- "bundle": "core",
609
- "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#datediff",
610
- "description": "Sostreu dues dates i retorna la diferència en les unitats especificades.",
611
- "examples": "\n##### Exemple\n\nSostreu dues dates i retorna l'edat\n\n```arcade\nvar startDate = Date($feature.startDateField);\nvar endDate = Date($feature.endDateField);\nvar age = DateDiff(endDate, startDate, 'years');\nreturn age;\n```\n\n",
612
- "completion": {
613
- "label": "DateDiff",
614
- "detail": "DateDiff(date1, date2, units?) -> Number",
615
- "insertText": "DateDiff(${1:date1_}, ${2:date2_})$0",
616
- "insertTextMode": 2,
617
- "insertTextFormat": 2,
618
- "kind": 3,
619
- "documentation": {
620
- "kind": "markdown",
621
- "value": "Sostreu dues dates i retorna la diferència en les unitats especificades.\n\n**Paràmetres**\n\n- **date1**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - Valor de data del qual se sostraurà una segona data.\n- **date2**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - Valor de data que se sostraurà de la primera data especificada.\n- **units** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) - Unitats en les quals es retornarà la diferència de les dues dates especificades. Els tipus d'unitat compatibles inclouen `milliseconds`, `seconds`, `minutes`, `hours`, `days`, `months` i `years` El valor per defecte és `milliseconds`.\n\n**Valor de retorn**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
731
+ ],
732
+ [
733
+ {
734
+ "type": "function",
735
+ "name": "datediff",
736
+ "bundle": "core",
737
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#datediff1",
738
+ "description": "Subtracts two Dates, and returns the difference in the specified units.",
739
+ "examples": "\n##### Exemples\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",
740
+ "completion": {
741
+ "label": "DateDiff",
742
+ "detail": "DateDiff(date1, date2, units?, timeZone?) -> Number",
743
+ "insertText": "DateDiff(${1:date1_}, ${2:date2_})$0",
744
+ "insertTextMode": 2,
745
+ "insertTextFormat": 2,
746
+ "kind": 3,
747
+ "documentation": {
748
+ "kind": "markdown",
749
+ "value": "Subtracts two Dates, and returns the difference in the specified units.\n\n**Paràmetres**\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**Valor de retorn**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
750
+ }
751
+ },
752
+ "parametersInfo": {
753
+ "min": 2,
754
+ "max": 4
622
755
  }
623
756
  },
624
- "parametersInfo": {
625
- "min": 2,
626
- "max": 3
757
+ {
758
+ "type": "function",
759
+ "name": "datediff",
760
+ "bundle": "core",
761
+ "sinceVersion": "1.24",
762
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#datediff2",
763
+ "description": "Subtracts two DateOnly values, and returns the difference in the specified units.",
764
+ "examples": "\n##### Exemple\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",
765
+ "completion": {
766
+ "label": "DateDiff",
767
+ "detail": "DateDiff(dateOnly1, dateOnly2, units?) -> Number",
768
+ "insertText": "DateDiff(${1:dateOnly1_}, ${2:dateOnly2_})$0",
769
+ "insertTextMode": 2,
770
+ "insertTextFormat": 2,
771
+ "kind": 3,
772
+ "documentation": {
773
+ "kind": "markdown",
774
+ "value": "**[A partir de la versió 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**Paràmetres**\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**Valor de retorn**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
775
+ }
776
+ },
777
+ "parametersInfo": {
778
+ "min": 2,
779
+ "max": 3
780
+ }
781
+ },
782
+ {
783
+ "type": "function",
784
+ "name": "datediff",
785
+ "bundle": "core",
786
+ "sinceVersion": "1.24",
787
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#datediff3",
788
+ "description": "Subtracts two Time values, and returns the difference in the specified units.",
789
+ "examples": "\n##### Exemple\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",
790
+ "completion": {
791
+ "label": "DateDiff",
792
+ "detail": "DateDiff(time1, time2, units?) -> Number",
793
+ "insertText": "DateDiff(${1:time1_}, ${2:time2_})$0",
794
+ "insertTextMode": 2,
795
+ "insertTextFormat": 2,
796
+ "kind": 3,
797
+ "documentation": {
798
+ "kind": "markdown",
799
+ "value": "**[A partir de la versió 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**Paràmetres**\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**Valor de retorn**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
800
+ }
801
+ },
802
+ "parametersInfo": {
803
+ "min": 2,
804
+ "max": 3
805
+ }
627
806
  }
628
- },
807
+ ],
808
+ [
809
+ {
810
+ "type": "function",
811
+ "name": "dateonly",
812
+ "bundle": "core",
813
+ "sinceVersion": "1.24",
814
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#dateonly1",
815
+ "description": "Creates a DateOnly value based on the current date in the time zone of the profile's execution context.",
816
+ "examples": "\n##### Exemple\n\nReturns the current DateOnly (no time)\n\n```arcade\nDateOnly()\n// returns the current date, i.e. 2023-09-12\n```\n\n",
817
+ "completion": {
818
+ "label": "DateOnly",
819
+ "detail": "DateOnly() -> DateOnly",
820
+ "insertText": "DateOnly($0)",
821
+ "insertTextMode": 2,
822
+ "insertTextFormat": 2,
823
+ "kind": 3,
824
+ "documentation": {
825
+ "kind": "markdown",
826
+ "value": "**[A partir de la versió 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**Valor de retorn**: DateOnly"
827
+ }
828
+ },
829
+ "parametersInfo": {
830
+ "min": 0,
831
+ "max": 0
832
+ }
833
+ },
834
+ {
835
+ "type": "function",
836
+ "name": "dateonly",
837
+ "bundle": "core",
838
+ "sinceVersion": "1.24",
839
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#dateonly2",
840
+ "description": "Creates a DateOnly value from a given date.",
841
+ "examples": "\n##### Exemple\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",
842
+ "completion": {
843
+ "label": "DateOnly",
844
+ "detail": "DateOnly(dateValue) -> DateOnly",
845
+ "insertText": "DateOnly(${1:dateValue_})$0",
846
+ "insertTextMode": 2,
847
+ "insertTextFormat": 2,
848
+ "kind": 3,
849
+ "documentation": {
850
+ "kind": "markdown",
851
+ "value": "**[A partir de la versió 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nCreates a DateOnly value from a given date.\n\n**Paràmetre**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - The date from which to create the DateOnly value.\n\n**Valor de retorn**: DateOnly"
852
+ }
853
+ },
854
+ "parametersInfo": {
855
+ "min": 1,
856
+ "max": 1
857
+ }
858
+ },
859
+ {
860
+ "type": "function",
861
+ "name": "dateonly",
862
+ "bundle": "core",
863
+ "sinceVersion": "1.24",
864
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#dateonly3",
865
+ "description": "Creates a DateOnly date with the given Unix epoch number.",
866
+ "examples": "\n##### Exemple\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",
867
+ "completion": {
868
+ "label": "DateOnly",
869
+ "detail": "DateOnly(epoch) -> DateOnly",
870
+ "insertText": "DateOnly(${1:epoch_})$0",
871
+ "insertTextMode": 2,
872
+ "insertTextFormat": 2,
873
+ "kind": 3,
874
+ "documentation": {
875
+ "kind": "markdown",
876
+ "value": "**[A partir de la versió 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nCreates a DateOnly date with the given Unix epoch number.\n\n**Paràmetre**\n\n- **epoch**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - The number of milliseconds since January 1, 1970 UTC.\n\n**Valor de retorn**: DateOnly"
877
+ }
878
+ },
879
+ "parametersInfo": {
880
+ "min": 1,
881
+ "max": 1
882
+ }
883
+ },
884
+ {
885
+ "type": "function",
886
+ "name": "dateonly",
887
+ "bundle": "core",
888
+ "sinceVersion": "1.24",
889
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#dateonly4",
890
+ "description": "Creates a DateOnly value from inputs representing the year, month, and day.",
891
+ "examples": "\n##### Exemple\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",
892
+ "completion": {
893
+ "label": "DateOnly",
894
+ "detail": "DateOnly(year, month, day) -> DateOnly",
895
+ "insertText": "DateOnly(${1:year_}, ${2:month_}, ${3:day_})$0",
896
+ "insertTextMode": 2,
897
+ "insertTextFormat": 2,
898
+ "kind": 3,
899
+ "documentation": {
900
+ "kind": "markdown",
901
+ "value": "**[A partir de la versió 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**Paràmetres**\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**Valor de retorn**: DateOnly"
902
+ }
903
+ },
904
+ "parametersInfo": {
905
+ "min": 3,
906
+ "max": 3
907
+ }
908
+ },
909
+ {
910
+ "type": "function",
911
+ "name": "dateonly",
912
+ "bundle": "core",
913
+ "sinceVersion": "1.24",
914
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#dateonly5",
915
+ "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.",
916
+ "examples": "\n##### Exemples\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",
917
+ "completion": {
918
+ "label": "DateOnly",
919
+ "detail": "DateOnly(dateValue, format?) -> DateOnly",
920
+ "insertText": "DateOnly(${1:dateValue_})$0",
921
+ "insertTextMode": 2,
922
+ "insertTextFormat": 2,
923
+ "kind": 3,
924
+ "documentation": {
925
+ "kind": "markdown",
926
+ "value": "**[A partir de la versió 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**Paràmetres**\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**Valor de retorn**: DateOnly"
927
+ }
928
+ },
929
+ "parametersInfo": {
930
+ "min": 1,
931
+ "max": 2
932
+ }
933
+ },
934
+ {
935
+ "type": "function",
936
+ "name": "dateonly",
937
+ "bundle": "core",
938
+ "sinceVersion": "1.24",
939
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#dateonly6",
940
+ "description": "Creates a copy of a DateOnly value.",
941
+ "examples": "\n##### Exemple\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",
942
+ "completion": {
943
+ "label": "DateOnly",
944
+ "detail": "DateOnly(dateOnlyValue) -> DateOnly",
945
+ "insertText": "DateOnly(${1:dateOnlyValue_})$0",
946
+ "insertTextMode": 2,
947
+ "insertTextFormat": 2,
948
+ "kind": 3,
949
+ "documentation": {
950
+ "kind": "markdown",
951
+ "value": "**[A partir de la versió 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nCreates a copy of a DateOnly value.\n\n**Paràmetre**\n\n- **dateOnlyValue**: DateOnly - The DateOnly value to copy.\n\n**Valor de retorn**: DateOnly"
952
+ }
953
+ },
954
+ "parametersInfo": {
955
+ "min": 1,
956
+ "max": 1
957
+ }
958
+ }
959
+ ],
629
960
  {
630
961
  "type": "function",
631
962
  "name": "day",
632
963
  "bundle": "core",
633
964
  "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#day",
634
965
  "description": "Retorna el dia del mes de la data especificada.",
635
- "examples": "\n##### Exemple\n\nObté el dia del mes de la data actual\n\n```arcade\nDay(Now())\n```\n\n",
966
+ "examples": "\n##### Exemples\n\nObté el dia del mes de la data actual\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",
636
967
  "completion": {
637
968
  "label": "Day",
638
969
  "detail": "Day(dateValue) -> Number",
@@ -642,7 +973,7 @@
642
973
  "kind": 3,
643
974
  "documentation": {
644
975
  "kind": "markdown",
645
- "value": "Retorna el dia del mes de la data especificada.\n\n**Paràmetre**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - Valor de data del qual s'obtindrà el dia del mes.\n\n**Valor de retorn**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
976
+ "value": "Retorna el dia del mes de la data especificada.\n\n**Paràmetre**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) \\| DateOnly - Valor de data del qual s'obtindrà el dia del mes.\n\n**Valor de retorn**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
646
977
  }
647
978
  },
648
979
  "parametersInfo": {
@@ -650,30 +981,57 @@
650
981
  "max": 1
651
982
  }
652
983
  },
653
- {
654
- "type": "function",
655
- "name": "hour",
656
- "bundle": "core",
657
- "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#hour",
658
- "description": "Retorna el valor d'hora de l'hora de la data especificada (0-23).",
659
- "examples": "\n##### Exemple\n\nObté el valor d'hora de l'hora actual\n\n```arcade\nHour(Now())\n```\n\n",
660
- "completion": {
661
- "label": "Hour",
662
- "detail": "Hour(dateValue) -> Number",
663
- "insertText": "Hour(${1:dateValue_})$0",
664
- "insertTextMode": 2,
665
- "insertTextFormat": 2,
666
- "kind": 3,
667
- "documentation": {
668
- "kind": "markdown",
669
- "value": "Retorna el valor d'hora de l'hora de la data especificada (0-23).\n\n**Paràmetre**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - Valor de data del qual s'obtindrà el valor d'hora de l'hora.\n\n**Valor de retorn**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
984
+ [
985
+ {
986
+ "type": "function",
987
+ "name": "hour",
988
+ "bundle": "core",
989
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#hour1",
990
+ "description": "Returns the hour of the time in the given date (0-23).",
991
+ "examples": "\n##### Exemple\n\nGets the hour of the current time\n\n```arcade\nHour(Now())\n```\n\n",
992
+ "completion": {
993
+ "label": "Hour",
994
+ "detail": "Hour(dateValue) -> Number",
995
+ "insertText": "Hour(${1:dateValue_})$0",
996
+ "insertTextMode": 2,
997
+ "insertTextFormat": 2,
998
+ "kind": 3,
999
+ "documentation": {
1000
+ "kind": "markdown",
1001
+ "value": "Returns the hour of the time in the given date (0-23).\n\n**Paràmetre**\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**Valor de retorn**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
1002
+ }
1003
+ },
1004
+ "parametersInfo": {
1005
+ "min": 1,
1006
+ "max": 1
670
1007
  }
671
1008
  },
672
- "parametersInfo": {
673
- "min": 1,
674
- "max": 1
1009
+ {
1010
+ "type": "function",
1011
+ "name": "hour",
1012
+ "bundle": "core",
1013
+ "sinceVersion": "1.24",
1014
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#hour2",
1015
+ "description": "Returns the hour of the given time (0-23).",
1016
+ "examples": "\n##### Exemple\n\nGets the hour of the time\n\n```arcade\nHour(Time(2, 59, 23))\n// returns 2\n```\n\n",
1017
+ "completion": {
1018
+ "label": "Hour",
1019
+ "detail": "Hour(timeValue) -> Number",
1020
+ "insertText": "Hour(${1:timeValue_})$0",
1021
+ "insertTextMode": 2,
1022
+ "insertTextFormat": 2,
1023
+ "kind": 3,
1024
+ "documentation": {
1025
+ "kind": "markdown",
1026
+ "value": "**[A partir de la versió 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nReturns the hour of the given time (0-23).\n\n**Paràmetre**\n\n- **timeValue**: Time - A Time value from which to get the hour.\n\n**Valor de retorn**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
1027
+ }
1028
+ },
1029
+ "parametersInfo": {
1030
+ "min": 1,
1031
+ "max": 1
1032
+ }
675
1033
  }
676
- },
1034
+ ],
677
1035
  {
678
1036
  "type": "function",
679
1037
  "name": "isomonth",
@@ -681,7 +1039,7 @@
681
1039
  "sinceVersion": "1.12",
682
1040
  "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#isomonth",
683
1041
  "description": "Retorna el mes de la data especificada, d'acord amb la norma ISO 8601. Els valors van d'1 a 12, en què gener és `1` i desembre és `12`.",
684
- "examples": "\n##### Exemple\n\nObté el mes de la data especificada, d'acord amb la norma ISO 8601. Retorna `12` per al mes de desembre.\n\n```arcade\nISOMonth(Date(1980, 11, 31))\n```\n\n",
1042
+ "examples": "\n##### Exemples\n\nObté el mes de la data especificada, d'acord amb la norma ISO 8601. Retorna `12` per al mes de desembre.\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",
685
1043
  "completion": {
686
1044
  "label": "ISOMonth",
687
1045
  "detail": "ISOMonth(dateValue) -> Number",
@@ -691,7 +1049,7 @@
691
1049
  "kind": 3,
692
1050
  "documentation": {
693
1051
  "kind": "markdown",
694
- "value": "**[A partir de la versió 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nRetorna el mes de la data especificada, d'acord amb la norma ISO 8601. Els valors van d'1 a 12, en què gener és `1` i desembre és `12`.\n\n**Paràmetre**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - Valor de data del qual s'obtindrà el mes.\n\n**Valor de retorn**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
1052
+ "value": "**[A partir de la versió 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nRetorna el mes de la data especificada, d'acord amb la norma ISO 8601. Els valors van d'1 a 12, en què gener és `1` i desembre és `12`.\n\n**Paràmetre**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) \\| DateOnly - Valor de data del qual s'obtindrà el mes.\n\n**Valor de retorn**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
695
1053
  }
696
1054
  },
697
1055
  "parametersInfo": {
@@ -706,7 +1064,7 @@
706
1064
  "sinceVersion": "1.12",
707
1065
  "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#isoweek",
708
1066
  "description": "Retorna la setmana de l'any de la data especificada, d'acord amb el calendari de dates de setmana de la norma ISO 8601. Els valors van d'1 a 53, en què la primera setmana de l'any és `1` i l'última setmana de l'any és `52` o `53`, segons l'any.",
709
- "examples": "\n##### Exemple\n\nObté la setmana de la data especificada, d'acord amb la norma ISO 8601. Retorna `1`, ja que la data s'inclou a la primera setmana de l'any següent.\n\n```arcade\nISOWeek(Date(1980, 11, 31))\n```\n\n",
1067
+ "examples": "\n##### Exemples\n\nObté la setmana de la data especificada, d'acord amb la norma ISO 8601. Retorna `1`, ja que la data s'inclou a la primera setmana de l'any següent.\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",
710
1068
  "completion": {
711
1069
  "label": "ISOWeek",
712
1070
  "detail": "ISOWeek(dateValue) -> Number",
@@ -716,7 +1074,7 @@
716
1074
  "kind": 3,
717
1075
  "documentation": {
718
1076
  "kind": "markdown",
719
- "value": "**[A partir de la versió 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nRetorna la setmana de l'any de la data especificada, d'acord amb el calendari de dates de setmana de la norma ISO 8601. Els valors van d'1 a 53, en què la primera setmana de l'any és `1` i l'última setmana de l'any és `52` o `53`, segons l'any.\n\n**Paràmetre**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - Valor de data del qual s'obtindrà la setmana.\n\n**Valor de retorn**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
1077
+ "value": "**[A partir de la versió 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nRetorna la setmana de l'any de la data especificada, d'acord amb el calendari de dates de setmana de la norma ISO 8601. Els valors van d'1 a 53, en què la primera setmana de l'any és `1` i l'última setmana de l'any és `52` o `53`, segons l'any.\n\n**Paràmetre**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) \\| DateOnly - Valor de data del qual s'obtindrà la setmana.\n\n**Valor de retorn**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
720
1078
  }
721
1079
  },
722
1080
  "parametersInfo": {
@@ -731,7 +1089,7 @@
731
1089
  "sinceVersion": "1.12",
732
1090
  "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#isoweekday",
733
1091
  "description": "Retorna el dia de la setmana de la data especificada, d'acord amb la norma ISO 8601. Els valors van d'1 a 7, en què dilluns és `1` i diumenge és `7`.",
734
- "examples": "\n##### Exemple\n\nRetorna el dia de la setmana de la data especificada, d'acord amb la norma ISO 8601. Retorna `3` per a dimecres.\n\n```arcade\nISOWeekday(Date(1980, 11, 31))\n```\n\n",
1092
+ "examples": "\n##### Exemples\n\nRetorna el dia de la setmana de la data especificada, d'acord amb la norma ISO 8601. Retorna `3` per a dimecres.\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",
735
1093
  "completion": {
736
1094
  "label": "ISOWeekday",
737
1095
  "detail": "ISOWeekday(dateValue) -> Number",
@@ -741,7 +1099,7 @@
741
1099
  "kind": 3,
742
1100
  "documentation": {
743
1101
  "kind": "markdown",
744
- "value": "**[A partir de la versió 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nRetorna el dia de la setmana de la data especificada, d'acord amb la norma ISO 8601. Els valors van d'1 a 7, en què dilluns és `1` i diumenge és `7`.\n\n**Paràmetre**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - Valor de data del qual es retornarà el dia de la setmana.\n\n**Valor de retorn**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
1102
+ "value": "**[A partir de la versió 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nRetorna el dia de la setmana de la data especificada, d'acord amb la norma ISO 8601. Els valors van d'1 a 7, en què dilluns és `1` i diumenge és `7`.\n\n**Paràmetre**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) \\| DateOnly - Valor de data del qual es retornarà el dia de la setmana.\n\n**Valor de retorn**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
745
1103
  }
746
1104
  },
747
1105
  "parametersInfo": {
@@ -756,65 +1114,17 @@
756
1114
  "sinceVersion": "1.12",
757
1115
  "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#isoyear",
758
1116
  "description": "Retorna l'any de la data especificada, d'acord amb el calendari de dates de setmana de la norma ISO 8601.",
759
- "examples": "\n##### Exemple\n\nObté l'any de la data especificada, d'acord amb el calendari de dates de setmana de la norma ISO 8601. Retorna `1981`, ja que la data s'inclou a la primera setmana de l'any següent.\n\n```arcade\nISOYear(Date(1980, 11, 31))\n```\n\n",
1117
+ "examples": "\n##### Exemples\n\nObté l'any de la data especificada, d'acord amb el calendari de dates de setmana de la norma ISO 8601. Retorna `1981`, ja que la data s'inclou a la primera setmana de l'any següent.\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",
760
1118
  "completion": {
761
1119
  "label": "ISOYear",
762
- "detail": "ISOYear(dateValue) -> Number",
763
- "insertText": "ISOYear(${1:dateValue_})$0",
764
- "insertTextMode": 2,
765
- "insertTextFormat": 2,
766
- "kind": 3,
767
- "documentation": {
768
- "kind": "markdown",
769
- "value": "**[A partir de la versió 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nRetorna l'any de la data especificada, d'acord amb el calendari de dates de setmana de la norma ISO 8601.\n\n**Paràmetre**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - Valor de data del qual s'obtindrà l'any.\n\n**Valor de retorn**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
770
- }
771
- },
772
- "parametersInfo": {
773
- "min": 1,
774
- "max": 1
775
- }
776
- },
777
- {
778
- "type": "function",
779
- "name": "millisecond",
780
- "bundle": "core",
781
- "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#millisecond",
782
- "description": "Retorna els mil·lisegons de l'hora de la data.",
783
- "examples": "\n##### Exemple\n\nObté els mil·lisegons de l'hora actual\n\n```arcade\nMillisecond(Now())\n```\n\n",
784
- "completion": {
785
- "label": "Millisecond",
786
- "detail": "Millisecond(dateValue) -> Number",
787
- "insertText": "Millisecond(${1:dateValue_})$0",
788
- "insertTextMode": 2,
789
- "insertTextFormat": 2,
790
- "kind": 3,
791
- "documentation": {
792
- "kind": "markdown",
793
- "value": "Retorna els mil·lisegons de l'hora de la data.\n\n**Paràmetre**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - Valor de data del qual s'obtindran els mil·lisegons de l'hora.\n\n**Valor de retorn**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
794
- }
795
- },
796
- "parametersInfo": {
797
- "min": 1,
798
- "max": 1
799
- }
800
- },
801
- {
802
- "type": "function",
803
- "name": "minute",
804
- "bundle": "core",
805
- "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#minute",
806
- "description": "Retorna els minuts de l'hora de la data especificada.",
807
- "examples": "\n##### Exemple\n\nObté els minuts de l'hora actual\n\n```arcade\nMinute(Now())\n```\n\n",
808
- "completion": {
809
- "label": "Minute",
810
- "detail": "Minute(dateValue) -> Number",
811
- "insertText": "Minute(${1:dateValue_})$0",
1120
+ "detail": "ISOYear(dateValue) -> Number",
1121
+ "insertText": "ISOYear(${1:dateValue_})$0",
812
1122
  "insertTextMode": 2,
813
1123
  "insertTextFormat": 2,
814
1124
  "kind": 3,
815
1125
  "documentation": {
816
1126
  "kind": "markdown",
817
- "value": "Retorna els minuts de l'hora de la data especificada.\n\n**Paràmetre**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - Valor de data del qual s'obtindran els minuts de l'hora.\n\n**Valor de retorn**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
1127
+ "value": "**[A partir de la versió 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nRetorna l'any de la data especificada, d'acord amb el calendari de dates de setmana de la norma ISO 8601.\n\n**Paràmetre**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) \\| DateOnly - Valor de data del qual s'obtindrà l'any.\n\n**Valor de retorn**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
818
1128
  }
819
1129
  },
820
1130
  "parametersInfo": {
@@ -822,13 +1132,115 @@
822
1132
  "max": 1
823
1133
  }
824
1134
  },
1135
+ [
1136
+ {
1137
+ "type": "function",
1138
+ "name": "millisecond",
1139
+ "bundle": "core",
1140
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#millisecond1",
1141
+ "description": "Returns the millisecond of the time in the date.",
1142
+ "examples": "\n##### Exemple\n\nGets the millisecond of the current time\n\n```arcade\nMillisecond(Now())\n```\n\n",
1143
+ "completion": {
1144
+ "label": "Millisecond",
1145
+ "detail": "Millisecond(dateValue) -> Number",
1146
+ "insertText": "Millisecond(${1:dateValue_})$0",
1147
+ "insertTextMode": 2,
1148
+ "insertTextFormat": 2,
1149
+ "kind": 3,
1150
+ "documentation": {
1151
+ "kind": "markdown",
1152
+ "value": "Returns the millisecond of the time in the date.\n\n**Paràmetre**\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**Valor de retorn**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
1153
+ }
1154
+ },
1155
+ "parametersInfo": {
1156
+ "min": 1,
1157
+ "max": 1
1158
+ }
1159
+ },
1160
+ {
1161
+ "type": "function",
1162
+ "name": "millisecond",
1163
+ "bundle": "core",
1164
+ "sinceVersion": "1.24",
1165
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#millisecond2",
1166
+ "description": "Returns the millisecond of the given time.",
1167
+ "examples": "\n##### Exemple\n\nGets the millisecond of the time\n\n```arcade\nHour(Time(2, 59, 23, 450))\n// returns 450\n```\n\n",
1168
+ "completion": {
1169
+ "label": "Millisecond",
1170
+ "detail": "Millisecond(timeValue) -> Number",
1171
+ "insertText": "Millisecond(${1:timeValue_})$0",
1172
+ "insertTextMode": 2,
1173
+ "insertTextFormat": 2,
1174
+ "kind": 3,
1175
+ "documentation": {
1176
+ "kind": "markdown",
1177
+ "value": "**[A partir de la versió 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nReturns the millisecond of the given time.\n\n**Paràmetre**\n\n- **timeValue**: Time - A Time value from which to get the millisecond.\n\n**Valor de retorn**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
1178
+ }
1179
+ },
1180
+ "parametersInfo": {
1181
+ "min": 1,
1182
+ "max": 1
1183
+ }
1184
+ }
1185
+ ],
1186
+ [
1187
+ {
1188
+ "type": "function",
1189
+ "name": "minute",
1190
+ "bundle": "core",
1191
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#minute1",
1192
+ "description": "Returns the minute of the time in the given date.",
1193
+ "examples": "\n##### Exemple\n\nGets the minute of the current time\n\n```arcade\nMinute(Now())\n```\n\n",
1194
+ "completion": {
1195
+ "label": "Minute",
1196
+ "detail": "Minute(dateValue) -> Number",
1197
+ "insertText": "Minute(${1:dateValue_})$0",
1198
+ "insertTextMode": 2,
1199
+ "insertTextFormat": 2,
1200
+ "kind": 3,
1201
+ "documentation": {
1202
+ "kind": "markdown",
1203
+ "value": "Returns the minute of the time in the given date.\n\n**Paràmetre**\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**Valor de retorn**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
1204
+ }
1205
+ },
1206
+ "parametersInfo": {
1207
+ "min": 1,
1208
+ "max": 1
1209
+ }
1210
+ },
1211
+ {
1212
+ "type": "function",
1213
+ "name": "minute",
1214
+ "bundle": "core",
1215
+ "sinceVersion": "1.24",
1216
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#minute2",
1217
+ "description": "Returns the minute of the given time.",
1218
+ "examples": "\n##### Exemple\n\nGets the minute of the time\n\n```arcade\nHour(Time(2, 59, 23))\n// returns 59\n```\n\n",
1219
+ "completion": {
1220
+ "label": "Minute",
1221
+ "detail": "Minute(timeValue) -> Number",
1222
+ "insertText": "Minute(${1:timeValue_})$0",
1223
+ "insertTextMode": 2,
1224
+ "insertTextFormat": 2,
1225
+ "kind": 3,
1226
+ "documentation": {
1227
+ "kind": "markdown",
1228
+ "value": "**[A partir de la versió 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nReturns the minute of the given time.\n\n**Paràmetre**\n\n- **timeValue**: Time - A Time value from which to get the minute.\n\n**Valor de retorn**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
1229
+ }
1230
+ },
1231
+ "parametersInfo": {
1232
+ "min": 1,
1233
+ "max": 1
1234
+ }
1235
+ }
1236
+ ],
825
1237
  {
826
1238
  "type": "function",
827
1239
  "name": "month",
828
1240
  "bundle": "core",
829
1241
  "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#month",
830
1242
  "description": "Retorna el mes de la data especificada. Els valors van de 0 a 11, on gener és `0` i desembre és `11`.",
831
- "examples": "\n##### Exemple\n\nObté el mes de la data especificada. Retorna `11` per al mes de desembre.\n\n```arcade\nMonth(Date(1980, 11, 31))\n```\n\n",
1243
+ "examples": "\n##### Exemples\n\nObté el mes de la data especificada. Retorna `11` per al mes de desembre.\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",
832
1244
  "completion": {
833
1245
  "label": "Month",
834
1246
  "detail": "Month(dateValue) -> Number",
@@ -838,7 +1250,7 @@
838
1250
  "kind": 3,
839
1251
  "documentation": {
840
1252
  "kind": "markdown",
841
- "value": "Retorna el mes de la data especificada. Els valors van de 0 a 11, on gener és `0` i desembre és `11`.\n\n**Paràmetre**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - Valor de data del qual s'obtindrà el mes.\n\n**Valor de retorn**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
1253
+ "value": "Retorna el mes de la data especificada. Els valors van de 0 a 11, on gener és `0` i desembre és `11`.\n\n**Paràmetre**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) \\| DateOnly - Valor de data del qual s'obtindrà el mes.\n\n**Valor de retorn**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
842
1254
  }
843
1255
  },
844
1256
  "parametersInfo": {
@@ -870,23 +1282,227 @@
870
1282
  "max": 0
871
1283
  }
872
1284
  },
1285
+ [
1286
+ {
1287
+ "type": "function",
1288
+ "name": "second",
1289
+ "bundle": "core",
1290
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#second1",
1291
+ "description": "Returns the second of the time in the date.",
1292
+ "examples": "\n##### Exemple\n\nGets the second of the current time\n\n```arcade\nSecond(Now())\n```\n\n",
1293
+ "completion": {
1294
+ "label": "Second",
1295
+ "detail": "Second(dateValue) -> Number",
1296
+ "insertText": "Second(${1:dateValue_})$0",
1297
+ "insertTextMode": 2,
1298
+ "insertTextFormat": 2,
1299
+ "kind": 3,
1300
+ "documentation": {
1301
+ "kind": "markdown",
1302
+ "value": "Returns the second of the time in the date.\n\n**Paràmetre**\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**Valor de retorn**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
1303
+ }
1304
+ },
1305
+ "parametersInfo": {
1306
+ "min": 1,
1307
+ "max": 1
1308
+ }
1309
+ },
1310
+ {
1311
+ "type": "function",
1312
+ "name": "second",
1313
+ "bundle": "core",
1314
+ "sinceVersion": "1.24",
1315
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#second2",
1316
+ "description": "Returns the second of the given time.",
1317
+ "examples": "\n##### Exemple\n\nGets the second of the time\n\n```arcade\nHour(Time(2, 59, 23))\n// returns 23\n```\n\n",
1318
+ "completion": {
1319
+ "label": "Second",
1320
+ "detail": "Second(timeValue) -> Number",
1321
+ "insertText": "Second(${1:timeValue_})$0",
1322
+ "insertTextMode": 2,
1323
+ "insertTextFormat": 2,
1324
+ "kind": 3,
1325
+ "documentation": {
1326
+ "kind": "markdown",
1327
+ "value": "**[A partir de la versió 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nReturns the second of the given time.\n\n**Paràmetre**\n\n- **timeValue**: Time - A Time value from which to get the second.\n\n**Valor de retorn**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
1328
+ }
1329
+ },
1330
+ "parametersInfo": {
1331
+ "min": 1,
1332
+ "max": 1
1333
+ }
1334
+ }
1335
+ ],
1336
+ [
1337
+ {
1338
+ "type": "function",
1339
+ "name": "time",
1340
+ "bundle": "core",
1341
+ "sinceVersion": "1.24",
1342
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#time1",
1343
+ "description": "Creates a Time value representing the current time in the time zone of the profile's execution context.",
1344
+ "examples": "\n##### Exemple\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",
1345
+ "completion": {
1346
+ "label": "Time",
1347
+ "detail": "Time() -> Time",
1348
+ "insertText": "Time($0)",
1349
+ "insertTextMode": 2,
1350
+ "insertTextFormat": 2,
1351
+ "kind": 3,
1352
+ "documentation": {
1353
+ "kind": "markdown",
1354
+ "value": "**[A partir de la versió 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**Valor de retorn**: Time"
1355
+ }
1356
+ },
1357
+ "parametersInfo": {
1358
+ "min": 0,
1359
+ "max": 0
1360
+ }
1361
+ },
1362
+ {
1363
+ "type": "function",
1364
+ "name": "time",
1365
+ "bundle": "core",
1366
+ "sinceVersion": "1.24",
1367
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#time2",
1368
+ "description": "Creates a Time value from a given date.",
1369
+ "examples": "\n##### Exemple\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",
1370
+ "completion": {
1371
+ "label": "Time",
1372
+ "detail": "Time(dateValue) -> Time",
1373
+ "insertText": "Time(${1:dateValue_})$0",
1374
+ "insertTextMode": 2,
1375
+ "insertTextFormat": 2,
1376
+ "kind": 3,
1377
+ "documentation": {
1378
+ "kind": "markdown",
1379
+ "value": "**[A partir de la versió 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nCreates a Time value from a given date.\n\n**Paràmetre**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - The date from which to get the time.\n\n**Valor de retorn**: Time"
1380
+ }
1381
+ },
1382
+ "parametersInfo": {
1383
+ "min": 1,
1384
+ "max": 1
1385
+ }
1386
+ },
1387
+ {
1388
+ "type": "function",
1389
+ "name": "time",
1390
+ "bundle": "core",
1391
+ "sinceVersion": "1.24",
1392
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#time3",
1393
+ "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`.",
1394
+ "examples": "\n##### Exemples\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",
1395
+ "completion": {
1396
+ "label": "Time",
1397
+ "detail": "Time(numValue) -> Time",
1398
+ "insertText": "Time(${1:numValue_})$0",
1399
+ "insertTextMode": 2,
1400
+ "insertTextFormat": 2,
1401
+ "kind": 3,
1402
+ "documentation": {
1403
+ "kind": "markdown",
1404
+ "value": "**[A partir de la versió 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**Paràmetre**\n\n- **numValue**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - The number of milliseconds since midnight.\n\n**Valor de retorn**: Time"
1405
+ }
1406
+ },
1407
+ "parametersInfo": {
1408
+ "min": 1,
1409
+ "max": 1
1410
+ }
1411
+ },
1412
+ {
1413
+ "type": "function",
1414
+ "name": "time",
1415
+ "bundle": "core",
1416
+ "sinceVersion": "1.24",
1417
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#time4",
1418
+ "description": "Creates a Time value from inputs representing hours, minutes, seconds, and milliseconds.",
1419
+ "examples": "\n##### Exemple\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",
1420
+ "completion": {
1421
+ "label": "Time",
1422
+ "detail": "Time(hours, minutes, seconds?, milliseconds?) -> Time",
1423
+ "insertText": "Time(${1:hours_}, ${2:minutes_})$0",
1424
+ "insertTextMode": 2,
1425
+ "insertTextFormat": 2,
1426
+ "kind": 3,
1427
+ "documentation": {
1428
+ "kind": "markdown",
1429
+ "value": "**[A partir de la versió 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**Paràmetres**\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**Valor de retorn**: Time"
1430
+ }
1431
+ },
1432
+ "parametersInfo": {
1433
+ "min": 2,
1434
+ "max": 4
1435
+ }
1436
+ },
1437
+ {
1438
+ "type": "function",
1439
+ "name": "time",
1440
+ "bundle": "core",
1441
+ "sinceVersion": "1.24",
1442
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#time5",
1443
+ "description": "Creates a Time value from a text input representing time, with an optional input indicating the text's format.",
1444
+ "examples": "\n##### Exemples\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",
1445
+ "completion": {
1446
+ "label": "Time",
1447
+ "detail": "Time(timeValue, format?) -> Time",
1448
+ "insertText": "Time(${1:timeValue_})$0",
1449
+ "insertTextMode": 2,
1450
+ "insertTextFormat": 2,
1451
+ "kind": 3,
1452
+ "documentation": {
1453
+ "kind": "markdown",
1454
+ "value": "**[A partir de la versió 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**Paràmetres**\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**Valor de retorn**: Time"
1455
+ }
1456
+ },
1457
+ "parametersInfo": {
1458
+ "min": 1,
1459
+ "max": 2
1460
+ }
1461
+ }
1462
+ ],
1463
+ {
1464
+ "type": "function",
1465
+ "name": "timestamp",
1466
+ "bundle": "core",
1467
+ "sinceVersion": "1.1",
1468
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#timestamp",
1469
+ "description": "Crea un valor de data que representa la dada i l'hora UTC actuals.",
1470
+ "examples": "\n##### Exemple\n\nCrea una data en hora UTC\n\n```arcade\n// Date that represents Jan 27, 2023, 8:41:20 PM UTC\nTimestamp()\n```\n\n",
1471
+ "completion": {
1472
+ "label": "Timestamp",
1473
+ "detail": "Timestamp() -> Date",
1474
+ "insertText": "Timestamp($0)",
1475
+ "insertTextMode": 2,
1476
+ "insertTextFormat": 2,
1477
+ "kind": 3,
1478
+ "documentation": {
1479
+ "kind": "markdown",
1480
+ "value": "**[A partir de la versió 1.1](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nCrea un valor de data que representa la dada i l'hora UTC actuals.\n\n**Valor de retorn**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)"
1481
+ }
1482
+ },
1483
+ "parametersInfo": {
1484
+ "min": 0,
1485
+ "max": 0
1486
+ }
1487
+ },
873
1488
  {
874
1489
  "type": "function",
875
- "name": "second",
1490
+ "name": "timezone",
876
1491
  "bundle": "core",
877
- "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#second",
878
- "description": "Retorna els segons de l'hora de la data.",
879
- "examples": "\n##### Exemple\n\nObté els segons de l'hora actual\n\n```arcade\nSecond(Now())\n```\n\n",
1492
+ "sinceVersion": "1.24",
1493
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#timezone",
1494
+ "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",
1495
+ "examples": "\n##### Exemple\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",
880
1496
  "completion": {
881
- "label": "Second",
882
- "detail": "Second(dateValue) -> Number",
883
- "insertText": "Second(${1:dateValue_})$0",
1497
+ "label": "TimeZone",
1498
+ "detail": "TimeZone(dateValue) -> Text",
1499
+ "insertText": "TimeZone(${1:dateValue_})$0",
884
1500
  "insertTextMode": 2,
885
1501
  "insertTextFormat": 2,
886
1502
  "kind": 3,
887
1503
  "documentation": {
888
1504
  "kind": "markdown",
889
- "value": "Retorna els segons de l'hora de la data.\n\n**Paràmetre**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - Valor de data del qual s'obtindran els segons de l'hora.\n\n**Valor de retorn**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
1505
+ "value": "**[A partir de la versió 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**Paràmetre**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - A Date value from which to get the time zone.\n\n**Valor de retorn**: [Text](https://developers.arcgis.com/arcade/guide/types/#text)"
890
1506
  }
891
1507
  },
892
1508
  "parametersInfo": {
@@ -896,27 +1512,27 @@
896
1512
  },
897
1513
  {
898
1514
  "type": "function",
899
- "name": "timestamp",
1515
+ "name": "timezoneoffset",
900
1516
  "bundle": "core",
901
- "sinceVersion": "1.1",
902
- "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#timestamp",
903
- "description": "Crea un valor de data que representa la dada i l'hora UTC actuals.",
904
- "examples": "\n##### Exemple\n\nCrea una data en hora UTC\n\n```arcade\n// Date that represents Jan 27, 2023, 8:41:20 PM UTC\nTimestamp()\n```\n\n",
1517
+ "sinceVersion": "1.24",
1518
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#timezoneoffset",
1519
+ "description": "Returns the time zone offset in minutes from UTC for the given Date.",
1520
+ "examples": "\n##### Exemple\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",
905
1521
  "completion": {
906
- "label": "Timestamp",
907
- "detail": "Timestamp() -> Date",
908
- "insertText": "Timestamp($0)",
1522
+ "label": "TimeZoneOffset",
1523
+ "detail": "TimeZoneOffset(dateValue) -> Number",
1524
+ "insertText": "TimeZoneOffset(${1:dateValue_})$0",
909
1525
  "insertTextMode": 2,
910
1526
  "insertTextFormat": 2,
911
1527
  "kind": 3,
912
1528
  "documentation": {
913
1529
  "kind": "markdown",
914
- "value": "**[A partir de la versió 1.1](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nCrea un valor de data que representa la dada i l'hora UTC actuals.\n\n**Valor de retorn**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)"
1530
+ "value": "**[A partir de la versió 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**Paràmetre**\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**Valor de retorn**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
915
1531
  }
916
1532
  },
917
1533
  "parametersInfo": {
918
- "min": 0,
919
- "max": 0
1534
+ "min": 1,
1535
+ "max": 1
920
1536
  }
921
1537
  },
922
1538
  {
@@ -1000,7 +1616,7 @@
1000
1616
  "sinceVersion": "1.14",
1001
1617
  "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#week",
1002
1618
  "description": "Retorna el nombre de la setmana de l'any de la data especificada. Els valors van de 0 a 53, en què la primera setmana de l'any és `0` i l'última setmana de l'any és `51`, `52` o `53`, en funció de l'any. És possible que la primera setmana i l'última no tinguin la longitud completa de 7 dies.",
1003
- "examples": "\n##### Exemples\n\nUtilitza l'inici per defecte de la setmana (diumenge)\n\n```arcade\nWeek( Date(1974,0,3) )\n// Returns 0\n```\n\nDefineix l'inici de la setmana en dijous\n\n```arcade\nWeek( Date(1974,0,3), 4 )\n// Returns 1\n```\n\nDefineix l'inici de la setmana en divendres\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",
1619
+ "examples": "\n##### Exemples\n\nUtilitza l'inici per defecte de la setmana (diumenge)\n\n```arcade\nWeek( Date(1974,0,3) )\n// Returns 0\n```\n\nDefineix l'inici de la setmana en dijous\n\n```arcade\nWeek( Date(1974,0,3), 4 )\n// Returns 1\n```\n\nDefineix l'inici de la setmana en divendres\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",
1004
1620
  "completion": {
1005
1621
  "label": "Week",
1006
1622
  "detail": "Week(dateValue, startDay?) -> Number",
@@ -1010,7 +1626,7 @@
1010
1626
  "kind": 3,
1011
1627
  "documentation": {
1012
1628
  "kind": "markdown",
1013
- "value": "**[A partir de la versió 1.14](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nRetorna el nombre de la setmana de l'any de la data especificada. Els valors van de 0 a 53, en què la primera setmana de l'any és `0` i l'última setmana de l'any és `51`, `52` o `53`, en funció de l'any. És possible que la primera setmana i l'última no tinguin la longitud completa de 7 dies.\n\n**Paràmetres**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - Valor de data del qual s'obtindrà la setmana.\n- **startDay** (_Optional_): [Number](https://developers.arcgis.com/arcade/guide/types/#number) - Nombre que representa el dia en què comença la setmana. Diumenge = 0; dilluns = 1; dimarts = 2; dimecres = 3; dijous = 4; divendres = 5; dissabte = 6. El valor per defecte és `0` (diumenge).\n\n**Valor de retorn**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
1629
+ "value": "**[A partir de la versió 1.14](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nRetorna el nombre de la setmana de l'any de la data especificada. Els valors van de 0 a 53, en què la primera setmana de l'any és `0` i l'última setmana de l'any és `51`, `52` o `53`, en funció de l'any. És possible que la primera setmana i l'última no tinguin la longitud completa de 7 dies.\n\n**Paràmetres**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) \\| DateOnly - Valor de data del qual s'obtindrà la setmana.\n- **startDay** (_Optional_): [Number](https://developers.arcgis.com/arcade/guide/types/#number) - Nombre que representa el dia en què comença la setmana. Diumenge = 0; dilluns = 1; dimarts = 2; dimecres = 3; dijous = 4; divendres = 5; dissabte = 6. El valor per defecte és `0` (diumenge).\n\n**Valor de retorn**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
1014
1630
  }
1015
1631
  },
1016
1632
  "parametersInfo": {
@@ -1024,7 +1640,7 @@
1024
1640
  "bundle": "core",
1025
1641
  "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#weekday",
1026
1642
  "description": "Retorna el dia de la setmana de la data especificada. Els valors van de 0 a 6, on diumenge és `0` i dissabte és `6`.",
1027
- "examples": "\n##### Exemple\n\nRetorna el dia de la setmana de la data especificada. Retorna `3` per a dimecres.\n\n```arcade\nWeekday(Date(1980, 11, 31))\n```\n\n",
1643
+ "examples": "\n##### Exemples\n\nRetorna el dia de la setmana de la data especificada. Retorna `3` per a dimecres.\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",
1028
1644
  "completion": {
1029
1645
  "label": "Weekday",
1030
1646
  "detail": "Weekday(dateValue) -> Number",
@@ -1034,7 +1650,7 @@
1034
1650
  "kind": 3,
1035
1651
  "documentation": {
1036
1652
  "kind": "markdown",
1037
- "value": "Retorna el dia de la setmana de la data especificada. Els valors van de 0 a 6, on diumenge és `0` i dissabte és `6`.\n\n**Paràmetre**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - Valor de data del qual es retornarà el dia de la setmana.\n\n**Valor de retorn**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
1653
+ "value": "Retorna el dia de la setmana de la data especificada. Els valors van de 0 a 6, on diumenge és `0` i dissabte és `6`.\n\n**Paràmetre**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) \\| DateOnly - Valor de data del qual es retornarà el dia de la setmana.\n\n**Valor de retorn**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
1038
1654
  }
1039
1655
  },
1040
1656
  "parametersInfo": {
@@ -1048,7 +1664,7 @@
1048
1664
  "bundle": "core",
1049
1665
  "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#year",
1050
1666
  "description": "Retorna l'any de la data especificada.",
1051
- "examples": "\n##### Exemple\n\nObté l'any de la data actual\n\n```arcade\nYear(Now())\n```\n\n",
1667
+ "examples": "\n##### Exemples\n\nObté l'any de la data actual\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",
1052
1668
  "completion": {
1053
1669
  "label": "Year",
1054
1670
  "detail": "Year(dateValue) -> Number",
@@ -1058,7 +1674,7 @@
1058
1674
  "kind": 3,
1059
1675
  "documentation": {
1060
1676
  "kind": "markdown",
1061
- "value": "Retorna l'any de la data especificada.\n\n**Paràmetre**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - Valor de data del qual s'obtindrà l'any.\n\n**Valor de retorn**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
1677
+ "value": "Retorna l'any de la data especificada.\n\n**Paràmetre**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) \\| DateOnly - Valor de data del qual s'obtindrà l'any.\n\n**Valor de retorn**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
1062
1678
  }
1063
1679
  },
1064
1680
  "parametersInfo": {
@@ -1758,6 +2374,31 @@
1758
2374
  "max": 4
1759
2375
  }
1760
2376
  },
2377
+ {
2378
+ "type": "function",
2379
+ "name": "featuresetbyrelationshipclass",
2380
+ "bundle": "data-access",
2381
+ "sinceVersion": "1.24",
2382
+ "link": "https://developers.arcgis.com/arcade/function-reference/featureset_functions/#featuresetbyrelationshipclass",
2383
+ "description": "Returns the related records for a given feature as a FeatureSet based on the class name of the relationship.",
2384
+ "examples": "\n##### Exemple\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",
2385
+ "completion": {
2386
+ "label": "FeatureSetByRelationshipClass",
2387
+ "detail": "FeatureSetByRelationshipClass(inputFeature, relationshipClass, fieldNames?, includeGeometry?) -> FeatureSet",
2388
+ "insertText": "FeatureSetByRelationshipClass(${1:inputFeature_}, ${2:relationshipClass_})$0",
2389
+ "insertTextMode": 2,
2390
+ "insertTextFormat": 2,
2391
+ "kind": 3,
2392
+ "documentation": {
2393
+ "kind": "markdown",
2394
+ "value": "**[A partir de la versió 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**Paràmetres**\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)&lt;[Text](https://developers.arcgis.com/arcade/guide/types/#text)&gt; - 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**Valor de retorn**: [FeatureSet](https://developers.arcgis.com/arcade/guide/types/#featureset)"
2395
+ }
2396
+ },
2397
+ "parametersInfo": {
2398
+ "min": 2,
2399
+ "max": 4
2400
+ }
2401
+ },
1761
2402
  {
1762
2403
  "type": "function",
1763
2404
  "name": "featuresetbyrelationshipname",
@@ -5408,7 +6049,7 @@
5408
6049
  "bundle": "core",
5409
6050
  "link": "https://developers.arcgis.com/arcade/function-reference/text_functions/#text",
5410
6051
  "description": "Converteix el seu argument en un valor de text i opcionalment li aplica format. Retorna `null` si es produeix un error.",
5411
- "examples": "\n##### Exemples\n\nEmplena el nombre a l'esquerra del decimal\n\n```arcade\nText(123, '0000') // '0123'\n```\n\nRestringeix el nombre a l'esquerra del decimal\n\n```arcade\nText(123, '00') // '23'\n```\n\nAgrupa el nombre per milers\n\n```arcade\nText(1234, '#,###') // '1,234'\n```\n\nArrodoneix el nombre per a dues posicions decimals\n\n```arcade\nText(12345678.123, '#,###.00') // '12,345,678.12'\n```\n\nFormata el nombre com a moneda\n\n```arcade\nText(1234.55, '$#,###.00') // '$1,234.55'\n```\n\nArrodoneix el nombre per a dues posicions decimals\n\n```arcade\nText(1.236, '#.00') // '1.24'\n```\n\nMantén els dígits importants i els agrupa'ls per milers\n\n```arcade\nText(1234.5678, '#,##0.00#') // '1,234.568'\n```\n\nFormata el nombre i el signe positiu/negatiu: si hi ha un subpatró negatiu, només serveix per especificar el prefix i el sufix negatius\n\n```arcade\nText(-2, 'Floor #;Basement #') // 'Basement 2'\n```\n\n\n\n```arcade\nText(2, 'Floor #;Basement #') // 'Floor 2'\n```\n\nMultiplica per 100 i dóna format com a percentatge\n\n```arcade\nText(0.3, '#%') // '30%'\n```\n\nFormata la data i hora del moment, per exemple, 'Tuesday, October 25, 2016 @ 08:43:11'\n\n```arcade\nText(Now(), 'dddd, MMMM D, Y @ h:m:s')\n```\n\nLa data emmagatzemada al camp 'datetime' ja representa l'hora local, però l'Arcade dona per fet que és UTC. Converteix l'hora local a UTC per evitar aplicar la conversió de la zona horària dues vegades.\n\n```arcade\nText(ToUTC($feature.datetime), 'dddd, MMMM D, Y @ h:m:s')\n```\n\n",
6052
+ "examples": "\n##### Exemples\n\nEmplena el nombre a l'esquerra del decimal\n\n```arcade\nText(123, '0000') // '0123'\n```\n\nRestringeix el nombre a l'esquerra del decimal\n\n```arcade\nText(123, '00') // '23'\n```\n\nAgrupa el nombre per milers\n\n```arcade\nText(1234, '#,###') // '1,234'\n```\n\nArrodoneix el nombre per a dues posicions decimals\n\n```arcade\nText(12345678.123, '#,###.00') // '12,345,678.12'\n```\n\nFormata el nombre com a moneda\n\n```arcade\nText(1234.55, '$#,###.00') // '$1,234.55'\n```\n\nArrodoneix el nombre per a dues posicions decimals\n\n```arcade\nText(1.236, '#.00') // '1.24'\n```\n\nMantén els dígits importants i els agrupa'ls per milers\n\n```arcade\nText(1234.5678, '#,##0.00#') // '1,234.568'\n```\n\nFormata el nombre i el signe positiu/negatiu: si hi ha un subpatró negatiu, només serveix per especificar el prefix i el sufix negatius\n\n```arcade\nText(-2, 'Floor #;Basement #') // 'Basement 2'\n```\n\n\n\n```arcade\nText(2, 'Floor #;Basement #') // 'Floor 2'\n```\n\nMultiplica per 100 i dóna format com a percentatge\n\n```arcade\nText(0.3, '#%') // '30%'\n```\n\nFormata la data i hora del moment, per exemple, 'Tuesday, October 25, 2016 @ 08:43:11'\n\n```arcade\nText(Now(), 'dddd, MMMM D, Y @ h:m:s')\n```\n\nLa data emmagatzemada al camp 'datetime' ja representa l'hora local, però l'Arcade dona per fet que és UTC. Converteix l'hora local a UTC per evitar aplicar la conversió de la zona horària dues vegades.\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",
5412
6053
  "completion": {
5413
6054
  "label": "Text",
5414
6055
  "detail": "Text(value, format?) -> Text",
@@ -5760,6 +6401,31 @@
5760
6401
  "max": 2
5761
6402
  }
5762
6403
  },
6404
+ {
6405
+ "type": "function",
6406
+ "name": "equals",
6407
+ "bundle": "core",
6408
+ "sinceVersion": "1.24",
6409
+ "link": "https://developers.arcgis.com/arcade/function-reference/logical_functions/#equals",
6410
+ "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.",
6411
+ "examples": "\n##### Exemple\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",
6412
+ "completion": {
6413
+ "label": "Equals",
6414
+ "detail": "Equals(value1, value2) -> Boolean",
6415
+ "insertText": "Equals(${1:value1_}, ${2:value2_})$0",
6416
+ "insertTextMode": 2,
6417
+ "insertTextFormat": 2,
6418
+ "kind": 3,
6419
+ "documentation": {
6420
+ "kind": "markdown",
6421
+ "value": "**[A partir de la versió 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**Paràmetres**\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**Valor de retorn**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean)"
6422
+ }
6423
+ },
6424
+ "parametersInfo": {
6425
+ "min": 2,
6426
+ "max": 2
6427
+ }
6428
+ },
5763
6429
  {
5764
6430
  "type": "function",
5765
6431
  "name": "iif",
@@ -6195,7 +6861,7 @@
6195
6861
  "kind": 3,
6196
6862
  "documentation": {
6197
6863
  "kind": "markdown",
6198
- "value": "**[A partir de la versió 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nGenera un valor de codi hash per a una variable determinada.\n\n**Paràmetre**\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)&lt;[Any](https://developers.arcgis.com/arcade/guide/types/#any)&gt; \\| [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) \\| [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) - Variable a la qual s'aplicarà el hash.\n\n**Valor de retorn**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
6864
+ "value": "**[A partir de la versió 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nGenera un valor de codi hash per a una variable determinada.\n\n**Paràmetre**\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)&lt;[Any](https://developers.arcgis.com/arcade/guide/types/#any)&gt; \\| [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) \\| [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) \\| DateOnly \\| Time - Variable a la qual s'aplicarà el hash.\n\n**Valor de retorn**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
6199
6865
  }
6200
6866
  },
6201
6867
  "parametersInfo": {