@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": "Datofunktioner",
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##### Eksempler\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": "**[Siden 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**Parametre**\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**Returværdi**: [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": "Opretter et datoobjekt ud fra et sæt parametre. Datoerne bliver som standard oprettet i klientens eller systemets lokale tid.",
815
- "examples": "\n##### Eksempler\n\nOpretter en dato, der repræsenterer det angivne tidspunkt i den lokale tid for det system, der kører Arcade\n\n```arcade\n// Date that represents Jun 02, 1987, 12:00:00 AM PST\nDate(1987,05,02)\n```\n\nOpretter en dato, der repræsenterer det aktuelle tidspunkt i den lokale tid for det system, der kører 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##### Eksempler\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": "Opretter et datoobjekt ud fra et sæt parametre. Datoerne bliver som standard oprettet i klientens eller systemets lokale tid.\n\n**Parametre**\n\n- **year**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - Et tal, der repræsenterer et år.\n- **month**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - Måneden (0-11), hvor `0` er januar, og `11` er december.\n- **day**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - Dagen i måneden (1-31).\n- **hour** (_Optional_): [Number](https://developers.arcgis.com/arcade/guide/types/#number) - Tidspunktet dagen (0-23).\n- **minute** (_Optional_): [Number](https://developers.arcgis.com/arcade/guide/types/#number) - Minut inden for en time (0-59).\n- **second** (_Optional_): [Number](https://developers.arcgis.com/arcade/guide/types/#number) - Sekund inden for et minut (0-59).\n- **millisecond** (_Optional_): [Number](https://developers.arcgis.com/arcade/guide/types/#number) - Millisekund inden for et sekund (0-999).\n\n**Returværdi**: [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**Parametre**\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**Returværdi**: [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": "Opretter en dato med det angivne Unix-epokenummer i den lokale tidszone for klienten eller systemet.",
839
- "examples": "\n##### Eksempel\n\nMillisekunder siden 1. januar 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##### Eksempler\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": "Opretter en dato med det angivne Unix-epokenummer i den lokale tidszone for klienten eller systemet.\n\n**parameter**\n\n- **epoch** (_Optional_): [Number](https://developers.arcgis.com/arcade/guide/types/#number) - Antal millisekunder siden 1. januar 1970 UTC.\n\n**Returværdi**: [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**Returværdi**: [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": "Konverterer en ISO 8601-tekstværdi til et datoobjekt i den lokale tidszone for kilenten eller systemet.",
863
- "examples": "\n##### Eksempel\n\nISO 8601-tekstværdi\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##### Eksempler\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": "Konverterer en ISO 8601-tekstværdi til et datoobjekt i den lokale tidszone for kilenten eller systemet.\n\n**parameter**\n\n- **timestamp** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) - En ISO 8601-tekstværdi, der skal konverteres til en dato.\n\n**Returværdi**: [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**Returværdi**: [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##### Eksempel\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": "**[Siden 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**Parametre**\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**Returværdi**: [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##### Eksempel\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": "**[Siden 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**Returværdi**: [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": "Tilføjer den angivne mængde tid i de givne tidsenheder til en dato og returnerer en ny dato.",
888
- "examples": "\n##### Eksempel\n\nLægger 7 dage til datoen i det angivne felt\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": "Tilføjer den angivne mængde tid i de givne tidsenheder til en dato og returnerer en ny dato.\n\n**Parametre**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - Den input-dato, som der skal tilføjes tid til.\n- **addValue**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - Den værdi, der skal tilføjes til datoen i de givne enheder.\n- **units** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) - Det tal, der skal lægges til datoen. Standard er `millisekunder`. De understøttede tidsenheder omfatter `millisekunder`, `sekunder`, `minutter`, `timer`, `dage`, `måneder`, `år`\n\n**Returværdi**: [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##### Eksempel\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**Parametre**\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**Returværdi**: [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##### Eksempler\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": "**[Siden 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**Parametre**\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**Returværdi**: 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##### Eksempler\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": "**[Siden 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**Parametre**\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**Returværdi**: 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": "Trækker to datoer fra hinanden og returnerer forskellen i de angivne tidsenheder.",
912
- "examples": "\n##### Eksempel\n\nTrækker to datoer fra hinanden og returnerer alderen\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": "Trækker to datoer fra hinanden og returnerer forskellen i de angivne tidsenheder.\n\n**Parametre**\n\n- **date1**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - Den datoværdi, hvorfra der skal fratrækkes en anden datoværdi.\n- **date2**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - Den datoværdi, der skal trækkes fra den først angivne dato.\n- **units** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) - Enhederne, hvor forskellen mellem to angivne datoen returneres. De understøttede tidsenheder omfatter `millisekunder`, `sekunder`, `minutter`, `timer`, `dage`, `måneder`, `år`. Standardværdien er `millisekunder`.\n\n**Returværdi**: [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##### Eksempler\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**Parametre**\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**Returværdi**: [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##### Eksempel\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": "**[Siden 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**Parametre**\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**Returværdi**: [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##### Eksempel\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": "**[Siden 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**Parametre**\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**Returværdi**: [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##### Eksempel\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": "**[Siden 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**Returværdi**: 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##### Eksempel\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": "**[Siden 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**Returværdi**: 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##### Eksempel\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": "**[Siden 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**Returværdi**: 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##### Eksempel\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": "**[Siden 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**Parametre**\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**Returværdi**: 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##### Eksempler\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": "**[Siden 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**Parametre**\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**Returværdi**: 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##### Eksempel\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": "**[Siden 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**Returværdi**: 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": "Returnerer dagen i måneden for den givne dato.",
936
- "examples": "\n##### Eksempel\n\nHenter dagen i måneden for den aktuelle dato\n\n```arcade\nDay(Now())\n```\n\n",
1267
+ "examples": "\n##### Eksempler\n\nHenter dagen i måneden for den aktuelle dato\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": "Returnerer dagen i måneden for den givne dato.\n\n**parameter**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - En datoværdi, hvorfra dagen i måneden skal hentes.\n\n**Returværdi**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
1277
+ "value": "Returnerer dagen i måneden for den givne dato.\n\n**parameter**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) \\| DateOnly - En datoværdi, hvorfra dagen i måneden skal hentes.\n\n**Returværdi**: [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": "Returnerer tiden i timer på den givne dato (0-23).",
960
- "examples": "\n##### Eksempel\n\nHenter den aktuelle tid i timer\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": "Returnerer tiden i timer på den givne dato (0-23).\n\n**parameter**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - En datoværdi, hvorfra tiden i timer skal hentes.\n\n**Returværdi**: [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##### Eksempel\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**Returværdi**: [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##### Eksempel\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": "**[Siden 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**Returværdi**: [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": "Returnerer måneden for den givne dato, baseret på ISO 8601-standarden. Værdierne går fra 1-12, hvor januar er `1`, og december er `12`.",
985
- "examples": "\n##### Eksempel\n\nHenter måneden for den givne dato, baseret på ISO 8601-standarden. Returnerer `12`, for december måned.\n\n```arcade\nISOMonth(Date(1980, 11, 31))\n```\n\n",
1343
+ "examples": "\n##### Eksempler\n\nHenter måneden for den givne dato, baseret på ISO 8601-standarden. Returnerer `12`, for december måned.\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": "**[Siden version 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nReturnerer måneden for den givne dato, baseret på ISO 8601-standarden. Værdierne går fra 1-12, hvor januar er `1`, og december er `12`.\n\n**parameter**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - En datoværdi, hvorfra måneden skal hentes.\n\n**Returværdi**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
1353
+ "value": "**[Siden version 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nReturnerer måneden for den givne dato, baseret på ISO 8601-standarden. Værdierne går fra 1-12, hvor januar er `1`, og december er `12`.\n\n**parameter**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) \\| DateOnly - En datoværdi, hvorfra måneden skal hentes.\n\n**Returværdi**: [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": "Returnerer ugen i året for den givne dato, baseret på ISO 8601-standarden for uge-dato-kalender. Værdierne går fra 1-53, hvor den første uge i året er `1`, og den sidste uge i året er `52` eller `53` afhængigt af det pågældende år.",
1010
- "examples": "\n##### Eksempel\n\nHenter ugen for den givne dato, baseret på ISO 8601-standarden. Returnerer `1`, fordi denne dato er medtaget i den første uge i det følgende år.\n\n```arcade\nISOWeek(Date(1980, 11, 31))\n```\n\n",
1368
+ "examples": "\n##### Eksempler\n\nHenter ugen for den givne dato, baseret på ISO 8601-standarden. Returnerer `1`, fordi denne dato er medtaget i den første uge i det følgende år.\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": "**[Siden version 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nReturnerer ugen i året for den givne dato, baseret på ISO 8601-standarden for uge-dato-kalender. Værdierne går fra 1-53, hvor den første uge i året er `1`, og den sidste uge i året er `52` eller `53` afhængigt af det pågældende år.\n\n**parameter**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - En datoværdi, hvorfra ugen skal hentes.\n\n**Returværdi**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
1378
+ "value": "**[Siden version 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nReturnerer ugen i året for den givne dato, baseret på ISO 8601-standarden for uge-dato-kalender. Værdierne går fra 1-53, hvor den første uge i året er `1`, og den sidste uge i året er `52` eller `53` afhængigt af det pågældende år.\n\n**parameter**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) \\| DateOnly - En datoværdi, hvorfra ugen skal hentes.\n\n**Returværdi**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
1021
1379
  }
