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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (130) 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/index.esm.js +1 -1
  83. package/dist/arcgis-coding-components/{p-ed254359.js → p-00c0b964.js} +1 -1
  84. package/dist/arcgis-coding-components/{p-616bcc2c.js → p-0f471c2c.js} +1 -1
  85. package/dist/arcgis-coding-components/{p-4d7cdaf4.js → p-2daa5deb.js} +1 -1
  86. package/dist/arcgis-coding-components/{p-b866ffa3.js → p-65933e8a.js} +1 -1
  87. package/dist/arcgis-coding-components/{p-2eee5b07.js → p-92019d78.js} +7 -7
  88. package/dist/arcgis-coding-components/{p-ee4aaf72.js → p-bcd478e3.js} +1 -1
  89. package/dist/arcgis-coding-components/{p-41feaa6e.js → p-be85ec3d.js} +1 -1
  90. package/dist/arcgis-coding-components/{p-63d6d128.js → p-bf83cfac.js} +1 -1
  91. package/dist/arcgis-coding-components/p-dd2d53e7.entry.js +1 -0
  92. package/dist/arcgis-coding-components/{p-c14a46af.js → p-f1b6ba59.js} +1 -1
  93. package/dist/cjs/{arcade-defaults-f77b7bae.js → arcade-defaults-990ceb0a.js} +51 -33
  94. package/dist/cjs/{arcade-mode-4b1d5adc.js → arcade-mode-6a101da0.js} +1 -1
  95. package/dist/cjs/arcgis-arcade-api_6.cjs.entry.js +40 -10
  96. package/dist/cjs/{cssMode-c21a8b34.js → cssMode-ef738198.js} +1 -1
  97. package/dist/cjs/{html-baddeebf.js → html-e97a8c1e.js} +1 -1
  98. package/dist/cjs/{htmlMode-3ca73779.js → htmlMode-0afb8251.js} +1 -1
  99. package/dist/cjs/index.cjs.js +1 -1
  100. package/dist/cjs/{javascript-4226e8d4.js → javascript-09fbcb7d.js} +2 -2
  101. package/dist/cjs/{jsonMode-4496d6b9.js → jsonMode-9a315af5.js} +1 -1
  102. package/dist/cjs/{tsMode-6fa6f2f6.js → tsMode-000c3471.js} +1 -1
  103. package/dist/cjs/{typescript-5b6bab68.js → typescript-a9f8ce6c.js} +1 -1
  104. package/dist/components/arcade-api.js +2 -1
  105. package/dist/components/arcade-defaults.js +3 -23
  106. package/dist/components/arcade-results.js +40 -10
  107. package/dist/components/arcade-suggestions.js +2 -1
  108. package/dist/components/arcade-variables.js +1 -1
  109. package/dist/components/arcgis-arcade-editor.js +1 -1
  110. package/dist/components/code-editor.js +1 -1
  111. package/dist/components/fields.js +125 -0
  112. package/dist/components/index2.js +282 -32
  113. package/dist/components/utilities.js +2 -334
  114. package/dist/esm/{arcade-defaults-24670a1d.js → arcade-defaults-a8808d6a.js} +52 -33
  115. package/dist/esm/{arcade-mode-dc10ed9f.js → arcade-mode-6c8aff99.js} +1 -1
  116. package/dist/esm/arcgis-arcade-api_6.entry.js +40 -10
  117. package/dist/esm/{cssMode-0ae84348.js → cssMode-e19675cf.js} +1 -1
  118. package/dist/esm/{html-c18864a6.js → html-0e2f7c2f.js} +1 -1
  119. package/dist/esm/{htmlMode-426699f2.js → htmlMode-a4dd6993.js} +1 -1
  120. package/dist/esm/index.js +1 -1
  121. package/dist/esm/{javascript-982f2d73.js → javascript-9d754452.js} +2 -2
  122. package/dist/esm/{jsonMode-170e0a0e.js → jsonMode-cfafe91a.js} +1 -1
  123. package/dist/esm/{tsMode-99d2e8e5.js → tsMode-612386a7.js} +1 -1
  124. package/dist/esm/{typescript-de4f8a27.js → typescript-a17e2ba3.js} +1 -1
  125. package/dist/types/utils/arcade-executor.d.ts +35 -3
  126. package/dist/types/utils/fields.d.ts +10 -0
  127. package/dist/types/utils/profile/types.d.ts +2 -2
  128. package/dist/types/utils/utilities.d.ts +0 -6
  129. package/package.json +8 -8
  130. package/dist/arcgis-coding-components/p-9a6baa15.entry.js +0 -1
@@ -805,29 +805,54 @@
805
805
  "id": "date_functions",
806
806
  "title": "Date functions",