1022
1380
  },
1023
1381
  "parametersInfo": {
@@ -1032,7 +1390,7 @@
1032
1390
  "sinceVersion": "1.12",
1033
1391
  "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#isoweekday",
1034
1392
  "description": "Returnerer ugedagen for den givne dato, baseret på ISO 8601-standarden. Værdierne går fra 1-7, hvor mandag er `1`, og søndag er `7`.",
1035
- "examples": "\n##### Eksempel\n\nReturnerer ugedagen for den givne dato, baseret på ISO 8601-standarden. Returnerer `3` for onsdag.\n\n```arcade\nISOWeekday(Date(1980, 11, 31))\n```\n\n",
1393
+ "examples": "\n##### Eksempler\n\nReturnerer ugedagen for den givne dato, baseret på ISO 8601-standarden. Returnerer `3` for onsdag.\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",
@@ -1042,7 +1400,7 @@
1042
1400
  "kind": 3,
1043
1401
  "documentation": {
1044
1402
  "kind": "markdown",
1045
- "value": "**[Siden version 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nReturnerer ugedagen for den givne dato, baseret på ISO 8601-standarden. Værdierne går fra 1-7, hvor mandag er `1`, og søndag er `7`.\n\n**parameter**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - En datoværdi, hvorfra ugedagen skal hentes.\n\n**Returværdi**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
1403
+ "value": "**[Siden version 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nReturnerer ugedagen for den givne dato, baseret på ISO 8601-standarden. Værdierne går fra 1-7, hvor mandag er `1`, og søndag er `7`.\n\n**parameter**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) \\| DateOnly - En datoværdi, hvorfra ugedagen skal hentes.\n\n**Returværdi**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
1046
1404
  }
1047
1405
  },
1048
1406
  "parametersInfo": {
@@ -1057,65 +1415,17 @@
1057
1415
  "sinceVersion": "1.12",
1058
1416
  "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#isoyear",
1059
1417
  "description": "Returnerer året for den givne dato, baseret på ISO 8601-standarden for uge-dato-kalender.",
1060
- "examples": "\n##### Eksempel\n\nHenter året for den givne dato, baseret på ISO 8601-standarden for uge-dato-kalender. Returnerer `1981`, fordi denne dato er medtaget i den første uge i det følgende år.\n\n```arcade\nISOYear(Date(1980, 11, 31))\n```\n\n",
1418
+ "examples": "\n##### Eksempler\n\nHenter året for den givne dato, baseret på ISO 8601-standarden for uge-dato-kalender. Returnerer `1981`, fordi denne dato er medtaget i den første uge i det følgende år.\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",
1061
1419
  "completion": {
1062
1420
  "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": "**[Siden version 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nReturnerer året for den givne dato, baseret på ISO 8601-standarden for uge-dato-kalender.\n\n**parameter**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - En datoværdi, hvorfra årstallet skal hentes.\n\n**Returværdi**: [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": "Returnerer tiden i millisekunder på den givne dato.",
1084
- "examples": "\n##### Eksempel\n\nHenter den aktuelle tid i millisekunder\n\n```arcade\nMillisecond(Now())\n```\n\n",
1085
- "completion": {
1086
- "label": "Millisecond",
1087
- "detail": "Millisecond(dateValue) -> Number",
1088
- "insertText": "Millisecond(${1:dateValue_})$0",
1089
- "insertTextMode": 2,
1090
- "insertTextFormat": 2,
1091
- "kind": 3,
1092
- "documentation": {
1093
- "kind": "markdown",
1094
- "value": "Returnerer tiden i millisekunder på den givne dato.\n\n**parameter**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - En datoværdi, hvorfra tiden i millisekunder hentes.\n\n**Returværdi**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
1095
- }
1096
- },
1097
- "parametersInfo": {
1098
- "min": 1,
1099
- "max": 1
1100
- }
1101
- },
1102
- {
1103
- "type": "function",
1104
- "name": "minute",
1105
- "bundle": "core",
1106
- "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#minute",
1107
- "description": "Returnerer tiden i minutter på den givne dato.",
1108
- "examples": "\n##### Eksempel\n\nHenter den aktuelle tid i minutter\n\n```arcade\nMinute(Now())\n```\n\n",
1109
- "completion": {
1110
- "label": "Minute",
1111
- "detail": "Minute(dateValue) -> Number",
1112
- "insertText": "Minute(${1:dateValue_})$0",
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": "Returnerer tiden i minutter den givne dato.\n\n**parameter**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - En datoværdi, hvorfra tiden i minutter hentes.\n\n**Returværdi**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
1428
+ "value": "**[Siden version 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nReturnerer året for den givne dato, baseret på ISO 8601-standarden for uge-dato-kalender.\n\n**parameter**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) \\| DateOnly - En datoværdi, hvorfra årstallet skal hentes.\n\n**Returværdi**: [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##### Eksempel\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**Returværdi**: [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##### Eksempel\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": "**[Siden 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**Returværdi**: [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##### Eksempel\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**Returværdi**: [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##### Eksempel\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": "**[Siden 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**Returværdi**: [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": "Returnerer måneden for den angivne dato. Værdierne går fra 0-11, hvor januar er `0`, og december er `11`.",
1132
- "examples": "\n##### Eksempel\n\nHenter måneden for den angivne dato. Returnerer 11, for december måned.\n\n```arcade\nMonth(Date(1980, 11, 31))\n```\n\n",
1544
+ "examples": "\n##### Eksempler\n\nHenter måneden for den angivne dato. Returnerer 11, for december måned.\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": "Returnerer måneden for den angivne dato. Værdierne går fra 0-11, hvor januar er `0`, og december er `11`.\n\n**parameter**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - En datoværdi, hvorfra måneden skal hentes.\n\n**Returværdi**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
1554
+ "value": "Returnerer måneden for den angivne dato. Værdierne går fra 0-11, hvor januar er `0`, og december er `11`.\n\n**parameter**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) \\| DateOnly - En datoværdi, hvorfra måneden skal hentes.\n\n**Returværdi**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
1143
1555
  }
1144
1556
  },
1145
1557
  "parametersInfo": {
@@ -1171,23 +1583,227 @@
1171
1583
  "max": 0
1172
1584
  }
1173
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##### Eksempel\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**Returværdi**: [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##### Eksempel\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": "**[Siden 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**Returværdi**: [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##### Eksempel\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": "**[Siden 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**Returværdi**: 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##### Eksempel\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": "**[Siden 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**Returværdi**: 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##### Eksempler\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": "**[Siden 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**Returværdi**: 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##### Eksempel\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": "**[Siden 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**Parametre**\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**Returværdi**: 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##### Eksempler\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": "**[Siden 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**Parametre**\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**Returværdi**: 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": "Opretter en værdi, der repræsenterer den aktuelle dato og tid i UTC.",
1771
+ "examples": "\n##### Eksempel\n\nOpretter en dato i UTC-tid\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": "**[Siden version 1.1](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nOpretter en værdi, der repræsenterer den aktuelle dato og tid i UTC.\n\n**Returværdi**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)"
1782
+ }
1783
+ },
1784
+ "parametersInfo": {
1785
+ "min": 0,
1786
+ "max": 0
1787
+ }
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": "Returnerer tiden i sekunder på den givne dato.",
1180
- "examples": "\n##### Eksempel\n\nHenter den aktuelle tid i sekunder\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##### Eksempel\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": "Returnerer tiden i sekunder den givne dato.\n\n**parameter**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - En datoværdi, hvorfra tiden i sekunder hentes.\n\n**Returværdi**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
1806
+ "value": "**[Siden 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**Returværdi**: [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": "Opretter en værdi, der repræsenterer den aktuelle dato og tid i UTC.",
1205
- "examples": "\n##### Eksempel\n\nOpretter en dato i UTC-tid\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##### Eksempel\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": "**[Siden version 1.1](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nOpretter en værdi, der repræsenterer den aktuelle dato og tid i UTC.\n\n**Returværdi**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)"
1831
+ "value": "**[Siden 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**Returværdi**: [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
  {
@@ -1301,7 +1917,7 @@
1301
1917
  "sinceVersion": "1.14",
1302
1918
  "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#week",
1303
1919
  "description": "Returnerer ugenummeret i året for den givne dato. Værdierne går fra 0-53, hvor den første uge i året er `0`, og den sidste uge i året er `51`, `52` eller `53` afhængigt af det pågældende år. Første og sidste uge er muligvis ikke hele uger på syv dage.",
1304
- "examples": "\n##### Eksempler\n\nBrug den standardmæssige start på ugen (søndag)\n\n```arcade\nWeek( Date(1974,0,3) )\n// Returns 0\n```\n\nAngiv starten af ugen til torsdag\n\n```arcade\nWeek( Date(1974,0,3), 4 )\n// Returns 1\n```\n\nAngiv starten af ugen til fredag\n\n```arcade\nWeek( Date(1974,0,3), 5 )\n// Returns 0\n```\n\n\n\n```arcade\nWeek( Date(1945,8,23) )\n// Returns 38\n```\n\n\n\n```arcade\nWeek( Date(2022,7,20) )\n// Returns 33\n```\n\n",
1920
+ "examples": "\n##### Eksempler\n\nBrug den standardmæssige start på ugen (søndag)\n\n```arcade\nWeek( Date(1974,0,3) )\n// Returns 0\n```\n\nAngiv starten af ugen til torsdag\n\n```arcade\nWeek( Date(1974,0,3), 4 )\n// Returns 1\n```\n\nAngiv starten af ugen til fredag\n\n```arcade\nWeek( Date(1974,0,3), 5 )\n// Returns 0\n```\n\n\n\n```arcade\nWeek( Date(1945,8,23) )\n// Returns 38\n```\n\n\n\n```arcade\nWeek( Date(2022,7,20) )\n// Returns 33\n```\n\nReturns the week from the DateOnly value\n\n```arcade\nWeek(DateOnly(1996, 11, 10))\n// returns 49\n```\n\n",
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": "**[Siden version 1.14](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nReturnerer ugenummeret i året for den givne dato. Værdierne går fra 0-53, hvor den første uge i året er `0`, og den sidste uge i året er `51`, `52` eller `53` afhængigt af det pågældende år. Første og sidste uge er muligvis ikke hele uger på syv dage.\n\n**Parametre**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - En datoværdi, hvorfra ugen skal hentes.\n- **startDay** (_Optional_): [Number](https://developers.arcgis.com/arcade/guide/types/#number) - Et tal, der repræsenterer den første dag i ugen. Søndag = 0, mandag = 1, tirsdag = 2, onsdag = 3, torsdag = 4, fredag = 5, lørdag = 6. Standard er `0` (søndag).\n\n**Returværdi**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
1930
+ "value": "**[Siden version 1.14](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nReturnerer ugenummeret i året for den givne dato. Værdierne går fra 0-53, hvor den første uge i året er `0`, og den sidste uge i året er `51`, `52` eller `53` afhængigt af det pågældende år. Første og sidste uge er muligvis ikke hele uger på syv dage.\n\n**Parametre**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) \\| DateOnly - En datoværdi, hvorfra ugen skal hentes.\n- **startDay** (_Optional_): [Number](https://developers.arcgis.com/arcade/guide/types/#number) - Et tal, der repræsenterer den første dag i ugen. Søndag = 0, mandag = 1, tirsdag = 2, onsdag = 3, torsdag = 4, fredag = 5, lørdag = 6. Standard er `0` (søndag).\n\n**Returværdi**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
1315
1931
  }
1316
1932
  },
1317
1933
  "parametersInfo": {
@@ -1325,7 +1941,7 @@
1325
1941
  "bundle": "core",
1326
1942
  "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#weekday",
1327
1943
  "description": "Returnerer ugedagen for den givne dato. Værdierne går fra 0-6, hvor søndag er `0`, og lørdag er `6`.",
1328
- "examples": "\n##### Eksempel\n\nReturnerer ugedagen for den givne dato. Returnerer `3` for onsdag.\n\n```arcade\nWeekday(Date(1980, 11, 31))\n```\n\n",
1944
+ "examples": "\n##### Eksempler\n\nReturnerer ugedagen for den givne dato. Returnerer `3` for onsdag.\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": "Returnerer ugedagen for den givne dato. Værdierne går fra 0-6, hvor søndag er `0`, og lørdag er `6`.\n\n**parameter**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - En datoværdi, hvorfra ugedagen skal hentes.\n\n**Returværdi**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
1954
+ "value": "Returnerer ugedagen for den givne dato. Værdierne går fra 0-6, hvor søndag er `0`, og lørdag er `6`.\n\n**parameter**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) \\| DateOnly - En datoværdi, hvorfra ugedagen skal hentes.\n\n**Returværdi**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
1339
1955
  }
1340
1956
  },