807
807
  "items": [
808
+ {
809
+ "type": "function",
810
+ "name": "changetimezone",
811
+ "bundle": "core",
812
+ "sinceVersion": "1.24",
813
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#changetimezone",
814
+ "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`.",
815
+ "examples": "\n##### Examples\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",
816
+ "completion": {
817
+ "label": "ChangeTimeZone",
818
+ "detail": "ChangeTimeZone(dateValue, newTimeZone) -> Date",
819
+ "insertText": "ChangeTimeZone(${1:dateValue_}, ${2:newTimeZone_})$0",
820
+ "insertTextMode": 2,
821
+ "insertTextFormat": 2,
822
+ "kind": 3,
823
+ "documentation": {
824
+ "kind": "markdown",
825
+ "value": "**[Since version 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**Parameters**\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**Return value**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)"
826
+ }
827
+ },
828
+ "parametersInfo": {
829
+ "min": 2,
830
+ "max": 2
831
+ }
832
+ },
808
833
  [
809
834
  {
810
835
  "type": "function",
811
836
  "name": "date",
812
837
  "bundle": "core",
813
838
  "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#date1",
814
- "description": "Creates a Date object from a set of parameters. By default, dates are created in the local time of the client or system.",
815
- "examples": "\n##### Examples\n\nCreates a date representing the given time in the local time of the system 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 representing the current time in the local time of the system running Arcade\n\n```arcade\n// Date represents Jan 27, 2023, 12:41:20 PM PST\nDate()\n```\n\n",
839
+ "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.",
840
+ "examples": "\n##### Examples\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",
816
841
  "completion": {
817
842
  "label": "Date",
818
- "detail": "Date(year, month, day, hour?, minute?, second?, millisecond?) -> Date",
843
+ "detail": "Date(year, month, day, hour?, minute?, second?, millisecond?, timeZone?) -> Date",
819
844
  "insertText": "Date(${1:year_}, ${2:month_}, ${3:day_})$0",
820
845
  "insertTextMode": 2,
821
846
  "insertTextFormat": 2,
822
847
  "kind": 3,
823
848
  "documentation": {
824
849
  "kind": "markdown",
825
- "value": "Creates a Date object from a set of parameters. By default, dates are created in the local time of the client or system.\n\n**Parameters**\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\n**Return value**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)"
850
+ "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**Parameters**\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**Return value**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)"
826
851
  }
827
852
  },
828
853
  "parametersInfo": {
829
854
  "min": 3,
830
- "max": 7
855
+ "max": 8
831
856
  }
832
857
  },
833
858
  {
@@ -835,8 +860,8 @@
835
860
  "name": "date",
836
861
  "bundle": "core",
837
862
  "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#date2",
838
- "description": "Creates a date with the given Unix epoch number in the local time zone of the client or system.",
839
- "examples": "\n##### Example\n\nMilliseconds since January 1, 1970\n\n```arcade\nDate(1476987783555) // 'Thu Oct 20 2016 11:23:03 GMT-0700 (PDT)'\n```\n\n",
863
+ "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.",
864
+ "examples": "\n##### Examples\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",
840
865
  "completion": {
841
866
  "label": "Date",
842
867
  "detail": "Date(epoch?) -> Date",
@@ -846,7 +871,7 @@
846
871
  "kind": 3,
847
872
  "documentation": {
848
873
  "kind": "markdown",
849
- "value": "Creates a date with the given Unix epoch number in the local time zone of the client or system.\n\n**Parameter**\n\n- **epoch** (_Optional_): [Number](https://developers.arcgis.com/arcade/guide/types/#number) - The number of milliseconds since January 1, 1970 UTC.\n\n**Return value**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)"
874
+ "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**Parameter**\n\n- **epoch** (_Optional_): [Number](https://developers.arcgis.com/arcade/guide/types/#number) - The number of milliseconds since January 1, 1970 UTC.\n\n**Return value**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)"
850
875
  }
851
876
  },
852
877
  "parametersInfo": {
@@ -859,8 +884,8 @@
859
884
  "name": "date",
860
885
  "bundle": "core",
861
886
  "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#date3",
862
- "description": "Converts an ISO 8601 text value to a Date object in the local time zone of the client or system.",
863
- "examples": "\n##### Example\n\nISO 8601 text value\n\n```arcade\nDate('2016-10-20T17:41:37+00:00') // 'Thu Oct 20 2016 10:41:37 GMT-0700 (PDT)'\n```\n\n",
887
+ "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.",
888
+ "examples": "\n##### Examples\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",
864
889
  "completion": {
865
890
  "label": "Date",
866
891
  "detail": "Date(timestamp?) -> Date",
@@ -870,70 +895,376 @@
870
895
  "kind": 3,
871
896
  "documentation": {
872
897
  "kind": "markdown",
873
- "value": "Converts an ISO 8601 text value to a Date object in the local time zone of the client or system.\n\n**Parameter**\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**Return value**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)"
898
+ "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**Parameter**\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**Return value**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)"
874
899
  }
875
900
  },
876
901
  "parametersInfo": {
877
902
  "min": 0,
878
903
  "max": 1
879
904
  }
905
+ },
906
+ {
907
+ "type": "function",
908
+ "name": "date",
909
+ "bundle": "core",
910
+ "sinceVersion": "1.24",
911
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#date4",
912
+ "description": "Creates a Date from a DateOnly value, with an optional Time and time zone value.",
913
+ "examples": "\n##### Example\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",
914
+ "completion": {
915
+ "label": "Date",
916
+ "detail": "Date(dateOnlyValue, timeValue?, timeZone?) -> Date",
917
+ "insertText": "Date(${1:dateOnlyValue_})$0",
918
+ "insertTextMode": 2,
919
+ "insertTextFormat": 2,
920
+ "kind": 3,
921
+ "documentation": {
922
+ "kind": "markdown",
923
+ "value": "**[Since version 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**Parameters**\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**Return value**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)"
924
+ }
925
+ },
926
+ "parametersInfo": {
927
+ "min": 1,
928
+ "max": 3
929
+ }
930
+ },
931
+ {
932
+ "type": "function",
933
+ "name": "date",
934
+ "bundle": "core",
935
+ "sinceVersion": "1.24",
936
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#date5",
937
+ "description": "Creates a copy of the given Date.",
938
+ "examples": "\n##### Example\n\nCreates a copy of the current Date value\n\n```arcade\nvar copiedDate = Date(Now())\n```\n\n",
939
+ "completion": {
940
+ "label": "Date",
941
+ "detail": "Date(dateValue) -> Date",
942
+ "insertText": "Date(${1:dateValue_})$0",
943
+ "insertTextMode": 2,
944
+ "insertTextFormat": 2,
945
+ "kind": 3,
946
+ "documentation": {
947
+ "kind": "markdown",
948
+ "value": "**[Since version 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nCreates a copy of the given Date.\n\n**Parameter**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - The Date to copy.\n\n**Return value**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)"
949
+ }
950
+ },
951
+ "parametersInfo": {
952
+ "min": 1,
953
+ "max": 1
954
+ }
880
955
  }
881
956
  ],
882
- {
883
- "type": "function",
884
- "name": "dateadd",
885
- "bundle": "core",
886
- "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#dateadd",
887
- "description": "Adds a specified amount of time in the given units to a date and returns a new date.",
888
- "examples": "\n##### Example\n\nAdds 7 days to the date in the provided field\n\n```arcade\nvar startDate = Date($feature.dateField);\nvar oneWeekLater = DateAdd(startDate, 7, 'days');\nreturn oneWeekLater;\n```\n\n",
889
- "completion": {
890
- "label": "DateAdd",
891
- "detail": "DateAdd(dateValue, addValue, units?) -> Date",
892
- "insertText": "DateAdd(${1:dateValue_}, ${2:addValue_})$0",
893
- "insertTextMode": 2,
894
- "insertTextFormat": 2,
895
- "kind": 3,
896
- "documentation": {
897
- "kind": "markdown",
898
- "value": "Adds a specified amount of time in the given units to a date and returns a new date.\n\n**Parameters**\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**Return value**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)"
957
+ [
958
+ {
959
+ "type": "function",
960
+ "name": "dateadd",
961
+ "bundle": "core",
962
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#dateadd1",
963
+ "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.",
964
+ "examples": "\n##### Example\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",
965
+ "completion": {
966
+ "label": "DateAdd",
967
+ "detail": "DateAdd(dateValue, addValue, units?) -> Date",
968
+ "insertText": "DateAdd(${1:dateValue_}, ${2:addValue_})$0",
969
+ "insertTextMode": 2,
970
+ "insertTextFormat": 2,
971
+ "kind": 3,
972
+ "documentation": {
973
+ "kind": "markdown",
974
+ "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**Parameters**\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**Return value**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)"
975
+ }
976
+ },
977
+ "parametersInfo": {
978
+ "min": 2,
979
+ "max": 3
899
980
  }
900
981
  },
901
- "parametersInfo": {
902
- "min": 2,
903
- "max": 3
982
+ {
983
+ "type": "function",
984
+ "name": "dateadd",
985
+ "bundle": "core",
986
+ "sinceVersion": "1.24",
987
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#dateadd2",
988
+ "description": "Adds a specified amount of time in the given units to a DateOnly value and returns a new DateOnly value.",
989
+ "examples": "\n##### Examples\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",
990
+ "completion": {
991
+ "label": "DateAdd",
992
+ "detail": "DateAdd(dateOnlyValue, addValue, units?) -> DateOnly",
993
+ "insertText": "DateAdd(${1:dateOnlyValue_}, ${2:addValue_})$0",
994
+ "insertTextMode": 2,
995
+ "insertTextFormat": 2,
996
+ "kind": 3,
997
+ "documentation": {
998
+ "kind": "markdown",
999
+ "value": "**[Since version 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**Parameters**\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**Return value**: DateOnly"
1000
+ }
1001
+ },
1002
+ "parametersInfo": {
1003
+ "min": 2,
1004
+ "max": 3
1005
+ }
1006
+ },
1007
+ {
1008
+ "type": "function",
1009
+ "name": "dateadd",
1010
+ "bundle": "core",
1011
+ "sinceVersion": "1.24",
1012
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#dateadd3",
1013
+ "description": "Adds a specified amount of time in the given units to a Time value and returns a new Time value.",
1014
+ "examples": "\n##### Examples\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",
1015
+ "completion": {
1016
+ "label": "DateAdd",
1017
+ "detail": "DateAdd(timeValue, addValue, units?) -> Time",
1018
+ "insertText": "DateAdd(${1:timeValue_}, ${2:addValue_})$0",
1019
+ "insertTextMode": 2,
1020
+ "insertTextFormat": 2,
1021
+ "kind": 3,
1022
+ "documentation": {
1023
+ "kind": "markdown",
1024
+ "value": "**[Since version 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**Parameters**\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**Return value**: Time"
1025
+ }
1026
+ },
1027
+ "parametersInfo": {
1028
+ "min": 2,
1029
+ "max": 3
1030
+ }
904
1031
  }
905
- },
906
- {
907
- "type": "function",
908
- "name": "datediff",
909
- "bundle": "core",
910
- "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#datediff",
911
- "description": "Subtracts two dates, and returns the difference in the specified units.",
912
- "examples": "\n##### Example\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\n",
913
- "completion": {
914
- "label": "DateDiff",
915
- "detail": "DateDiff(date1, date2, units?) -> Number",
916
- "insertText": "DateDiff(${1:date1_}, ${2:date2_})$0",
917
- "insertTextMode": 2,
918
- "insertTextFormat": 2,
919
- "kind": 3,
920
- "documentation": {
921
- "kind": "markdown",
922
- "value": "Subtracts two dates, and returns the difference in the specified units.\n\n**Parameters**\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\n**Return value**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
1032
+ ],
1033
+ [
1034
+ {
1035
+ "type": "function",
1036
+ "name": "datediff",
1037
+ "bundle": "core",
1038
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#datediff1",
1039
+ "description": "Subtracts two Dates, and returns the difference in the specified units.",
1040
+ "examples": "\n##### Examples\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",
1041
+ "completion": {
1042
+ "label": "DateDiff",
1043
+ "detail": "DateDiff(date1, date2, units?, timeZone?) -> Number",
1044
+ "insertText": "DateDiff(${1:date1_}, ${2:date2_})$0",
1045
+ "insertTextMode": 2,
1046
+ "insertTextFormat": 2,
1047
+ "kind": 3,
1048
+ "documentation": {
1049
+ "kind": "markdown",
1050
+ "value": "Subtracts two Dates, and returns the difference in the specified units.\n\n**Parameters**\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**Return value**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
1051
+ }
1052
+ },
1053
+ "parametersInfo": {
1054
+ "min": 2,
1055
+ "max": 4
923
1056
  }
924
1057
  },
925
- "parametersInfo": {
926
- "min": 2,
927
- "max": 3
1058
+ {
1059
+ "type": "function",
1060
+ "name": "datediff",
1061
+ "bundle": "core",
1062
+ "sinceVersion": "1.24",
1063
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#datediff2",
1064
+ "description": "Subtracts two DateOnly values, and returns the difference in the specified units.",
1065
+ "examples": "\n##### Example\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",
1066
+ "completion": {
1067
+ "label": "DateDiff",
1068
+ "detail": "DateDiff(dateOnly1, dateOnly2, units?) -> Number",
1069
+ "insertText": "DateDiff(${1:dateOnly1_}, ${2:dateOnly2_})$0",
1070
+ "insertTextMode": 2,
1071
+ "insertTextFormat": 2,
1072
+ "kind": 3,
1073
+ "documentation": {
1074
+ "kind": "markdown",
1075
+ "value": "**[Since version 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**Parameters**\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**Return value**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
1076
+ }
1077
+ },
1078
+ "parametersInfo": {
1079
+ "min": 2,
1080
+ "max": 3
1081
+ }
1082
+ },
1083
+ {
1084
+ "type": "function",
1085
+ "name": "datediff",
1086
+ "bundle": "core",
1087
+ "sinceVersion": "1.24",
1088
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#datediff3",
1089
+ "description": "Subtracts two Time values, and returns the difference in the specified units.",
1090
+ "examples": "\n##### Example\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",
1091
+ "completion": {
1092
+ "label": "DateDiff",
1093
+ "detail": "DateDiff(time1, time2, units?) -> Number",
1094
+ "insertText": "DateDiff(${1:time1_}, ${2:time2_})$0",
1095
+ "insertTextMode": 2,
1096
+ "insertTextFormat": 2,
1097
+ "kind": 3,
1098
+ "documentation": {
1099
+ "kind": "markdown",
1100
+ "value": "**[Since version 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**Parameters**\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**Return value**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
1101
+ }
1102
+ },
1103
+ "parametersInfo": {
1104
+ "min": 2,
1105
+ "max": 3
1106
+ }
928
1107
  }
929
- },
1108
+ ],
1109
+ [
1110
+ {
1111
+ "type": "function",
1112
+ "name": "dateonly",
1113
+ "bundle": "core",
1114
+ "sinceVersion": "1.24",
1115
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#dateonly1",
1116
+ "description": "Creates a DateOnly value based on the current date in the time zone of the profile's execution context.",
1117
+ "examples": "\n##### Example\n\nReturns the current DateOnly (no time)\n\n```arcade\nDateOnly()\n// returns the current date, i.e. 2023-09-12\n```\n\n",
1118
+ "completion": {
1119
+ "label": "DateOnly",
1120
+ "detail": "DateOnly() -> DateOnly",
1121
+ "insertText": "DateOnly($0)",
1122
+ "insertTextMode": 2,
1123
+ "insertTextFormat": 2,
1124
+ "kind": 3,
1125
+ "documentation": {
1126
+ "kind": "markdown",
1127
+ "value": "**[Since version 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**Return value**: DateOnly"
1128
+ }
1129
+ },
1130
+ "parametersInfo": {
1131
+ "min": 0,
1132
+ "max": 0
1133
+ }
1134
+ },
1135
+ {
1136
+ "type": "function",
1137
+ "name": "dateonly",
1138
+ "bundle": "core",
1139
+ "sinceVersion": "1.24",
1140
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#dateonly2",
1141
+ "description": "Creates a DateOnly value from a given date.",
1142
+ "examples": "\n##### Example\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",
1143
+ "completion": {
1144
+ "label": "DateOnly",
1145
+ "detail": "DateOnly(dateValue) -> DateOnly",
1146
+ "insertText": "DateOnly(${1:dateValue_})$0",
1147
+ "insertTextMode": 2,
1148
+ "insertTextFormat": 2,
1149
+ "kind": 3,
1150
+ "documentation": {
1151
+ "kind": "markdown",
1152
+ "value": "**[Since version 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nCreates a DateOnly value from a given date.\n\n**Parameter**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - The date from which to create the DateOnly value.\n\n**Return value**: DateOnly"
1153
+ }
1154
+ },
1155
+ "parametersInfo": {
1156
+ "min": 1,
1157
+ "max": 1
1158
+ }
1159
+ },
1160
+ {
1161
+ "type": "function",
1162
+ "name": "dateonly",
1163
+ "bundle": "core",
1164
+ "sinceVersion": "1.24",
1165
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#dateonly3",
1166
+ "description": "Creates a DateOnly date with the given Unix epoch number.",
1167
+ "examples": "\n##### Example\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",
1168
+ "completion": {
1169
+ "label": "DateOnly",
1170
+ "detail": "DateOnly(epoch) -> DateOnly",
1171
+ "insertText": "DateOnly(${1:epoch_})$0",
1172
+ "insertTextMode": 2,
1173
+ "insertTextFormat": 2,
1174
+ "kind": 3,
1175
+ "documentation": {
1176
+ "kind": "markdown",
1177
+ "value": "**[Since version 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nCreates a DateOnly date with the given Unix epoch number.\n\n**Parameter**\n\n- **epoch**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - The number of milliseconds since January 1, 1970 UTC.\n\n**Return value**: DateOnly"
1178
+ }
1179
+ },
1180
+ "parametersInfo": {
1181
+ "min": 1,
1182
+ "max": 1
1183
+ }
1184
+ },
1185
+ {
1186
+ "type": "function",
1187
+ "name": "dateonly",
1188
+ "bundle": "core",
1189
+ "sinceVersion": "1.24",
1190
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#dateonly4",
1191
+ "description": "Creates a DateOnly value from inputs representing the year, month, and day.",
1192
+ "examples": "\n##### Example\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",
1193
+ "completion": {
1194
+ "label": "DateOnly",
1195
+ "detail": "DateOnly(year, month, day) -> DateOnly",
1196
+ "insertText": "DateOnly(${1:year_}, ${2:month_}, ${3:day_})$0",
1197
+ "insertTextMode": 2,
1198
+ "insertTextFormat": 2,
1199
+ "kind": 3,
1200
+ "documentation": {
1201
+ "kind": "markdown",
1202
+ "value": "**[Since version 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**Parameters**\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**Return value**: DateOnly"
1203
+ }
1204
+ },
1205
+ "parametersInfo": {
1206
+ "min": 3,
1207
+ "max": 3
1208
+ }
1209
+ },
1210
+ {
1211
+ "type": "function",
1212
+ "name": "dateonly",
1213
+ "bundle": "core",
1214
+ "sinceVersion": "1.24",
1215
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#dateonly5",
1216
+ "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.",
1217
+ "examples": "\n##### Examples\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",
1218
+ "completion": {
1219
+ "label": "DateOnly",
1220
+ "detail": "DateOnly(dateValue, format?) -> DateOnly",
1221
+ "insertText": "DateOnly(${1:dateValue_})$0",
1222
+ "insertTextMode": 2,
1223
+ "insertTextFormat": 2,
1224
+ "kind": 3,
1225
+ "documentation": {
1226
+ "kind": "markdown",
1227
+ "value": "**[Since version 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**Parameters**\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**Return value**: DateOnly"
1228
+ }
1229
+ },
1230
+ "parametersInfo": {
1231
+ "min": 1,
1232
+ "max": 2
1233
+ }
1234
+ },
1235
+ {
1236
+ "type": "function",
1237
+ "name": "dateonly",
1238
+ "bundle": "core",
1239
+ "sinceVersion": "1.24",
1240
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#dateonly6",
1241
+ "description": "Creates a copy of a DateOnly value.",
1242
+ "examples": "\n##### Example\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",
1243
+ "completion": {
1244
+ "label": "DateOnly",
1245
+ "detail": "DateOnly(dateOnlyValue) -> DateOnly",
1246
+ "insertText": "DateOnly(${1:dateOnlyValue_})$0",
1247
+ "insertTextMode": 2,
1248
+ "insertTextFormat": 2,
1249
+ "kind": 3,
1250
+ "documentation": {
1251
+ "kind": "markdown",
1252
+ "value": "**[Since version 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nCreates a copy of a DateOnly value.\n\n**Parameter**\n\n- **dateOnlyValue**: DateOnly - The DateOnly value to copy.\n\n**Return value**: DateOnly"
1253
+ }
1254
+ },
1255
+ "parametersInfo": {
1256
+ "min": 1,
1257
+ "max": 1
1258
+ }
1259
+ }
1260
+ ],
930
1261
  {
931
1262
  "type": "function",
932
1263
  "name": "day",
933
1264
  "bundle": "core",
934
1265
  "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#day",
935
1266
  "description": "Returns the day of the month of the given date.",
936
- "examples": "\n##### Example\n\nGets the day of the month of the current date\n\n```arcade\nDay(Now())\n```\n\n",
1267
+ "examples": "\n##### Examples\n\nGets the day of the month of the current date\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",
937
1268
  "completion": {
938
1269
  "label": "Day",
939
1270
  "detail": "Day(dateValue) -> Number",
@@ -943,7 +1274,7 @@
943
1274
  "kind": 3,
944
1275
  "documentation": {
945
1276
  "kind": "markdown",
946
- "value": "Returns the day of the month of the given date.\n\n**Parameter**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - A date value from which to get the day of the month.\n\n**Return value**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
1277
+ "value": "Returns the day of the month of the given date.\n\n**Parameter**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) \\| DateOnly - A Date value from which to get the day of the month. DateOnly values are supported starting at version 1.24.\n\n**Return value**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
947
1278
  }
948
1279
  },
949
1280
  "parametersInfo": {
@@ -951,30 +1282,57 @@
951
1282
  "max": 1
952
1283
  }
953
1284
  },
954
- {
955
- "type": "function",
956
- "name": "hour",
957
- "bundle": "core",
958
- "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#hour",
959
- "description": "Returns the hour of the time in the given date (0-23).",
960
- "examples": "\n##### Example\n\nGets the hour of the current time\n\n```arcade\nHour(Now())\n```\n\n",
961
- "completion": {
962
- "label": "Hour",
963
- "detail": "Hour(dateValue) -> Number",
964
- "insertText": "Hour(${1:dateValue_})$0",
965
- "insertTextMode": 2,
966
- "insertTextFormat": 2,
967
- "kind": 3,
968
- "documentation": {
969
- "kind": "markdown",
970
- "value": "Returns the hour of the time in the given date (0-23).\n\n**Parameter**\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**Return value**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
1285
+ [
1286
+ {
1287
+ "type": "function",
1288
+ "name": "hour",
1289
+ "bundle": "core",
1290
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#hour1",
1291
+ "description": "Returns the hour of the time in the given date (0-23).",
1292
+ "examples": "\n##### Example\n\nGets the hour of the current time\n\n```arcade\nHour(Now())\n```\n\n",
1293
+ "completion": {
1294
+ "label": "Hour",
1295
+ "detail": "Hour(dateValue) -> Number",
1296
+ "insertText": "Hour(${1:dateValue_})$0",
1297
+ "insertTextMode": 2,
1298
+ "insertTextFormat": 2,
1299
+ "kind": 3,
1300
+ "documentation": {
1301
+ "kind": "markdown",
1302
+ "value": "Returns the hour of the time in the given date (0-23).\n\n**Parameter**\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**Return value**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
1303
+ }
1304
+ },
1305
+ "parametersInfo": {
1306
+ "min": 1,
1307
+ "max": 1
971
1308
  }
972
1309
  },
973
- "parametersInfo": {
974
- "min": 1,
975
- "max": 1
1310
+ {
1311
+ "type": "function",
1312
+ "name": "hour",
1313
+ "bundle": "core",
1314
+ "sinceVersion": "1.24",
1315
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#hour2",
1316
+ "description": "Returns the hour of the given time (0-23).",
1317
+ "examples": "\n##### Example\n\nGets the hour of the time\n\n```arcade\nHour(Time(2, 59, 23))\n// returns 2\n```\n\n",
1318
+ "completion": {
1319
+ "label": "Hour",
1320
+ "detail": "Hour(timeValue) -> Number",
1321
+ "insertText": "Hour(${1:timeValue_})$0",
1322
+ "insertTextMode": 2,
1323
+ "insertTextFormat": 2,
1324
+ "kind": 3,
1325
+ "documentation": {
1326
+ "kind": "markdown",
1327
+ "value": "**[Since version 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nReturns the hour of the given time (0-23).\n\n**Parameter**\n\n- **timeValue**: Time - A Time value from which to get the hour.\n\n**Return value**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
1328
+ }
1329
+ },
1330
+ "parametersInfo": {
1331
+ "min": 1,
1332
+ "max": 1
1333
+ }
976
1334
  }
977
- },
1335
+ ],
978
1336
  {
979
1337
  "type": "function",
980
1338
  "name": "isomonth",
@@ -982,7 +1340,7 @@
982
1340
  "sinceVersion": "1.12",
983
1341
  "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#isomonth",
984
1342
  "description": "Returns the month of the given date, based on the ISO 8601 standard. Values range from 1-12 where January is `1` and December is `12`.",
985
- "examples": "\n##### Example\n\nGets the month of the given date, based on the ISO 8601 standard. Returns `12`, for the month of December.\n\n```arcade\nISOMonth(Date(1980, 11, 31))\n```\n\n",
1343
+ "examples": "\n##### Examples\n\nGets the month of the given date, based on the ISO 8601 standard. Returns `12`, for the month of December.\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",
986
1344
  "completion": {
987
1345
  "label": "ISOMonth",
988
1346
  "detail": "ISOMonth(dateValue) -> Number",
@@ -992,7 +1350,7 @@
992
1350
  "kind": 3,
993
1351
  "documentation": {
994
1352
  "kind": "markdown",
995
- "value": "**[Since version 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nReturns the month of the given date, based on the ISO 8601 standard. Values range from 1-12 where January is `1` and December is `12`.\n\n**Parameter**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - A date value from which to get the month.\n\n**Return value**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
1353
+ "value": "**[Since version 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nReturns the month of the given date, based on the ISO 8601 standard. Values range from 1-12 where January is `1` and December is `12`.\n\n**Parameter**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) \\| DateOnly - A Date value from which to get the month. DateOnly values are supported starting at version 1.24.\n\n**Return value**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
996
1354
  }
997
1355
  },
998
1356
  "parametersInfo": {
@@ -1007,7 +1365,7 @@
1007
1365
  "sinceVersion": "1.12",
1008
1366
  "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#isoweek",
1009
1367
  "description": "Returns the week in the year of the given date, based on the ISO 8601 week date calendar. Values range from 1-53 where the first week of the year is `1` and the last week of the year is `52` or `53`, depending on the year.",
1010
- "examples": "\n##### Example\n\nGets the week of the given date, based on the ISO 8601 standard. Returns `1`, since this date is included in the first week of the following year.\n\n```arcade\nISOWeek(Date(1980, 11, 31))\n```\n\n",
1368
+ "examples": "\n##### Examples\n\nGets the week of the given date, based on the ISO 8601 standard. Returns `1`, since this date is included in the first week of the following year.\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",
1011
1369
  "completion": {
1012
1370
  "label": "ISOWeek",
1013
1371
  "detail": "ISOWeek(dateValue) -> Number",
@@ -1017,7 +1375,7 @@
1017
1375
  "kind": 3,
1018
1376
  "documentation": {
1019
1377
  "kind": "markdown",
1020
- "value": "**[Since version 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nReturns the week in the year of the given date, based on the ISO 8601 week date calendar. Values range from 1-53 where the first week of the year is `1` and the last week of the year is `52` or `53`, depending on the year.\n\n**Parameter**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - A date value from which to get the week.\n\n**Return value**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
1378
+ "value": "**[Since version 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nReturns the week in the year of the given date, based on the ISO 8601 week date calendar. Values range from 1-53 where the first week of the year is `1` and the last week of the year is `52` or `53`, depending on the year.\n\n**Parameter**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) \\| DateOnly - A Date value from which to get the week. DateOnly values are supported starting at version 1.24.\n\n**Return value**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
1021
1379
  }
1022
1380
  },
1023
1381
  "parametersInfo": {
@@ -1032,66 +1390,17 @@
1032
1390
  "sinceVersion": "1.12",
1033
1391
  "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#isoweekday",
1034
1392
  "description": "Returns the day of the week of the given date, based on the ISO 8601 standard. Values range from 1-7 where Monday is `1` and Sunday is `7`.",
1035
- "examples": "\n##### Example\n\nReturns the day of the week of the given date, based on the ISO 8601 standard. Returns `3`, for Wednesday.\n\n```arcade\nISOWeekday(Date(1980, 11, 31))\n```\n\n",
1393
+ "examples": "\n##### Examples\n\nReturns the day of the week of the given date, based on the ISO 8601 standard. Returns `3`, for Wednesday.\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",
1036
1394
  "completion": {
1037
1395
  "label": "ISOWeekday",
1038
1396
  "detail": "ISOWeekday(dateValue) -> Number",
1039
- "insertText": "ISOWeekday(${1:dateValue_})$0",
1040
- "insertTextMode": 2,
1041
- "insertTextFormat": 2,
1042
- "kind": 3,
1043
- "documentation": {
1044
- "kind": "markdown",
1045
- "value": "**[Since version 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nReturns the day of the week of the given date, based on the ISO 8601 standard. Values range from 1-7 where Monday is `1` and Sunday is `7`.\n\n**Parameter**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - A date value from which to return the day of the week.\n\n**Return value**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
1046
- }
1047
- },
1048
- "parametersInfo": {
1049
- "min": 1,
1050
- "max": 1
1051
- }
1052
- },
1053
- {
1054
- "type": "function",
1055
- "name": "isoyear",
1056
- "bundle": "core",
1057
- "sinceVersion": "1.12",
1058
- "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#isoyear",
1059
- "description": "Returns the year of the given date based on the ISO 8601 week date calendar.",
1060
- "examples": "\n##### Example\n\nGets the year of the given date, based on the ISO 8601 week date calendar. Returns `1981`, since this date is included in the first week of the following year.\n\n```arcade\nISOYear(Date(1980, 11, 31))\n```\n\n",
1061
- "completion": {
1062
- "label": "ISOYear",
1063
- "detail": "ISOYear(dateValue) -> Number",
1064
- "insertText": "ISOYear(${1:dateValue_})$0",
1065
- "insertTextMode": 2,
1066
- "insertTextFormat": 2,
1067
- "kind": 3,
1068
- "documentation": {
1069
- "kind": "markdown",
1070
- "value": "**[Since version 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nReturns the year of the given date based on the ISO 8601 week date calendar.\n\n**Parameter**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - A date value from which to get the year.\n\n**Return value**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
1071
- }
1072
- },
1073
- "parametersInfo": {
1074
- "min": 1,
1075
- "max": 1
1076
- }
1077
- },
1078
- {
1079
- "type": "function",
1080
- "name": "millisecond",
1081
- "bundle": "core",
1082
- "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#millisecond",
1083
- "description": "Returns the millisecond of the time in the date.",
1084
- "examples": "\n##### Example\n\nGets the millisecond of the current time\n\n```arcade\nMillisecond(Now())\n```\n\n",
1085
- "completion": {
1086
- "label": "Millisecond",
1087
- "detail": "Millisecond(dateValue) -> Number",
1088
- "insertText": "Millisecond(${1:dateValue_})$0",
1397
+ "insertText": "ISOWeekday(${1:dateValue_})$0",
1089
1398
  "insertTextMode": 2,
1090
1399
  "insertTextFormat": 2,
1091
1400
  "kind": 3,
1092
1401
  "documentation": {
1093
1402
  "kind": "markdown",
1094
- "value": "Returns the millisecond of the time in the date.\n\n**Parameter**\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**Return value**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
1403
+ "value": "**[Since version 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nReturns the day of the week of the given date, based on the ISO 8601 standard. Values range from 1-7 where Monday is `1` and Sunday is `7`.\n\n**Parameter**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) \\| DateOnly - A Date value from which to return the day of the week. DateOnly values are supported starting at version 1.24.\n\n**Return value**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
1095
1404
  }
1096
1405
  },
1097
1406
  "parametersInfo": {
@@ -1101,21 +1410,22 @@
1101
1410
  },
1102
1411
  {
1103
1412
  "type": "function",
1104
- "name": "minute",
1413
+ "name": "isoyear",
1105
1414
  "bundle": "core",
1106
- "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#minute",
1107
- "description": "Returns the minute of the time in the given date.",
1108
- "examples": "\n##### Example\n\nGets the minute of the current time\n\n```arcade\nMinute(Now())\n```\n\n",
1415
+ "sinceVersion": "1.12",
1416
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#isoyear",
1417
+ "description": "Returns the year of the given date based on the ISO 8601 week date calendar.",
1418
+ "examples": "\n##### Examples\n\nGets the year of the given date, based on the ISO 8601 week date calendar. Returns `1981`, since this date is included in the first week of the following year.\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",
1109
1419
  "completion": {
1110
- "label": "Minute",
1111
- "detail": "Minute(dateValue) -> Number",
1112
- "insertText": "Minute(${1:dateValue_})$0",
1420
+ "label": "ISOYear",
1421
+ "detail": "ISOYear(dateValue) -> Number",
1422
+ "insertText": "ISOYear(${1:dateValue_})$0",
1113
1423
  "insertTextMode": 2,
1114
1424
  "insertTextFormat": 2,
1115
1425
  "kind": 3,
1116
1426
  "documentation": {
1117
1427
  "kind": "markdown",
1118
- "value": "Returns the minute of the time in the given date.\n\n**Parameter**\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**Return value**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
1428
+ "value": "**[Since version 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nReturns the year of the given date based on the ISO 8601 week date calendar.\n\n**Parameter**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) \\| DateOnly - A Date value from which to get the year. DateOnly values are supported starting at version 1.24.\n\n**Return value**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
1119
1429
  }
1120
1430
  },
1121
1431
  "parametersInfo": {
@@ -1123,13 +1433,115 @@
1123
1433
  "max": 1
1124
1434
  }
1125
1435
  },
1436
+ [
1437
+ {
1438
+ "type": "function",
1439
+ "name": "millisecond",
1440
+ "bundle": "core",
1441
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#millisecond1",
1442
+ "description": "Returns the millisecond of the time in the date.",
1443
+ "examples": "\n##### Example\n\nGets the millisecond of the current time\n\n```arcade\nMillisecond(Now())\n```\n\n",
1444
+ "completion": {
1445
+ "label": "Millisecond",
1446
+ "detail": "Millisecond(dateValue) -> Number",
1447
+ "insertText": "Millisecond(${1:dateValue_})$0",
1448
+ "insertTextMode": 2,
1449
+ "insertTextFormat": 2,
1450
+ "kind": 3,
1451
+ "documentation": {
1452
+ "kind": "markdown",
1453
+ "value": "Returns the millisecond of the time in the date.\n\n**Parameter**\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**Return value**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
1454
+ }
1455
+ },
1456
+ "parametersInfo": {
1457
+ "min": 1,
1458
+ "max": 1
1459
+ }
1460
+ },
1461
+ {
1462
+ "type": "function",
1463
+ "name": "millisecond",
1464
+ "bundle": "core",
1465
+ "sinceVersion": "1.24",
1466
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#millisecond2",
1467
+ "description": "Returns the millisecond of the given time.",
1468
+ "examples": "\n##### Example\n\nGets the millisecond of the time\n\n```arcade\nHour(Time(2, 59, 23, 450))\n// returns 450\n```\n\n",
1469
+ "completion": {
1470
+ "label": "Millisecond",
1471
+ "detail": "Millisecond(timeValue) -> Number",
1472
+ "insertText": "Millisecond(${1:timeValue_})$0",
1473
+ "insertTextMode": 2,
1474
+ "insertTextFormat": 2,
1475
+ "kind": 3,
1476
+ "documentation": {
1477
+ "kind": "markdown",
1478
+ "value": "**[Since version 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nReturns the millisecond of the given time.\n\n**Parameter**\n\n- **timeValue**: Time - A Time value from which to get the millisecond.\n\n**Return value**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
1479
+ }
1480
+ },
1481
+ "parametersInfo": {
1482
+ "min": 1,
1483
+ "max": 1
1484
+ }
1485
+ }
1486
+ ],
1487
+ [
1488
+ {
1489
+ "type": "function",
1490
+ "name": "minute",
1491
+ "bundle": "core",
1492
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#minute1",
1493
+ "description": "Returns the minute of the time in the given date.",
1494
+ "examples": "\n##### Example\n\nGets the minute of the current time\n\n```arcade\nMinute(Now())\n```\n\n",
1495
+ "completion": {
1496
+ "label": "Minute",
1497
+ "detail": "Minute(dateValue) -> Number",
1498
+ "insertText": "Minute(${1:dateValue_})$0",
1499
+ "insertTextMode": 2,
1500
+ "insertTextFormat": 2,
1501
+ "kind": 3,
1502
+ "documentation": {
1503
+ "kind": "markdown",
1504
+ "value": "Returns the minute of the time in the given date.\n\n**Parameter**\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**Return value**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
1505
+ }
1506
+ },
1507
+ "parametersInfo": {
1508
+ "min": 1,
1509
+ "max": 1
1510
+ }
1511
+ },
1512
+ {
1513
+ "type": "function",
1514
+ "name": "minute",
1515
+ "bundle": "core",
1516
+ "sinceVersion": "1.24",
1517
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#minute2",
1518
+ "description": "Returns the minute of the given time.",
1519
+ "examples": "\n##### Example\n\nGets the minute of the time\n\n```arcade\nHour(Time(2, 59, 23))\n// returns 59\n```\n\n",
1520
+ "completion": {
1521
+ "label": "Minute",
1522
+ "detail": "Minute(timeValue) -> Number",
1523
+ "insertText": "Minute(${1:timeValue_})$0",
1524
+ "insertTextMode": 2,
1525
+ "insertTextFormat": 2,
1526
+ "kind": 3,
1527
+ "documentation": {
1528
+ "kind": "markdown",
1529
+ "value": "**[Since version 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nReturns the minute of the given time.\n\n**Parameter**\n\n- **timeValue**: Time - A Time value from which to get the minute.\n\n**Return value**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
1530
+ }
1531
+ },
1532
+ "parametersInfo": {
1533
+ "min": 1,
1534
+ "max": 1
1535
+ }
1536
+ }
1537
+ ],
1126
1538
  {
1127
1539
  "type": "function",
1128
1540
  "name": "month",
1129
1541
  "bundle": "core",
1130
1542
  "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#month",
1131
1543
  "description": "Returns the month of the given date. Values range from 0-11 where January is `0` and December is `11`.",
1132
- "examples": "\n##### Example\n\nGets the month of the given Date. Returns 11, for the month of December.\n\n```arcade\nMonth(Date(1980, 11, 31))\n```\n\n",
1544
+ "examples": "\n##### Examples\n\nGets the month of the given Date. Value can be between 0-11, where `0` represents January and `11` represents December.\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",
1133
1545
  "completion": {
1134
1546
  "label": "Month",
1135
1547
  "detail": "Month(dateValue) -> Number",
@@ -1139,7 +1551,7 @@
1139
1551
  "kind": 3,
1140
1552
  "documentation": {
1141
1553
  "kind": "markdown",
1142
- "value": "Returns the month of the given date. Values range from 0-11 where January is `0` and December is `11`.\n\n**Parameter**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - A date value from which to get the month.\n\n**Return value**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
1554
+ "value": "Returns the month of the given date. Values range from 0-11 where January is `0` and December is `11`.\n\n**Parameter**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) \\| DateOnly - A Date value from which to get the month. DateOnly values are supported starting at version 1.24.\n\n**Return value**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
1143
1555
  }
1144
1556
  },
1145
1557
  "parametersInfo": {
@@ -1152,8 +1564,8 @@
1152
1564
  "name": "now",
1153
1565
  "bundle": "core",
1154
1566
  "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#now",
1155
- "description": "Creates a date value in the local or system time of the client.",
1156
- "examples": "\n##### Example\n\nReturns the current date and time\n\n```arcade\n// Date represents Jan 27, 2023, 12:41:20 PM PST\nNow()\n```\n\n",
1567
+ "description": "Creates a Date value representing the current date and time in the time zone of the profile's execution context.",
1568
+ "examples": "\n##### Example\n\nReturns the current date and time in the profile's default time zone\n\n```arcade\n// Date represents Jan 27, 2023, 12:41:20 PM PST\nNow()\n```\n\n",
1157
1569
  "completion": {
1158
1570
  "label": "Now",
1159
1571
  "detail": "Now() -> Date",
@@ -1163,7 +1575,210 @@
1163
1575
  "kind": 3,
1164
1576
  "documentation": {
1165
1577
  "kind": "markdown",
1166
- "value": "Creates a date value in the local or system time of the client.\n\n**Return value**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)"
1578
+ "value": "Creates a Date value representing the current date and time in the time zone of the profile's execution context.\n\n**Return value**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)"
1579
+ }
1580
+ },
1581
+ "parametersInfo": {
1582
+ "min": 0,
1583
+ "max": 0
1584
+ }
1585
+ },
1586
+ [
1587
+ {
1588
+ "type": "function",
1589
+ "name": "second",
1590
+ "bundle": "core",
1591
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#second1",
1592
+ "description": "Returns the second of the time in the date.",
1593
+ "examples": "\n##### Example\n\nGets the second of the current time\n\n```arcade\nSecond(Now())\n```\n\n",
1594
+ "completion": {
1595
+ "label": "Second",
1596
+ "detail": "Second(dateValue) -> Number",
1597
+ "insertText": "Second(${1:dateValue_})$0",
1598
+ "insertTextMode": 2,
1599
+ "insertTextFormat": 2,
1600
+ "kind": 3,
1601
+ "documentation": {
1602
+ "kind": "markdown",
1603
+ "value": "Returns the second of the time in the date.\n\n**Parameter**\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**Return value**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
1604
+ }
1605
+ },
1606
+ "parametersInfo": {
1607
+ "min": 1,
1608
+ "max": 1
1609
+ }
1610
+ },
1611
+ {
1612
+ "type": "function",
1613
+ "name": "second",
1614
+ "bundle": "core",
1615
+ "sinceVersion": "1.24",
1616
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#second2",
1617
+ "description": "Returns the second of the given time.",
1618
+ "examples": "\n##### Example\n\nGets the second of the time\n\n```arcade\nHour(Time(2, 59, 23))\n// returns 23\n```\n\n",
1619
+ "completion": {
1620
+ "label": "Second",
1621
+ "detail": "Second(timeValue) -> Number",
1622
+ "insertText": "Second(${1:timeValue_})$0",
1623
+ "insertTextMode": 2,
1624
+ "insertTextFormat": 2,
1625
+ "kind": 3,
1626
+ "documentation": {
1627
+ "kind": "markdown",
1628
+ "value": "**[Since version 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nReturns the second of the given time.\n\n**Parameter**\n\n- **timeValue**: Time - A Time value from which to get the second.\n\n**Return value**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
1629
+ }
1630
+ },
1631
+ "parametersInfo": {
1632
+ "min": 1,
1633
+ "max": 1
1634
+ }
1635
+ }
1636
+ ],
1637
+ [
1638
+ {
1639
+ "type": "function",
1640
+ "name": "time",
1641
+ "bundle": "core",
1642
+ "sinceVersion": "1.24",
1643
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#time1",
1644
+ "description": "Creates a Time value representing the current time in the time zone of the profile's execution context.",
1645
+ "examples": "\n##### Example\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",
1646
+ "completion": {
1647
+ "label": "Time",
1648
+ "detail": "Time() -> Time",
1649
+ "insertText": "Time($0)",
1650
+ "insertTextMode": 2,
1651
+ "insertTextFormat": 2,
1652
+ "kind": 3,
1653
+ "documentation": {
1654
+ "kind": "markdown",
1655
+ "value": "**[Since version 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**Return value**: Time"
1656
+ }
1657
+ },
1658
+ "parametersInfo": {
1659
+ "min": 0,
1660
+ "max": 0
1661
+ }
1662
+ },
1663
+ {
1664
+ "type": "function",
1665
+ "name": "time",
1666
+ "bundle": "core",
1667
+ "sinceVersion": "1.24",
1668
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#time2",
1669
+ "description": "Creates a Time value from a given date.",
1670
+ "examples": "\n##### Example\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",
1671
+ "completion": {
1672
+ "label": "Time",
1673
+ "detail": "Time(dateValue) -> Time",
1674
+ "insertText": "Time(${1:dateValue_})$0",
1675
+ "insertTextMode": 2,
1676
+ "insertTextFormat": 2,
1677
+ "kind": 3,
1678
+ "documentation": {
1679
+ "kind": "markdown",
1680
+ "value": "**[Since version 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nCreates a Time value from a given date.\n\n**Parameter**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - The date from which to get the time.\n\n**Return value**: Time"
1681
+ }
1682
+ },
1683
+ "parametersInfo": {
1684
+ "min": 1,
1685
+ "max": 1
1686
+ }
1687
+ },
1688
+ {
1689
+ "type": "function",
1690
+ "name": "time",
1691
+ "bundle": "core",
1692
+ "sinceVersion": "1.24",
1693
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#time3",
1694
+ "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`.",
1695
+ "examples": "\n##### Examples\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",
1696
+ "completion": {
1697
+ "label": "Time",
1698
+ "detail": "Time(numValue) -> Time",
1699
+ "insertText": "Time(${1:numValue_})$0",
1700
+ "insertTextMode": 2,
1701
+ "insertTextFormat": 2,
1702
+ "kind": 3,
1703
+ "documentation": {
1704
+ "kind": "markdown",
1705
+ "value": "**[Since version 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**Parameter**\n\n- **numValue**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - The number of milliseconds since midnight.\n\n**Return value**: Time"
1706
+ }
1707
+ },
1708
+ "parametersInfo": {
1709
+ "min": 1,
1710
+ "max": 1
1711
+ }
1712
+ },
1713
+ {
1714
+ "type": "function",
1715
+ "name": "time",
1716
+ "bundle": "core",
1717
+ "sinceVersion": "1.24",
1718
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#time4",
1719
+ "description": "Creates a Time value from inputs representing hours, minutes, seconds, and milliseconds.",
1720
+ "examples": "\n##### Example\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",
1721
+ "completion": {
1722
+ "label": "Time",
1723
+ "detail": "Time(hours, minutes, seconds?, milliseconds?) -> Time",
1724
+ "insertText": "Time(${1:hours_}, ${2:minutes_})$0",
1725
+ "insertTextMode": 2,
1726
+ "insertTextFormat": 2,
1727
+ "kind": 3,
1728
+ "documentation": {
1729
+ "kind": "markdown",
1730
+ "value": "**[Since version 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**Parameters**\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**Return value**: Time"
1731
+ }
1732
+ },
1733
+ "parametersInfo": {
1734
+ "min": 2,
1735
+ "max": 4
1736
+ }
1737
+ },
1738
+ {
1739
+ "type": "function",
1740
+ "name": "time",
1741
+ "bundle": "core",
1742
+ "sinceVersion": "1.24",
1743
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#time5",
1744
+ "description": "Creates a Time value from a text input representing time, with an optional input indicating the text's format.",
1745
+ "examples": "\n##### Examples\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",
1746
+ "completion": {
1747
+ "label": "Time",
1748
+ "detail": "Time(timeValue, format?) -> Time",
1749
+ "insertText": "Time(${1:timeValue_})$0",
1750
+ "insertTextMode": 2,
1751
+ "insertTextFormat": 2,
1752
+ "kind": 3,
1753
+ "documentation": {
1754
+ "kind": "markdown",
1755
+ "value": "**[Since version 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**Parameters**\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**Return value**: Time"
1756
+ }
1757
+ },
1758
+ "parametersInfo": {
1759
+ "min": 1,
1760
+ "max": 2
1761
+ }
1762
+ }
1763
+ ],
1764
+ {
1765
+ "type": "function",
1766
+ "name": "timestamp",
1767
+ "bundle": "core",
1768
+ "sinceVersion": "1.1",
1769
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#timestamp",
1770
+ "description": "Creates a Date value representing the current date and time in UTC.",
1771
+ "examples": "\n##### Example\n\nCreates a Date in UTC time\n\n```arcade\n// Date that represents Jan 27, 2023, 8:41:20 PM UTC\nTimestamp()\n```\n\n",
1772
+ "completion": {
1773
+ "label": "Timestamp",
1774
+ "detail": "Timestamp() -> Date",
1775
+ "insertText": "Timestamp($0)",
1776
+ "insertTextMode": 2,
1777
+ "insertTextFormat": 2,
1778
+ "kind": 3,
1779
+ "documentation": {
1780
+ "kind": "markdown",
1781
+ "value": "**[Since version 1.1](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nCreates a Date value representing the current date and time in UTC.\n\n**Return value**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)"
1167
1782
  }
1168
1783
  },
1169
1784
  "parametersInfo": {
@@ -1173,21 +1788,22 @@
1173
1788
  },
1174
1789
  {
1175
1790
  "type": "function",
1176
- "name": "second",
1791
+ "name": "timezone",
1177
1792
  "bundle": "core",
1178
- "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#second",
1179
- "description": "Returns the second of the time in the date.",
1180
- "examples": "\n##### Example\n\nGets the second of the current time\n\n```arcade\nSecond(Now())\n```\n\n",
1793
+ "sinceVersion": "1.24",
1794
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#timezone",
1795
+ "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",
1796
+ "examples": "\n##### Example\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",
1181
1797
  "completion": {
1182
- "label": "Second",
1183
- "detail": "Second(dateValue) -> Number",
1184
- "insertText": "Second(${1:dateValue_})$0",
1798
+ "label": "TimeZone",
1799
+ "detail": "TimeZone(dateValue) -> Text",
1800
+ "insertText": "TimeZone(${1:dateValue_})$0",
1185
1801
  "insertTextMode": 2,
1186
1802
  "insertTextFormat": 2,
1187
1803
  "kind": 3,
1188
1804
  "documentation": {
1189
1805
  "kind": "markdown",
1190
- "value": "Returns the second of the time in the date.\n\n**Parameter**\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**Return value**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
1806
+ "value": "**[Since version 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**Parameter**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - A Date value from which to get the time zone.\n\n**Return value**: [Text](https://developers.arcgis.com/arcade/guide/types/#text)"
1191
1807
  }
1192
1808
  },
1193
1809
  "parametersInfo": {
@@ -1197,27 +1813,27 @@
1197
1813
  },
1198
1814
  {
1199
1815
  "type": "function",
1200
- "name": "timestamp",
1816
+ "name": "timezoneoffset",
1201
1817
  "bundle": "core",
1202
- "sinceVersion": "1.1",
1203
- "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#timestamp",
1204
- "description": "Creates a date value representing the current date and time in UTC.",
1205
- "examples": "\n##### Example\n\nCreates a date in UTC time\n\n```arcade\n// Date that represents Jan 27, 2023, 8:41:20 PM UTC\nTimestamp()\n```\n\n",
1818
+ "sinceVersion": "1.24",
1819
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#timezoneoffset",
1820
+ "description": "Returns the time zone offset in minutes from UTC for the given Date.",
1821
+ "examples": "\n##### Example\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",
1206
1822
  "completion": {
1207
- "label": "Timestamp",
1208
- "detail": "Timestamp() -> Date",
1209
- "insertText": "Timestamp($0)",
1823
+ "label": "TimeZoneOffset",
1824
+ "detail": "TimeZoneOffset(dateValue) -> Number",
1825
+ "insertText": "TimeZoneOffset(${1:dateValue_})$0",
1210
1826
  "insertTextMode": 2,
1211
1827
  "insertTextFormat": 2,
1212
1828
  "kind": 3,
1213
1829
  "documentation": {
1214
1830
  "kind": "markdown",
1215
- "value": "**[Since version 1.1](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nCreates a date value representing the current date and time in UTC.\n\n**Return value**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)"
1831
+ "value": "**[Since version 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**Parameter**\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**Return value**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
1216
1832
  }
1217
1833
  },
1218
1834
  "parametersInfo": {
1219
- "min": 0,
1220
- "max": 0
1835
+ "min": 1,
1836
+ "max": 1
1221
1837
  }
1222
1838
  },
1223
1839
  {
@@ -1225,8 +1841,8 @@
1225
1841
  "name": "today",
1226
1842
  "bundle": "core",
1227
1843
  "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#today",
1228
- "description": "Returns the current date in the local time of the client.",
1229
- "examples": "\n##### Example\n\nReturns the current date with time truncated, e.g. Mon Oct 24 2016 00:00:00 GMT-0700 (PDT)\n\n```arcade\nToday()\n```\n\n",
1844
+ "description": "Returns the current Date at midnight in the time zone of the profile's execution context.",
1845
+ "examples": "\n##### Example\n\nReturns the current Date at midnight, e.g. Mon Oct 24 2016 00:00:00 GMT-0700 (PDT)\n\n```arcade\nToday()\n```\n\n",
1230
1846
  "completion": {
1231
1847
  "label": "Today",
1232
1848
  "detail": "Today() -> Date",
@@ -1236,7 +1852,7 @@
1236
1852
  "kind": 3,
1237
1853
  "documentation": {
1238
1854
  "kind": "markdown",
1239
- "value": "Returns the current date in the local time of the client.\n\n**Return value**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)"
1855
+ "value": "Returns the current Date at midnight in the time zone of the profile's execution context.\n\n**Return value**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)"
1240
1856
  }
1241
1857
  },
1242
1858
  "parametersInfo": {
@@ -1250,8 +1866,8 @@
1250
1866
  "bundle": "core",
1251
1867
  "sinceVersion": "1.1",
1252
1868
  "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#tolocal",
1253
- "description": "Creates a new date value matching the epoch of the input date and sets the time zone to the local or system time zone of the client.",
1254
- "examples": "\n##### Example\n\nConverts a UTC date to the local time of the client\n\n```arcade\n// Date represents Jan 27, 2023, 8:41:20 PM UTC\nTimestamp()\n// Date represents Jan 27, 2023, 12:41:20 PM PST\nToLocal(Timestamp())\n```\n\n",
1869
+ "description": "Creates a new Date value matching the epoch of the input date and sets the time zone to the local or system time zone of the client.",
1870
+ "examples": "\n##### Example\n\nConverts a UTC Date to the local time of the client\n\n```arcade\n// Date represents Jan 27, 2023, 8:41:20 PM UTC\nTimestamp()\n// Date represents Jan 27, 2023, 12:41:20 PM PST\nToLocal(Timestamp())\n```\n\n",
1255
1871
  "completion": {
1256
1872
  "label": "ToLocal",
1257
1873
  "detail": "ToLocal(inputDate) -> Date",
@@ -1261,7 +1877,7 @@
1261
1877
  "kind": 3,
1262
1878
  "documentation": {
1263
1879
  "kind": "markdown",
1264
- "value": "**[Since version 1.1](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nCreates a new date value matching the epoch of the input date and sets the time zone to the local or system time zone of the client.\n\n**Parameter**\n\n- **inputDate**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - A date value to convert to the local time of the client.\n\n**Return value**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)"
1880
+ "value": "**[Since version 1.1](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nCreates a new Date value matching the epoch of the input date and sets the time zone to the local or system time zone of the client.\n\n**Parameter**\n\n- **inputDate**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - A Date value to convert to the local time of the client.\n\n**Return value**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)"
1265
1881
  }
1266
1882
  },
1267
1883
  "parametersInfo": {
@@ -1275,8 +1891,8 @@
1275
1891
  "bundle": "core",
1276
1892
  "sinceVersion": "1.1",
1277
1893
  "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#toutc",
1278
- "description": "Creates a new date value matching the epoch of the input date and sets the time zone to UTC.",
1279
- "examples": "\n##### Example\n\nConverts the date object from local time to UTC\n\n```arcade\n// Date represents Jan 27, 2023, 12:41:20 PM PST\nNow()\n// Date represents Jan 27, 2023, 8:41:20 PM UTC\nToUTC(Now())\n```\n\n",
1894
+ "description": "Creates a new Date value matching the epoch of the input date and sets the time zone to UTC.",
1895
+ "examples": "\n##### Example\n\nConverts the Date object from local time to UTC\n\n```arcade\n// Date represents Jan 27, 2023, 12:41:20 PM PST\nNow()\n// Date represents Jan 27, 2023, 8:41:20 PM UTC\nToUTC(Now())\n```\n\n",
1280
1896
  "completion": {
1281
1897
  "label": "ToUTC",
1282
1898
  "detail": "ToUTC(inputDate) -> Date",
@@ -1286,7 +1902,7 @@
1286
1902
  "kind": 3,
1287
1903
  "documentation": {
1288
1904
  "kind": "markdown",
1289
- "value": "**[Since version 1.1](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nCreates a new date value matching the epoch of the input date and sets the time zone to UTC.\n\n**Parameter**\n\n- **inputDate**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - A date value to convert to UTC time.\n\n**Return value**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)"
1905
+ "value": "**[Since version 1.1](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nCreates a new Date value matching the epoch of the input date and sets the time zone to UTC.\n\n**Parameter**\n\n- **inputDate**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - A Date value to convert to UTC time.\n\n**Return value**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)"
1290
1906
  }
1291
1907
  },
1292
1908
  "parametersInfo": {
@@ -1300,8 +1916,8 @@
1300
1916
  "bundle": "core",
1301
1917
  "sinceVersion": "1.14",
1302
1918
  "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#week",
1303
- "description": "Returns the week number in the year of the given date. Values range from 0-53 where the first week of the year is `0` and the last week of the year is `51`, `52`, or `53`, depending on the year. The first and last weeks may not be a full seven days in length.",
1304
- "examples": "\n##### Examples\n\nUse the default start of the week (Sunday)\n\n```arcade\nWeek( Date(1974,0,3) )\n// Returns 0\n```\n\nSet start of week to Thursday\n\n```arcade\nWeek( Date(1974,0,3), 4 )\n// Returns 1\n```\n\nSet start of week to Friday\n\n```arcade\nWeek( Date(1974,0,3), 5 )\n// Returns 0\n```\n\n```arcade\nWeek( Date(1945,8,23) )\n// Returns 38\n```\n\n```arcade\nWeek( Date(2022,7,20) )\n// Returns 33\n```\n\n",
1919
+ "description": "Returns the week number in the year of the given Date. Values range from 0-53 where the first week of the year is `0` and the last week of the year is `51`, `52`, or `53`, depending on the year. The first and last weeks may not be a full seven days in length.",
1920
+ "examples": "\n##### Examples\n\nUse the default start of the week (Sunday)\n\n```arcade\nWeek( Date(1974,0,3) )\n// Returns 0\n```\n\nSet start of week to Thursday\n\n```arcade\nWeek( Date(1974,0,3), 4 )\n// Returns 1\n```\n\nSet start of week to Friday\n\n```arcade\nWeek( Date(1974,0,3), 5 )\n// Returns 0\n```\n\n```arcade\nWeek( Date(1945,8,23) )\n// Returns 38\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",
1305
1921
  "completion": {
1306
1922
  "label": "Week",
1307
1923
  "detail": "Week(dateValue, startDay?) -> Number",
@@ -1311,7 +1927,7 @@
1311
1927
  "kind": 3,
1312
1928
  "documentation": {
1313
1929
  "kind": "markdown",
1314
- "value": "**[Since version 1.14](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nReturns the week number in the year of the given date. Values range from 0-53 where the first week of the year is `0` and the last week of the year is `51`, `52`, or `53`, depending on the year. The first and last weeks may not be a full seven days in length.\n\n**Parameters**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - A date value from which to get the week.\n- **startDay** (_Optional_): [Number](https://developers.arcgis.com/arcade/guide/types/#number) - A number representing the start day of the week. Sunday = 0; Monday = 1; Tuesday = 2; Wednesday = 3; Thursday = 4; Friday = 5; Saturday = 6. The default is `0` (Sunday).\n\n**Return value**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
1930
+ "value": "**[Since version 1.14](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nReturns the week number in the year of the given Date. Values range from 0-53 where the first week of the year is `0` and the last week of the year is `51`, `52`, or `53`, depending on the year. The first and last weeks may not be a full seven days in length.\n\n**Parameters**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) \\| DateOnly - A Date or DateOnly value from which to get the week. DateOnly values are supported starting at version 1.24.\n- **startDay** (_Optional_): [Number](https://developers.arcgis.com/arcade/guide/types/#number) - A number representing the start day of the week. Sunday = 0; Monday = 1; Tuesday = 2; Wednesday = 3; Thursday = 4; Friday = 5; Saturday = 6. The default is `0` (Sunday).\n\n**Return value**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
1315
1931
  }
1316
1932
  },
1317
1933
  "parametersInfo": {
@@ -1324,8 +1940,8 @@
1324
1940
  "name": "weekday",
1325
1941
  "bundle": "core",
1326
1942
  "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#weekday",
1327
- "description": "Returns the day of the week of the given date. Values range from 0-6 where Sunday is `0` and Saturday is `6`.",
1328
- "examples": "\n##### Example\n\nReturns the day of the week of the given date. Returns `3`, for Wednesday.\n\n```arcade\nWeekday(Date(1980, 11, 31))\n```\n\n",
1943
+ "description": "Returns the day of the week of the given Date. Values range from 0-6 where Sunday is `0` and Saturday is `6`.",
1944
+ "examples": "\n##### Examples\n\nReturns the day of the week of the given date. Returns `3`, for Wednesday.\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",
1329
1945
  "completion": {
1330
1946
  "label": "Weekday",
1331
1947
  "detail": "Weekday(dateValue) -> Number",
@@ -1335,7 +1951,7 @@
1335
1951
  "kind": 3,
1336
1952
  "documentation": {
1337
1953
  "kind": "markdown",
1338
- "value": "Returns the day of the week of the given date. Values range from 0-6 where Sunday is `0` and Saturday is `6`.\n\n**Parameter**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - A date value from which to return the day of the week.\n\n**Return value**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
1954
+ "value": "Returns the day of the week of the given Date. Values range from 0-6 where Sunday is `0` and Saturday is `6`.\n\n**Parameter**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) \\| DateOnly - A Date or DateOnly value from which to return the day of the week. DateOnly values are supported starting at version 1.24.\n\n**Return value**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
1339
1955
  }
1340
1956
  },
1341
1957
  "parametersInfo": {
@@ -1348,8 +1964,8 @@
1348
1964
  "name": "year",
1349
1965
  "bundle": "core",
1350
1966
  "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#year",
1351
- "description": "Returns the year of the given date.",
1352
- "examples": "\n##### Example\n\nGets the year of the current date\n\n```arcade\nYear(Now())\n```\n\n",
1967
+ "description": "Returns the year of the given Date.",
1968
+ "examples": "\n##### Examples\n\nGets the year of the current Date\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",
1353
1969
  "completion": {
1354
1970
  "label": "Year",
1355
1971
  "detail": "Year(dateValue) -> Number",
@@ -1359,7 +1975,7 @@
1359
1975
  "kind": 3,
1360
1976
  "documentation": {
1361
1977
  "kind": "markdown",
1362
- "value": "Returns the year of the given date.\n\n**Parameter**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - A date value from which to get the year.\n\n**Return value**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
1978
+ "value": "Returns the year of the given Date.\n\n**Parameter**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) \\| DateOnly - A Date or DateOnly value from which to get the year. DateOnly values are supported starting at version 1.24.\n\n**Return value**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
1363
1979
  }
1364
1980
  },
1365
1981
  "parametersInfo": {
@@ -2445,6 +3061,31 @@
2445
3061
  "max": 4
2446
3062
  }
2447
3063
  },
3064
+ {
3065
+ "type": "function",
3066
+ "name": "featuresetbyrelationshipclass",
3067
+ "bundle": "data-access",
3068
+ "sinceVersion": "1.24",
3069
+ "link": "https://developers.arcgis.com/arcade/function-reference/featureset_functions/#featuresetbyrelationshipclass",
3070
+ "description": "Returns the related records for a given feature as a FeatureSet based on the class name of the relationship.",
3071
+ "examples": "\n##### Example\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",
3072
+ "completion": {
3073
+ "label": "FeatureSetByRelationshipClass",
3074
+ "detail": "FeatureSetByRelationshipClass(inputFeature, relationshipClass, fieldNames?, includeGeometry?) -> FeatureSet",
3075
+ "insertText": "FeatureSetByRelationshipClass(${1:inputFeature_}, ${2:relationshipClass_})$0",
3076
+ "insertTextMode": 2,
3077
+ "insertTextFormat": 2,
3078
+ "kind": 3,
3079
+ "documentation": {
3080
+ "kind": "markdown",
3081
+ "value": "**[Since version 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**Parameters**\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**Return value**: [FeatureSet](https://developers.arcgis.com/arcade/guide/types/#featureset)"
3082
+ }
3083
+ },
3084
+ "parametersInfo": {
3085
+ "min": 2,
3086
+ "max": 4
3087
+ }
3088
+ },
2448
3089
  {
2449
3090
  "type": "function",
2450
3091
  "name": "featuresetbyrelationshipname",
@@ -2836,7 +3477,7 @@
2836
3477
  "kind": 3,
2837
3478
  "documentation": {
2838
3479
  "kind": "markdown",
2839
- "value": "Returns the lowest value for a given numeric field from a [FeatureSet](https://developers.arcgis.com/arcade/guide/types/#featureset).\n\n**Parameters**\n\n- **features**: [FeatureSet](https://developers.arcgis.com/arcade/guide/types/#featureset) - A FeatureSet on which to perform the operaiton.\n- **fieldNameOrSQLExpression**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - Specifies the name of a numeric field or SQL92 expression for which the statistic will be calculated from the input FeatureSet.\n\n**Return value**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
3480
+ "value": "Returns the lowest value for a given numeric field from a [FeatureSet](https://developers.arcgis.com/arcade/guide/types/#featureset).\n\n**Parameters**\n\n- **features**: [FeatureSet](https://developers.arcgis.com/arcade/guide/types/#featureset) - A FeatureSet on which to perform the operation.\n- **fieldNameOrSQLExpression**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - Specifies the name of a numeric field or SQL92 expression for which the statistic will be calculated from the input FeatureSet.\n\n**Return value**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
2840
3481
  }
2841
3482
  },
2842
3483
  "parametersInfo": {
@@ -4107,7 +4748,7 @@
4107
4748
  "sinceVersion": "1.23",
4108
4749
  "link": "https://developers.arcgis.com/arcade/function-reference/geometry_functions/#nearestcoordinate",
4109
4750
  "description": "Returns the nearest coordinate (not vertex) of the input geometry to the search point. The returned dictionary also includes the shortest planar distance from the search point to the nearest coordinate. If the search point intersects the input geometry, then the search point is returned as the result with a distance of zero.\n\n_Feature geometries in the visualization and labeling profiles are generalized according to the view's scale resolution to improve drawing performance. Therefore, using a feature's geometry (i.e. `$feature`) as input to any geometry function in these contexts will return different results at each scale level. Other profiles, such as popup, provide the full resolution geometry._",
4110
- "examples": "\n##### Example\n\nReturns the nearest vertex from the input polygon along with the distance to that vertex\n\n```arcade\nvar buildings = FeatureSetByPortalItem(\n Portal('https://www.arcgis.com'),\n '7b1fb95ab77f40bf8aa09c8b59045449',\n 0,\n ['*'],\n true\n);\n\nvar nearestBuilding = First(Intersects(buildings, BufferGeodetic($feature, 100, \"feet\")));\n\nvar result = NearestCoordinate(nearestBuilding, $feature);\n\nreturn result.distance;\n\n// or\n\nreturn result.coordinate;\n```\n\n",
4751
+ "examples": "\n##### Example\n\nReturns the nearest coordinate from the input polygon along with the distance to that coordinate\n\n```arcade\nvar buildings = FeatureSetByPortalItem(\n Portal('https://www.arcgis.com'),\n '7b1fb95ab77f40bf8aa09c8b59045449',\n 0,\n ['*'],\n true\n);\n\nvar nearestBuilding = First(Intersects(buildings, BufferGeodetic($feature, 100, \"feet\")));\n\nvar result = NearestCoordinate(nearestBuilding, $feature);\n\nreturn result.distance;\n\n// or\n\nreturn result.coordinate;\n```\n\n",
4111
4752
  "completion": {
4112
4753
  "label": "NearestCoordinate",
4113
4754
  "detail": "NearestCoordinate(inputGeometry, searchPoint) -> Dictionary",
@@ -4728,6 +5369,31 @@
4728
5369
  "max": 2
4729
5370
  }
4730
5371
  },
5372
+ {
5373
+ "type": "function",
5374
+ "name": "equals",
5375
+ "bundle": "core",
5376
+ "sinceVersion": "1.24",
5377
+ "link": "https://developers.arcgis.com/arcade/function-reference/logical_functions/#equals",
5378
+ "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.",
5379
+ "examples": "\n##### Example\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",
5380
+ "completion": {
5381
+ "label": "Equals",
5382
+ "detail": "Equals(value1, value2) -> Boolean",
5383
+ "insertText": "Equals(${1:value1_}, ${2:value2_})$0",
5384
+ "insertTextMode": 2,
5385
+ "insertTextFormat": 2,
5386
+ "kind": 3,
5387
+ "documentation": {
5388
+ "kind": "markdown",
5389
+ "value": "**[Since version 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**Parameters**\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**Return value**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean)"
5390
+ }
5391
+ },
5392
+ "parametersInfo": {
5393
+ "min": 2,
5394
+ "max": 2
5395
+ }
5396
+ },
4731
5397
  {
4732
5398
  "type": "function",
4733
5399
  "name": "iif",
@@ -5163,7 +5829,7 @@
5163
5829
  "kind": 3,
5164
5830
  "documentation": {
5165
5831
  "kind": "markdown",
5166
- "value": "**[Since version 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nGenerates a hash code value for the given variable.\n\n**Parameter**\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) - The variable to be hashed.\n\n**Return value**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
5832
+ "value": "**[Since version 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nGenerates a hash code value for the given variable.\n\n**Parameter**\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 - The variable to be hashed. DateOnly and Time values are supported starting at version 1.24.\n\n**Return value**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
5167
5833
  }
5168
5834
  },
5169
5835
  "parametersInfo": {
@@ -6125,7 +6791,7 @@
6125
6791
  "bundle": "core",
6126
6792
  "link": "https://developers.arcgis.com/arcade/function-reference/text_functions/#text",
6127
6793
  "description": "Converts its argument into a text value and optionally formats it. Returns `null` if it fails.",
6128
- "examples": "\n##### Examples\n\nPad the number to the left of the decimal\n\n```arcade\nText(123, '0000') // '0123'\n```\n\nRestrict the number to the left of the decimal\n\n```arcade\nText(123, '00') // '23'\n```\n\nGroup the number by thousands\n\n```arcade\nText(1234, '#,###') // '1,234'\n```\n\nRound the number to two decimal places\n\n```arcade\nText(12345678.123, '#,###.00') // '12,345,678.12'\n```\n\nFormat number as currency\n\n```arcade\nText(1234.55, '$#,###.00') // '$1,234.55'\n```\n\nRound the number to two decimal places\n\n```arcade\nText(1.236, '#.00') // '1.24'\n```\n\nMaintain significant digits and group by thousands\n\n```arcade\nText(1234.5678, '#,##0.00#') // '1,234.568'\n```\n\nFormat the number and format positive/negative - if there is a negative subpattern, it serves only to specify the negative prefix and suffix\n\n```arcade\nText(-2, 'Floor #;Basement #') // 'Basement 2'\n```\n\n```arcade\nText(2, 'Floor #;Basement #') // 'Floor 2'\n```\n\nMultiply by 100 and format as percentage\n\n```arcade\nText(0.3, '#%') // '30%'\n```\n\nFormat date and time at the moment. eg 'Tuesday, October 25, 2016 @ 08:43:11'\n\n```arcade\nText(Now(), 'dddd, MMMM D, Y @ h:m:s')\n```\n\nDate stored in the `datetime` field already represents local time, but Arcade assumes it is UTC. Offsets the local time to UTC to avoid applying the timezone offset twice.\n\n```arcade\nText(ToUTC($feature.datetime), 'dddd, MMMM D, Y @ h:m:s')\n```\n\n",
6794
+ "examples": "\n##### Examples\n\nPad the number to the left of the decimal\n\n```arcade\nText(123, '0000') // '0123'\n```\n\nRestrict the number to the left of the decimal\n\n```arcade\nText(123, '00') // '23'\n```\n\nGroup the number by thousands\n\n```arcade\nText(1234, '#,###') // '1,234'\n```\n\nRound the number to two decimal places\n\n```arcade\nText(12345678.123, '#,###.00') // '12,345,678.12'\n```\n\nFormat number as currency\n\n```arcade\nText(1234.55, '$#,###.00') // '$1,234.55'\n```\n\nRound the number to two decimal places\n\n```arcade\nText(1.236, '#.00') // '1.24'\n```\n\nMaintain significant digits and group by thousands\n\n```arcade\nText(1234.5678, '#,##0.00#') // '1,234.568'\n```\n\nFormat the number and format positive/negative - if there is a negative subpattern, it serves only to specify the negative prefix and suffix\n\n```arcade\nText(-2, 'Floor #;Basement #') // 'Basement 2'\n```\n\n```arcade\nText(2, 'Floor #;Basement #') // 'Floor 2'\n```\n\nMultiply by 100 and format as percentage\n\n```arcade\nText(0.3, '#%') // '30%'\n```\n\nFormat date and time at the moment. eg 'Tuesday, October 25, 2016 @ 08:43:11'\n\n```arcade\nText(Now(), 'dddd, MMMM D, Y @ h:m:s')\n```\n\nFormats the date and time with the timezone\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",
6129
6795
  "completion": {
6130
6796
  "label": "Text",
6131
6797
  "detail": "Text(value, format?) -> Text",
@@ -6135,7 +6801,7 @@
6135
6801
  "kind": 3,
6136
6802
  "documentation": {
6137
6803
  "kind": "markdown",
6138
- "value": "Converts its argument into a text value and optionally formats it. Returns `null` if it fails.\n\n**Parameters**\n\n- **value**: [Any](https://developers.arcgis.com/arcade/guide/types/#any) - A value to be converted to a text (e.g. date, number or other type). When a date is provided, this function assumes the date/time object is in UTC and automatically converts the value to the local time of the client executing the expression. If the date/time value returned from the database already represents local time, then you should use the `toUTC` function to avoid applying an extra offset.\n- **format** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) - Special formatting characters for dates or numbers. \nPossible values: \n - `0`: Digit \n - `#`: Digit, omitting leading/trailing zeros \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 - `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**Return value**: [Text](https://developers.arcgis.com/arcade/guide/types/#text)"
6804
+ "value": "Converts its argument into a text value and optionally formats it. Returns `null` if it fails.\n\n**Parameters**\n\n- **value**: [Any](https://developers.arcgis.com/arcade/guide/types/#any) - A value to be converted to a text (e.g. date, number or other type). When a date is provided, this function assumes the date/time object is in UTC and automatically converts the value to the local time of the client executing the expression. If the date/time value returned from the database already represents local time, then you should use the `toUTC` function to avoid applying an extra offset.\n- **format** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) - Special formatting characters for dates or numbers. \nPossible values: \n - `0`: Digit \n - `#`: Digit, omitting leading/trailing zeros \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 - `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 - `Z`: Time zone offset in narrow hours +/- UTC (e.g. `-7` or `+11`) \n - `ZZ`: Time zone offset in hours +/- UTC (e.g. `-07:00` or `+11:00`) \n - `ZZZ`: Time zone offset in compact hours +/- UTC (e.g. `-0700` or `+1100`) \n - `ZZZZ`: Abbreviated named time zone (e.g. `EST`) \n - `ZZZZZ`: Named time zone (e.g. `Eastern Standard Time`) \n\n\n**Return value**: [Text](https://developers.arcgis.com/arcade/guide/types/#text)"
6139
6805
  }
6140
6806
  },
6141
6807
  "parametersInfo": {