1341
1957
  "parametersInfo": {
@@ -1349,7 +1965,7 @@
1349
1965
  "bundle": "core",
1350
1966
  "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#year",
1351
1967
  "description": "Returnerer årstallet for den givne dato.",
1352
- "examples": "\n##### Eksempel\n\nHenter årstallet for den aktuelle dato\n\n```arcade\nYear(Now())\n```\n\n",
1968
+ "examples": "\n##### Eksempler\n\nHenter årstallet for den aktuelle dato\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": "Returnerer årstallet for den givne dato.\n\n**parameter**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - En datoværdi, hvorfra årstallet skal hentes.\n\n**Returværdi**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
1978
+ "value": "Returnerer årstallet for den givne dato.\n\n**parameter**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) \\| DateOnly - En datoværdi, hvorfra årstallet skal hentes.\n\n**Returværdi**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
1363
1979
  }
1364
1980
  },
1365
1981
  "parametersInfo": {
@@ -1829,6 +2445,31 @@
1829
2445
  "max": 4
1830
2446
  }
1831
2447
  },
2448
+ {
2449
+ "type": "function",
2450
+ "name": "featuresetbyrelationshipclass",
2451
+ "bundle": "data-access",
2452
+ "sinceVersion": "1.24",
2453
+ "link": "https://developers.arcgis.com/arcade/function-reference/featureset_functions/#featuresetbyrelationshipclass",
2454
+ "description": "Returns the related records for a given feature as a FeatureSet based on the class name of the relationship.",
2455
+ "examples": "\n##### Eksempel\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",
2456
+ "completion": {
2457
+ "label": "FeatureSetByRelationshipClass",
2458
+ "detail": "FeatureSetByRelationshipClass(inputFeature, relationshipClass, fieldNames?, includeGeometry?) -> FeatureSet",
2459
+ "insertText": "FeatureSetByRelationshipClass(${1:inputFeature_}, ${2:relationshipClass_})$0",
2460
+ "insertTextMode": 2,
2461
+ "insertTextFormat": 2,
2462
+ "kind": 3,
2463
+ "documentation": {
2464
+ "kind": "markdown",
2465
+ "value": "**[Siden 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**Parametre**\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**Returværdi**: [FeatureSet](https://developers.arcgis.com/arcade/guide/types/#featureset)"
2466
+ }
2467
+ },
2468
+ "parametersInfo": {
2469
+ "min": 2,
2470
+ "max": 4
2471
+ }
2472
+ },
1832
2473
  {
1833
2474
  "type": "function",
1834
2475
  "name": "featuresetbyrelationshipname",
@@ -4167,6 +4808,31 @@
4167
4808
  "max": 2
4168
4809
  }
4169
4810
  },
4811
+ {
4812
+ "type": "function",
4813
+ "name": "equals",
4814
+ "bundle": "core",
4815
+ "sinceVersion": "1.24",
4816
+ "link": "https://developers.arcgis.com/arcade/function-reference/logical_functions/#equals",
4817
+ "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.",
4818
+ "examples": "\n##### Eksempel\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",
4819
+ "completion": {
4820
+ "label": "Equals",
4821
+ "detail": "Equals(value1, value2) -> Boolean",
4822
+ "insertText": "Equals(${1:value1_}, ${2:value2_})$0",
4823
+ "insertTextMode": 2,
4824
+ "insertTextFormat": 2,
4825
+ "kind": 3,
4826
+ "documentation": {
4827
+ "kind": "markdown",
4828
+ "value": "**[Siden 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**Parametre**\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**Returværdi**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean)"
4829
+ }
4830
+ },
4831
+ "parametersInfo": {
4832
+ "min": 2,
4833
+ "max": 2
4834
+ }
4835
+ },
4170
4836
  {
4171
4837
  "type": "function",
4172
4838
  "name": "iif",
@@ -4602,7 +5268,7 @@
4602
5268
  "kind": 3,
4603
5269
  "documentation": {
4604
5270
  "kind": "markdown",
4605
- "value": "**[Siden version 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nGenererer en hash-kodeværdi for den givne variabel.\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) - Variablen skal hash'es.\n\n**Returværdi**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
5271
+ "value": "**[Siden version 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nGenererer en hash-kodeværdi for den givne variabel.\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 - Variablen skal hash'es.\n\n**Returværdi**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
4606
5272
  }
4607
5273
  },
4608
5274
  "parametersInfo": {
@@ -6531,7 +7197,7 @@
6531
7197
  "bundle": "core",
6532
7198
  "link": "https://developers.arcgis.com/arcade/function-reference/text_functions/#text",
6533
7199
  "description": "Konverterer dets argument til en streng og formaterer det eventuelt. Returnerer \\\"nul\\\", hvis det mislykkes.",
6534
- "examples": "\n##### Eksempler\n\nIndsæt nul foran tallet til venstre for decimalen\n\n```arcade\nText(123, '0000') // '0123'\n```\n\nBegræns tallet til venstre for decimalen\n\n```arcade\nText(123, '00') // '23'\n```\n\nGruppér tallet efter tusinder\n\n```arcade\nText(1234, '#,###') // '1,234'\n```\n\nAfrund tallet til to decimalpladser\n\n```arcade\nText(12345678.123, '#,###.00') // '12,345,678.12'\n```\n\nFormatér tal som valuta\n\n```arcade\nText(1234.55, '$#,###.00') // '$1,234.55'\n```\n\nAfrund tallet til to decimalpladser\n\n```arcade\nText(1.236, '#.00') // '1.24'\n```\n\nBevar signifikante cifre, og gruppér efter tusinder\n\n```arcade\nText(1234.5678, '#,##0.00#') // '1,234.568'\n```\n\nFormatér tallet, og formatér positiv/negativ - hvis der er et negativt sub-mønster, bruges det kun til at angive det negative præfiks og suffiks.\n\n```arcade\nText(-2, 'Floor #;Basement #') // 'Basement 2'\n```\n\n\n\n```arcade\nText(2, 'Floor #;Basement #') // 'Floor 2'\n```\n\nGang med 100, og formatér som procent\n\n```arcade\nText(0.3, '#%') // '30%'\n```\n\nFormater den aktuelle dato og det aktuelle klokkeslæt, f.eks. 'Tuesday, October 25, 2016 @ 08:43:11'\n\n```arcade\nText(Now(), 'dddd, MMMM D, Y @ h:m:s')\n```\n\nDato gemt i feltet 'datetime' repræsenterer allerede lokal tid, men Arcade antager, at det er UTC Forskyder den lokale tid til UTC for at undgå at anvende tidszoneforskydningen to gange.\n\n```arcade\nText(ToUTC($feature.datetime), 'dddd, MMMM D, Y @ h:m:s')\n```\n\n",
7200
+ "examples": "\n##### Eksempler\n\nIndsæt nul foran tallet til venstre for decimalen\n\n```arcade\nText(123, '0000') // '0123'\n```\n\nBegræns tallet til venstre for decimalen\n\n```arcade\nText(123, '00') // '23'\n```\n\nGruppér tallet efter tusinder\n\n```arcade\nText(1234, '#,###') // '1,234'\n```\n\nAfrund tallet til to decimalpladser\n\n```arcade\nText(12345678.123, '#,###.00') // '12,345,678.12'\n```\n\nFormatér tal som valuta\n\n```arcade\nText(1234.55, '$#,###.00') // '$1,234.55'\n```\n\nAfrund tallet til to decimalpladser\n\n```arcade\nText(1.236, '#.00') // '1.24'\n```\n\nBevar signifikante cifre, og gruppér efter tusinder\n\n```arcade\nText(1234.5678, '#,##0.00#') // '1,234.568'\n```\n\nFormatér tallet, og formatér positiv/negativ - hvis der er et negativt sub-mønster, bruges det kun til at angive det negative præfiks og suffiks.\n\n```arcade\nText(-2, 'Floor #;Basement #') // 'Basement 2'\n```\n\n\n\n```arcade\nText(2, 'Floor #;Basement #') // 'Floor 2'\n```\n\nGang med 100, og formatér som procent\n\n```arcade\nText(0.3, '#%') // '30%'\n```\n\nFormater den aktuelle dato og det aktuelle klokkeslæt, f.eks. 'Tuesday, October 25, 2016 @ 08:43:11'\n\n```arcade\nText(Now(), 'dddd, MMMM D, Y @ h:m:s')\n```\n\nDato gemt i feltet 'datetime' repræsenterer allerede lokal tid, men Arcade antager, at det er UTC Forskyder den lokale tid til UTC for at undgå at anvende tidszoneforskydningen to gange.\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",
6535
7201
  "completion": {
6536
7202
  "label": "Text",
6537
7203
  "detail": "Text(value, format?) -> Text",