@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
@@ -605,6 +605,31 @@
605
605
  "max": 4
606
606
  }
607
607
  },
608
+ {
609
+ "type": "function",
610
+ "name": "featuresetbyrelationshipclass",
611
+ "bundle": "data-access",
612
+ "sinceVersion": "1.24",
613
+ "link": "https://developers.arcgis.com/arcade/function-reference/featureset_functions/#featuresetbyrelationshipclass",
614
+ "description": "Returns the related records for a given feature as a FeatureSet based on the class name of the relationship.",
615
+ "examples": "\n##### Esimerkki\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",
616
+ "completion": {
617
+ "label": "FeatureSetByRelationshipClass",
618
+ "detail": "FeatureSetByRelationshipClass(inputFeature, relationshipClass, fieldNames?, includeGeometry?) -> FeatureSet",
619
+ "insertText": "FeatureSetByRelationshipClass(${1:inputFeature_}, ${2:relationshipClass_})$0",
620
+ "insertTextMode": 2,
621
+ "insertTextFormat": 2,
622
+ "kind": 3,
623
+ "documentation": {
624
+ "kind": "markdown",
625
+ "value": "**[Lähtien versiosta 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**Parametrit**\n\n- **inputFeature**: [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - The feature from which to fetch related records. This feature must come from a feature service; feature collections are not supported.\n- **relationshipClass**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - The class name of the relationship according to the feature service associated with the given feature.\n- **fieldNames** (_Optional_): [Array](https://developers.arcgis.com/arcade/guide/types/#array)<[Text](https://developers.arcgis.com/arcade/guide/types/#text)> - The fields to return in the FeatureSet. This list includes fields from both the relationship table and the input Feature.\n- **includeGeometry** (_Optional_): [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean) - Indicates whether to return the geometry for the resulting features.\n\n**Palauta arvo**: [FeatureSet](https://developers.arcgis.com/arcade/guide/types/#featureset)"
626
+ }
627
+ },
628
+ "parametersInfo": {
629
+ "min": 2,
630
+ "max": 4
631
+ }
632
+ },
608
633
  {
609
634
  "type": "function",
610
635
  "name": "featuresetbyrelationshipname",
@@ -3243,6 +3268,31 @@
3243
3268
  "max": 2
3244
3269
  }
3245
3270
  },
3271
+ {
3272
+ "type": "function",
3273
+ "name": "equals",
3274
+ "bundle": "core",
3275
+ "sinceVersion": "1.24",
3276
+ "link": "https://developers.arcgis.com/arcade/function-reference/logical_functions/#equals",
3277
+ "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.",
3278
+ "examples": "\n##### Esimerkki\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",
3279
+ "completion": {
3280
+ "label": "Equals",
3281
+ "detail": "Equals(value1, value2) -> Boolean",
3282
+ "insertText": "Equals(${1:value1_}, ${2:value2_})$0",
3283
+ "insertTextMode": 2,
3284
+ "insertTextFormat": 2,
3285
+ "kind": 3,
3286
+ "documentation": {
3287
+ "kind": "markdown",
3288
+ "value": "**[Lähtien versiosta 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**Parametrit**\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**Palauta arvo**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean)"
3289
+ }
3290
+ },
3291
+ "parametersInfo": {
3292
+ "min": 2,
3293
+ "max": 2
3294
+ }
3295
+ },
3246
3296
  {
3247
3297
  "type": "function",
3248
3298
  "name": "iif",
@@ -3678,7 +3728,7 @@
3678
3728
  "kind": 3,
3679
3729
  "documentation": {
3680
3730
  "kind": "markdown",
3681
- "value": "**[Lähtien versiosta 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nLuo hajautuskoodiarvon annetulle muuttujalle.\n\n**Parametri**\n\n- **value**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) \\| [Number](https://developers.arcgis.com/arcade/guide/types/#number) \\| [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean) \\| [Date](https://developers.arcgis.com/arcade/guide/types/#date) \\| [Array](https://developers.arcgis.com/arcade/guide/types/#array)<[Any](https://developers.arcgis.com/arcade/guide/types/#any)> \\| [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) \\| [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) - Muuttuja, jonka hajautusarvo lasketaan.\n\n**Palauta arvo**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
3731
+ "value": "**[Lähtien versiosta 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nLuo hajautuskoodiarvon annetulle muuttujalle.\n\n**Parametri**\n\n- **value**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) \\| [Number](https://developers.arcgis.com/arcade/guide/types/#number) \\| [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean) \\| [Date](https://developers.arcgis.com/arcade/guide/types/#date) \\| [Array](https://developers.arcgis.com/arcade/guide/types/#array)<[Any](https://developers.arcgis.com/arcade/guide/types/#any)> \\| [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) \\| [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) \\| DateOnly \\| Time - Muuttuja, jonka hajautusarvo lasketaan.\n\n**Palauta arvo**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
3682
3732
  }
3683
3733
  },
3684
3734
  "parametersInfo": {
@@ -4842,29 +4892,54 @@
4842
4892
  "id": "date_functions",
4843
4893
  "title": "Päivämääräfunktiot",
4844
4894
  "items": [
4895
+ {
4896
+ "type": "function",
4897
+ "name": "changetimezone",
4898
+ "bundle": "core",
4899
+ "sinceVersion": "1.24",
4900
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#changetimezone",
4901
+ "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`.",
4902
+ "examples": "\n##### Esimerkit\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",
4903
+ "completion": {
4904
+ "label": "ChangeTimeZone",
4905
+ "detail": "ChangeTimeZone(dateValue, newTimeZone) -> Date",
4906
+ "insertText": "ChangeTimeZone(${1:dateValue_}, ${2:newTimeZone_})$0",
4907
+ "insertTextMode": 2,
4908
+ "insertTextFormat": 2,
4909
+ "kind": 3,
4910
+ "documentation": {
4911
+ "kind": "markdown",
4912
+ "value": "**[Lähtien versiosta 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**Parametrit**\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**Palauta arvo**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)"
4913
+ }
4914
+ },
4915
+ "parametersInfo": {
4916
+ "min": 2,
4917
+ "max": 2
4918
+ }
4919
+ },
4845
4920
  [
4846
4921
  {
4847
4922
  "type": "function",
4848
4923
  "name": "date",
4849
4924
  "bundle": "core",
4850
4925
  "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#date1",
4851
- "description": "Luo päivämääräobjektin parametriryhmästä. Päivämäärät luodaan oletuksena asiakasohjelman tai järjestelmän paikallisessa ajassa.",
4852
- "examples": "\n##### Esimerkit\n\nLuo päivämäärän, joka edustaa tiettyä aikaa Arcadea käyttävän järjestelmän paikallisessa ajassa.\n\n```arcade\n// Date that represents Jun 02, 1987, 12:00:00 AM PST\nDate(1987,05,02)\n```\n\nLuo päivämäärän, joka edustaa nykyistä aikaa Arcadea käyttävän järjestelmän paikallisessa ajassa.\n\n```arcade\n// Date represents Jan 27, 2023, 12:41:20 PM PST\nDate()\n```\n\n",
4926
+ "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.",
4927
+ "examples": "\n##### Esimerkit\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",
4853
4928
  "completion": {
4854
4929
  "label": "Date",
4855
- "detail": "Date(year, month, day, hour?, minute?, second?, millisecond?) -> Date",
4930
+ "detail": "Date(year, month, day, hour?, minute?, second?, millisecond?, timeZone?) -> Date",
4856
4931
  "insertText": "Date(${1:year_}, ${2:month_}, ${3:day_})$0",
4857
4932
  "insertTextMode": 2,
4858
4933
  "insertTextFormat": 2,
4859
4934
  "kind": 3,
4860
4935
  "documentation": {
4861
4936
  "kind": "markdown",
4862
- "value": "Luo päivämääräobjektin parametriryhmästä. Päivämäärät luodaan oletuksena asiakasohjelman tai järjestelmän paikallisessa ajassa.\n\n**Parametrit**\n\n- **year**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - Vuotta edustava numero.\n- **month**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - Kuukausi (011), jossa tammikuu on 0 ja joulukuu 11.\n- **day**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - Kuukaudenpäivä (131).\n- **hour** (_Optional_): [Number](https://developers.arcgis.com/arcade/guide/types/#number) - Tuntilukema (023).\n- **minute** (_Optional_): [Number](https://developers.arcgis.com/arcade/guide/types/#number) - Minuuttilukema (059).\n- **second** (_Optional_): [Number](https://developers.arcgis.com/arcade/guide/types/#number) - Sekuntilukema (059).\n- **millisecond** (_Optional_): [Number](https://developers.arcgis.com/arcade/guide/types/#number) - Millisekuntilukema (0999).\n\n**Palauta arvo**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)"
4937
+ "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**Parametrit**\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**Palauta arvo**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)"
4863
4938
  }
4864
4939
  },
4865
4940
  "parametersInfo": {
4866
4941
  "min": 3,
4867
- "max": 7
4942
+ "max": 8
4868
4943
  }
4869
4944
  },
4870
4945
  {
@@ -4872,8 +4947,8 @@
4872
4947
  "name": "date",
4873
4948
  "bundle": "core",
4874
4949
  "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#date2",
4875
- "description": "Luo päivämäärän, jossa käytetään annettua Unix-alkukohdan numeroa asiakasohjelman tai järjestelmän paikallisessa aikavyöhykkeessä.",
4876
- "examples": "\n##### Esimerkki\n\nMillisekuntia 1.1.1970 lähtien\n\n```arcade\nDate(1476987783555) // 'Thu Oct 20 2016 11:23:03 GMT-0700 (PDT)'\n```\n\n",
4950
+ "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.",
4951
+ "examples": "\n##### Esimerkit\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",
4877
4952
  "completion": {
4878
4953
  "label": "Date",
4879
4954
  "detail": "Date(epoch?) -> Date",
@@ -4883,7 +4958,7 @@
4883
4958
  "kind": 3,
4884
4959
  "documentation": {
4885
4960
  "kind": "markdown",
4886
- "value": "Luo päivämäärän, jossa käytetään annettua Unix-alkukohdan numeroa asiakasohjelman tai järjestelmän paikallisessa aikavyöhykkeessä.\n\n**Parametri**\n\n- **epoch** (_Optional_): [Number](https://developers.arcgis.com/arcade/guide/types/#number) - Millisekuntien määrä 1.1.1970 (UTC) jälkeen.\n\n**Palauta arvo**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)"
4961
+ "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**Parametri**\n\n- **epoch** (_Optional_): [Number](https://developers.arcgis.com/arcade/guide/types/#number) - The number of milliseconds since January 1, 1970 UTC.\n\n**Palauta arvo**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)"
4887
4962
  }
4888
4963
  },
4889
4964
  "parametersInfo": {
@@ -4896,8 +4971,8 @@
4896
4971
  "name": "date",
4897
4972
  "bundle": "core",
4898
4973
  "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#date3",
4899
- "description": "Muuntaa ISO 8601 -tekstiarvon päivämääräobjektiksi asiakasohjelman tai järjestelmän paikallisessa aikavyöhykkeessä.",
4900
- "examples": "\n##### Esimerkki\n\nISO 8601 -tekstiarvo\n\n```arcade\nDate('2016-10-20T17:41:37+00:00') // 'Thu Oct 20 2016 10:41:37 GMT-0700 (PDT)'\n```\n\n",
4974
+ "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.",
4975
+ "examples": "\n##### Esimerkit\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",
4901
4976
  "completion": {
4902
4977
  "label": "Date",
4903
4978
  "detail": "Date(timestamp?) -> Date",
@@ -4907,154 +4982,386 @@
4907
4982
  "kind": 3,
4908
4983
  "documentation": {
4909
4984
  "kind": "markdown",
4910
- "value": "Muuntaa ISO 8601 -tekstiarvon päivämääräobjektiksi asiakasohjelman tai järjestelmän paikallisessa aikavyöhykkeessä.\n\n**Parametri**\n\n- **timestamp** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) - Päivämääräksi muunnettava ISO 8601 -tekstiarvo.\n\n**Palauta arvo**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)"
4985
+ "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**Parametri**\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**Palauta arvo**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)"
4911
4986
  }
4912
4987
  },
4913
4988
  "parametersInfo": {
4914
4989
  "min": 0,
4915
4990
  "max": 1
4916
4991
  }
4917
- }
4918
- ],
4919
- {
4920
- "type": "function",
4921
- "name": "dateadd",
4922
- "bundle": "core",
4923
- "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#dateadd",
4924
- "description": "Lisää päivämäärään määritettyjen aikayksikköjen mukaisen ajan ja palauttaa uuden päivämäärän.",
4925
- "examples": "\n##### Esimerkki\n\nLisää määritetyn kentän arvoon 7 päivää\n\n```arcade\nvar startDate = Date($feature.dateField);\nvar oneWeekLater = DateAdd(startDate, 7, 'days');\nreturn oneWeekLater;\n```\n\n",
4926
- "completion": {
4927
- "label": "DateAdd",
4928
- "detail": "DateAdd(dateValue, addValue, units?) -> Date",
4929
- "insertText": "DateAdd(${1:dateValue_}, ${2:addValue_})$0",
4930
- "insertTextMode": 2,
4931
- "insertTextFormat": 2,
4932
- "kind": 3,
4933
- "documentation": {
4934
- "kind": "markdown",
4935
- "value": "Lisää päivämäärään määritettyjen aikayksikköjen mukaisen ajan ja palauttaa uuden päivämäärän.\n\n**Parametrit**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - Syötepäivämäärä, johon lisätään aikaa.\n- **addValue**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - Arvo, jonka mukainen määrä määritettyjä mittayksiköitä päivämäärään lisätään.\n- **units** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) - Numeroyksiköt, joita käytetään päivämäärän lisäämisessä. Oletus on millisekuntia. Tuettuja yksikkötyyppejä ovat millisekunnit, sekunnit, minuutit, tunnit, päivät, kuukaudet ja vuodet.\n\n**Palauta arvo**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)"
4992
+ },
4993
+ {
4994
+ "type": "function",
4995
+ "name": "date",
4996
+ "bundle": "core",
4997
+ "sinceVersion": "1.24",
4998
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#date4",
4999
+ "description": "Creates a Date from a DateOnly value, with an optional Time and time zone value.",
5000
+ "examples": "\n##### Esimerkki\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",
5001
+ "completion": {
5002
+ "label": "Date",
5003
+ "detail": "Date(dateOnlyValue, timeValue?, timeZone?) -> Date",
5004
+ "insertText": "Date(${1:dateOnlyValue_})$0",
5005
+ "insertTextMode": 2,
5006
+ "insertTextFormat": 2,
5007
+ "kind": 3,
5008
+ "documentation": {
5009
+ "kind": "markdown",
5010
+ "value": "**[Lähtien versiosta 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**Parametrit**\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**Palauta arvo**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)"
5011
+ }
5012
+ },
5013
+ "parametersInfo": {
5014
+ "min": 1,
5015
+ "max": 3
4936
5016
  }
4937
5017
  },
4938
- "parametersInfo": {
4939
- "min": 2,
4940
- "max": 3
5018
+ {
5019
+ "type": "function",
5020
+ "name": "date",
5021
+ "bundle": "core",
5022
+ "sinceVersion": "1.24",
5023
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#date5",
5024
+ "description": "Creates a copy of the given Date.",
5025
+ "examples": "\n##### Esimerkki\n\nCreates a copy of the current Date value\n\n```arcade\nvar copiedDate = Date(Now())\n```\n\n",
5026
+ "completion": {
5027
+ "label": "Date",
5028
+ "detail": "Date(dateValue) -> Date",
5029
+ "insertText": "Date(${1:dateValue_})$0",
5030
+ "insertTextMode": 2,
5031
+ "insertTextFormat": 2,
5032
+ "kind": 3,
5033
+ "documentation": {
5034
+ "kind": "markdown",
5035
+ "value": "**[Lähtien versiosta 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nCreates a copy of the given Date.\n\n**Parametri**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - The Date to copy.\n\n**Palauta arvo**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)"
5036
+ }
5037
+ },
5038
+ "parametersInfo": {
5039
+ "min": 1,
5040
+ "max": 1
5041
+ }
4941
5042
  }
4942
- },
4943
- {
4944
- "type": "function",
4945
- "name": "datediff",
4946
- "bundle": "core",
4947
- "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#datediff",
4948
- "description": "Laskee kahden päivämäärän välisen aikaeron ja palauttaa sen määritetyn aikayksikön mukaisena arvona.",
4949
- "examples": "\n##### Esimerkki\n\nLaskee kahden päivämäärän välisen aikaeron ja palauttaa iän\n\n```arcade\nvar startDate = Date($feature.startDateField);\nvar endDate = Date($feature.endDateField);\nvar age = DateDiff(endDate, startDate, 'years');\nreturn age;\n```\n\n",
4950
- "completion": {
4951
- "label": "DateDiff",
4952
- "detail": "DateDiff(date1, date2, units?) -> Number",
4953
- "insertText": "DateDiff(${1:date1_}, ${2:date2_})$0",
4954
- "insertTextMode": 2,
4955
- "insertTextFormat": 2,
4956
- "kind": 3,
4957
- "documentation": {
4958
- "kind": "markdown",
4959
- "value": "Laskee kahden päivämäärän välisen aikaeron ja palauttaa sen määritetyn aikayksikön mukaisena arvona.\n\n**Parametrit**\n\n- **date1**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - Päivämäärä, josta toinen päivämäärä vähennetään.\n- **date2**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - Päivämäärä, joka vähennetään ensimmäisestä määritetystä päivämäärästä.\n- **units** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) - Yksiköt, joina kahden määritetyn päivämäärän ero palautetaan. Tuettuja yksikkötyyppejä ovat millisekunnit, sekunnit, minuutit, tunnit, päivät, kuukaudet ja vuodet. Oletusarvo on millisekuntia.\n\n**Palauta arvo**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
5043
+ ],
5044
+ [
5045
+ {
5046
+ "type": "function",
5047
+ "name": "dateadd",
5048
+ "bundle": "core",
5049
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#dateadd1",
5050
+ "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.",
5051
+ "examples": "\n##### Esimerkki\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",
5052
+ "completion": {
5053
+ "label": "DateAdd",
5054
+ "detail": "DateAdd(dateValue, addValue, units?) -> Date",
5055
+ "insertText": "DateAdd(${1:dateValue_}, ${2:addValue_})$0",
5056
+ "insertTextMode": 2,
5057
+ "insertTextFormat": 2,
5058
+ "kind": 3,
5059
+ "documentation": {
5060
+ "kind": "markdown",
5061
+ "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**Parametrit**\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**Palauta arvo**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)"
5062
+ }
5063
+ },
5064
+ "parametersInfo": {
5065
+ "min": 2,
5066
+ "max": 3
4960
5067
  }
4961
5068
  },
4962
- "parametersInfo": {
4963
- "min": 2,
4964
- "max": 3
4965
- }
4966
- },
4967
- {
4968
- "type": "function",
4969
- "name": "day",
4970
- "bundle": "core",
4971
- "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#day",
4972
- "description": "Palauttaa määritetyn päivämäärän kuukaudenpäivän.",
4973
- "examples": "\n##### Esimerkki\n\nNoutaa nykyisen päivämäärän kuukaudenpäivän\n\n```arcade\nDay(Now())\n```\n\n",
4974
- "completion": {
4975
- "label": "Day",
4976
- "detail": "Day(dateValue) -> Number",
4977
- "insertText": "Day(${1:dateValue_})$0",
4978
- "insertTextMode": 2,
4979
- "insertTextFormat": 2,
4980
- "kind": 3,
4981
- "documentation": {
4982
- "kind": "markdown",
4983
- "value": "Palauttaa määritetyn päivämäärän kuukaudenpäivän.\n\n**Parametri**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - Päivämääräarvo, josta kuukaudenpäivä poimitaan.\n\n**Palauta arvo**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
5069
+ {
5070
+ "type": "function",
5071
+ "name": "dateadd",
5072
+ "bundle": "core",
5073
+ "sinceVersion": "1.24",
5074
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#dateadd2",
5075
+ "description": "Adds a specified amount of time in the given units to a DateOnly value and returns a new DateOnly value.",
5076
+ "examples": "\n##### Esimerkit\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",
5077
+ "completion": {
5078
+ "label": "DateAdd",
5079
+ "detail": "DateAdd(dateOnlyValue, addValue, units?) -> DateOnly",
5080
+ "insertText": "DateAdd(${1:dateOnlyValue_}, ${2:addValue_})$0",
5081
+ "insertTextMode": 2,
5082
+ "insertTextFormat": 2,
5083
+ "kind": 3,
5084
+ "documentation": {
5085
+ "kind": "markdown",
5086
+ "value": "**[Lähtien versiosta 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**Parametrit**\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**Palauta arvo**: DateOnly"
5087
+ }
5088
+ },
5089
+ "parametersInfo": {
5090
+ "min": 2,
5091
+ "max": 3
4984
5092
  }
4985
5093
  },
4986
- "parametersInfo": {
4987
- "min": 1,
4988
- "max": 1
5094
+ {
5095
+ "type": "function",
5096
+ "name": "dateadd",
5097
+ "bundle": "core",
5098
+ "sinceVersion": "1.24",
5099
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#dateadd3",
5100
+ "description": "Adds a specified amount of time in the given units to a Time value and returns a new Time value.",
5101
+ "examples": "\n##### Esimerkit\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",
5102
+ "completion": {
5103
+ "label": "DateAdd",
5104
+ "detail": "DateAdd(timeValue, addValue, units?) -> Time",
5105
+ "insertText": "DateAdd(${1:timeValue_}, ${2:addValue_})$0",
5106
+ "insertTextMode": 2,
5107
+ "insertTextFormat": 2,
5108
+ "kind": 3,
5109
+ "documentation": {
5110
+ "kind": "markdown",
5111
+ "value": "**[Lähtien versiosta 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**Parametrit**\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**Palauta arvo**: Time"
5112
+ }
5113
+ },
5114
+ "parametersInfo": {
5115
+ "min": 2,
5116
+ "max": 3
5117
+ }
4989
5118
  }
4990
- },
4991
- {
4992
- "type": "function",
4993
- "name": "hour",
4994
- "bundle": "core",
4995
- "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#hour",
4996
- "description": "Palauttaa määritetyn päivämäärän tuntilukeman (0–23).",
4997
- "examples": "\n##### Esimerkki\n\nNoutaa nykyisen kellonajan tuntilukeman\n\n```arcade\nHour(Now())\n```\n\n",
4998
- "completion": {
4999
- "label": "Hour",
5000
- "detail": "Hour(dateValue) -> Number",
5001
- "insertText": "Hour(${1:dateValue_})$0",
5002
- "insertTextMode": 2,
5003
- "insertTextFormat": 2,
5004
- "kind": 3,
5005
- "documentation": {
5006
- "kind": "markdown",
5007
- "value": "Palauttaa määritetyn päivämäärän tuntilukeman (0–23).\n\n**Parametri**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - Päivämääräarvo, josta tuntilukema poimitaan.\n\n**Palauta arvo**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
5119
+ ],
5120
+ [
5121
+ {
5122
+ "type": "function",
5123
+ "name": "datediff",
5124
+ "bundle": "core",
5125
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#datediff1",
5126
+ "description": "Subtracts two Dates, and returns the difference in the specified units.",
5127
+ "examples": "\n##### Esimerkit\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",
5128
+ "completion": {
5129
+ "label": "DateDiff",
5130
+ "detail": "DateDiff(date1, date2, units?, timeZone?) -> Number",
5131
+ "insertText": "DateDiff(${1:date1_}, ${2:date2_})$0",
5132
+ "insertTextMode": 2,
5133
+ "insertTextFormat": 2,
5134
+ "kind": 3,
5135
+ "documentation": {
5136
+ "kind": "markdown",
5137
+ "value": "Subtracts two Dates, and returns the difference in the specified units.\n\n**Parametrit**\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**Palauta arvo**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
5138
+ }
5139
+ },
5140
+ "parametersInfo": {
5141
+ "min": 2,
5142
+ "max": 4
5008
5143
  }
5009
5144
  },
5010
- "parametersInfo": {
5011
- "min": 1,
5012
- "max": 1
5013
- }
5014
- },
5015
- {
5016
- "type": "function",
5017
- "name": "isomonth",
5018
- "bundle": "core",
5019
- "sinceVersion": "1.12",
5020
- "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#isomonth",
5021
- "description": "Palauttaa annetun päivämäärän kuukauden ISO 8601 -standardin perusteella. Arvoväli on 1–12, jossa tammikuu on 1 ja joulukuu on 12.",
5022
- "examples": "\n##### Esimerkki\n\nNoutaa annetun päivämäärän kuukauden ISO 8601 -standardin perusteella. Palauttaa arvon 12 kuukaudelle nimeltä joulukuu.\n\n```arcade\nISOMonth(Date(1980, 11, 31))\n```\n\n",
5023
- "completion": {
5024
- "label": "ISOMonth",
5025
- "detail": "ISOMonth(dateValue) -> Number",
5026
- "insertText": "ISOMonth(${1:dateValue_})$0",
5027
- "insertTextMode": 2,
5028
- "insertTextFormat": 2,
5029
- "kind": 3,
5030
- "documentation": {
5031
- "kind": "markdown",
5032
- "value": "**[Lähtien versiosta 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nPalauttaa annetun päivämäärän kuukauden ISO 8601 -standardin perusteella. Arvoväli on 1–12, jossa tammikuu on 1 ja joulukuu on 12.\n\n**Parametri**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - Päivämääräarvo, josta kuukausi poimitaan.\n\n**Palauta arvo**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
5145
+ {
5146
+ "type": "function",
5147
+ "name": "datediff",
5148
+ "bundle": "core",
5149
+ "sinceVersion": "1.24",
5150
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#datediff2",
5151
+ "description": "Subtracts two DateOnly values, and returns the difference in the specified units.",
5152
+ "examples": "\n##### Esimerkki\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",
5153
+ "completion": {
5154
+ "label": "DateDiff",
5155
+ "detail": "DateDiff(dateOnly1, dateOnly2, units?) -> Number",
5156
+ "insertText": "DateDiff(${1:dateOnly1_}, ${2:dateOnly2_})$0",
5157
+ "insertTextMode": 2,
5158
+ "insertTextFormat": 2,
5159
+ "kind": 3,
5160
+ "documentation": {
5161
+ "kind": "markdown",
5162
+ "value": "**[Lähtien versiosta 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**Parametrit**\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**Palauta arvo**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
5163
+ }
5164
+ },
5165
+ "parametersInfo": {
5166
+ "min": 2,
5167
+ "max": 3
5033
5168
  }
5034
5169
  },
5035
- "parametersInfo": {
5036
- "min": 1,
5037
- "max": 1
5170
+ {
5171
+ "type": "function",
5172
+ "name": "datediff",
5173
+ "bundle": "core",
5174
+ "sinceVersion": "1.24",
5175
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#datediff3",
5176
+ "description": "Subtracts two Time values, and returns the difference in the specified units.",
5177
+ "examples": "\n##### Esimerkki\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",
5178
+ "completion": {
5179
+ "label": "DateDiff",
5180
+ "detail": "DateDiff(time1, time2, units?) -> Number",
5181
+ "insertText": "DateDiff(${1:time1_}, ${2:time2_})$0",
5182
+ "insertTextMode": 2,
5183
+ "insertTextFormat": 2,
5184
+ "kind": 3,
5185
+ "documentation": {
5186
+ "kind": "markdown",
5187
+ "value": "**[Lähtien versiosta 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**Parametrit**\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**Palauta arvo**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
5188
+ }
5189
+ },
5190
+ "parametersInfo": {
5191
+ "min": 2,
5192
+ "max": 3
5193
+ }
5038
5194
  }
5039
- },
5040
- {
5195
+ ],
5196
+ [
5197
+ {
5198
+ "type": "function",
5199
+ "name": "dateonly",
5200
+ "bundle": "core",
5201
+ "sinceVersion": "1.24",
5202
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#dateonly1",
5203
+ "description": "Creates a DateOnly value based on the current date in the time zone of the profile's execution context.",
5204
+ "examples": "\n##### Esimerkki\n\nReturns the current DateOnly (no time)\n\n```arcade\nDateOnly()\n// returns the current date, i.e. 2023-09-12\n```\n\n",
5205
+ "completion": {
5206
+ "label": "DateOnly",
5207
+ "detail": "DateOnly() -> DateOnly",
5208
+ "insertText": "DateOnly($0)",
5209
+ "insertTextMode": 2,
5210
+ "insertTextFormat": 2,
5211
+ "kind": 3,
5212
+ "documentation": {
5213
+ "kind": "markdown",
5214
+ "value": "**[Lähtien versiosta 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**Palauta arvo**: DateOnly"
5215
+ }
5216
+ },
5217
+ "parametersInfo": {
5218
+ "min": 0,
5219
+ "max": 0
5220
+ }
5221
+ },
5222
+ {
5223
+ "type": "function",
5224
+ "name": "dateonly",
5225
+ "bundle": "core",
5226
+ "sinceVersion": "1.24",
5227
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#dateonly2",
5228
+ "description": "Creates a DateOnly value from a given date.",
5229
+ "examples": "\n##### Esimerkki\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",
5230
+ "completion": {
5231
+ "label": "DateOnly",
5232
+ "detail": "DateOnly(dateValue) -> DateOnly",
5233
+ "insertText": "DateOnly(${1:dateValue_})$0",
5234
+ "insertTextMode": 2,
5235
+ "insertTextFormat": 2,
5236
+ "kind": 3,
5237
+ "documentation": {
5238
+ "kind": "markdown",
5239
+ "value": "**[Lähtien versiosta 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nCreates a DateOnly value from a given date.\n\n**Parametri**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - The date from which to create the DateOnly value.\n\n**Palauta arvo**: DateOnly"
5240
+ }
5241
+ },
5242
+ "parametersInfo": {
5243
+ "min": 1,
5244
+ "max": 1
5245
+ }
5246
+ },
5247
+ {
5248
+ "type": "function",
5249
+ "name": "dateonly",
5250
+ "bundle": "core",
5251
+ "sinceVersion": "1.24",
5252
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#dateonly3",
5253
+ "description": "Creates a DateOnly date with the given Unix epoch number.",
5254
+ "examples": "\n##### Esimerkki\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",
5255
+ "completion": {
5256
+ "label": "DateOnly",
5257
+ "detail": "DateOnly(epoch) -> DateOnly",
5258
+ "insertText": "DateOnly(${1:epoch_})$0",
5259
+ "insertTextMode": 2,
5260
+ "insertTextFormat": 2,
5261
+ "kind": 3,
5262
+ "documentation": {
5263
+ "kind": "markdown",
5264
+ "value": "**[Lähtien versiosta 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nCreates a DateOnly date with the given Unix epoch number.\n\n**Parametri**\n\n- **epoch**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - The number of milliseconds since January 1, 1970 UTC.\n\n**Palauta arvo**: DateOnly"
5265
+ }
5266
+ },
5267
+ "parametersInfo": {
5268
+ "min": 1,
5269
+ "max": 1
5270
+ }
5271
+ },
5272
+ {
5273
+ "type": "function",
5274
+ "name": "dateonly",
5275
+ "bundle": "core",
5276
+ "sinceVersion": "1.24",
5277
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#dateonly4",
5278
+ "description": "Creates a DateOnly value from inputs representing the year, month, and day.",
5279
+ "examples": "\n##### Esimerkki\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",
5280
+ "completion": {
5281
+ "label": "DateOnly",
5282
+ "detail": "DateOnly(year, month, day) -> DateOnly",
5283
+ "insertText": "DateOnly(${1:year_}, ${2:month_}, ${3:day_})$0",
5284
+ "insertTextMode": 2,
5285
+ "insertTextFormat": 2,
5286
+ "kind": 3,
5287
+ "documentation": {
5288
+ "kind": "markdown",
5289
+ "value": "**[Lähtien versiosta 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**Parametrit**\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**Palauta arvo**: DateOnly"
5290
+ }
5291
+ },
5292
+ "parametersInfo": {
5293
+ "min": 3,
5294
+ "max": 3
5295
+ }
5296
+ },
5297
+ {
5298
+ "type": "function",
5299
+ "name": "dateonly",
5300
+ "bundle": "core",
5301
+ "sinceVersion": "1.24",
5302
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#dateonly5",
5303
+ "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.",
5304
+ "examples": "\n##### Esimerkit\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",
5305
+ "completion": {
5306
+ "label": "DateOnly",
5307
+ "detail": "DateOnly(dateValue, format?) -> DateOnly",
5308
+ "insertText": "DateOnly(${1:dateValue_})$0",
5309
+ "insertTextMode": 2,
5310
+ "insertTextFormat": 2,
5311
+ "kind": 3,
5312
+ "documentation": {
5313
+ "kind": "markdown",
5314
+ "value": "**[Lähtien versiosta 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**Parametrit**\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**Palauta arvo**: DateOnly"
5315
+ }
5316
+ },
5317
+ "parametersInfo": {
5318
+ "min": 1,
5319
+ "max": 2
5320
+ }
5321
+ },
5322
+ {
5323
+ "type": "function",
5324
+ "name": "dateonly",
5325
+ "bundle": "core",
5326
+ "sinceVersion": "1.24",
5327
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#dateonly6",
5328
+ "description": "Creates a copy of a DateOnly value.",
5329
+ "examples": "\n##### Esimerkki\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",
5330
+ "completion": {
5331
+ "label": "DateOnly",
5332
+ "detail": "DateOnly(dateOnlyValue) -> DateOnly",
5333
+ "insertText": "DateOnly(${1:dateOnlyValue_})$0",
5334
+ "insertTextMode": 2,
5335
+ "insertTextFormat": 2,
5336
+ "kind": 3,
5337
+ "documentation": {
5338
+ "kind": "markdown",
5339
+ "value": "**[Lähtien versiosta 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nCreates a copy of a DateOnly value.\n\n**Parametri**\n\n- **dateOnlyValue**: DateOnly - The DateOnly value to copy.\n\n**Palauta arvo**: DateOnly"
5340
+ }
5341
+ },
5342
+ "parametersInfo": {
5343
+ "min": 1,
5344
+ "max": 1
5345
+ }
5346
+ }
5347
+ ],
5348
+ {
5041
5349
  "type": "function",
5042
- "name": "isoweek",
5350
+ "name": "day",
5043
5351
  "bundle": "core",
5044
- "sinceVersion": "1.12",
5045
- "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#isoweek",
5046
- "description": "Palauttaa viikon numeron annetulle päivämäärälle ISO 8601 -standardin mukaisen viikko-päivämäärä-kalenterin perusteella. Arvoväli on 1–53, jossa vuoden ensimmäisen viikko on 1 ja vuoden viimeinen viikko on 52 tai 53 vuoden mukaan.",
5047
- "examples": "\n##### Esimerkki\n\nNoutaa annetun päivämäärän viikon ISO 8601 -standardin perusteella. Palauttaa arvon 1, koska tämä päivämäärä sisältyy seuraavan vuoden ensimmäiseen viikkoon.\n\n```arcade\nISOWeek(Date(1980, 11, 31))\n```\n\n",
5352
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#day",
5353
+ "description": "Palauttaa määritetyn päivämäärän kuukaudenpäivän.",
5354
+ "examples": "\n##### Esimerkit\n\nNoutaa nykyisen päivämäärän kuukaudenpäivän\n\n```arcade\nDay(Now())\n```\n\nReturns the day of the month from a DateOnly value\n\n```arcade\nDay(DateOnly(1996, 11, 10))\n// returns 10\n```\n\n",
5048
5355
  "completion": {
5049
- "label": "ISOWeek",
5050
- "detail": "ISOWeek(dateValue) -> Number",
5051
- "insertText": "ISOWeek(${1:dateValue_})$0",
5356
+ "label": "Day",
5357
+ "detail": "Day(dateValue) -> Number",
5358
+ "insertText": "Day(${1:dateValue_})$0",
5052
5359
  "insertTextMode": 2,
5053
5360
  "insertTextFormat": 2,
5054
5361
  "kind": 3,
5055
5362
  "documentation": {
5056
5363
  "kind": "markdown",
5057
- "value": "**[Lähtien versiosta 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nPalauttaa viikon numeron annetulle päivämäärälle ISO 8601 -standardin mukaisen viikko-päivämäärä-kalenterin perusteella. Arvoväli on 1–53, jossa vuoden ensimmäisen viikko on 1 ja vuoden viimeinen viikko on 52 tai 53 vuoden mukaan.\n\n**Parametri**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - Päivämääräarvo, jonka perusteella viikko haetaan.\n\n**Palauta arvo**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
5364
+ "value": "Palauttaa määritetyn päivämäärän kuukaudenpäivän.\n\n**Parametri**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) \\| DateOnly - Päivämääräarvo, josta kuukaudenpäivä poimitaan.\n\n**Palauta arvo**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
5058
5365
  }
5059
5366
  },
5060
5367
  "parametersInfo": {
@@ -5062,24 +5369,75 @@
5062
5369
  "max": 1
5063
5370
  }
5064
5371
  },
5372
+ [
5373
+ {
5374
+ "type": "function",
5375
+ "name": "hour",
5376
+ "bundle": "core",
5377
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#hour1",
5378
+ "description": "Returns the hour of the time in the given date (0-23).",
5379
+ "examples": "\n##### Esimerkki\n\nGets the hour of the current time\n\n```arcade\nHour(Now())\n```\n\n",
5380
+ "completion": {
5381
+ "label": "Hour",
5382
+ "detail": "Hour(dateValue) -> Number",
5383
+ "insertText": "Hour(${1:dateValue_})$0",
5384
+ "insertTextMode": 2,
5385
+ "insertTextFormat": 2,
5386
+ "kind": 3,
5387
+ "documentation": {
5388
+ "kind": "markdown",
5389
+ "value": "Returns the hour of the time in the given date (0-23).\n\n**Parametri**\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**Palauta arvo**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
5390
+ }
5391
+ },
5392
+ "parametersInfo": {
5393
+ "min": 1,
5394
+ "max": 1
5395
+ }
5396
+ },
5397
+ {
5398
+ "type": "function",
5399
+ "name": "hour",
5400
+ "bundle": "core",
5401
+ "sinceVersion": "1.24",
5402
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#hour2",
5403
+ "description": "Returns the hour of the given time (0-23).",
5404
+ "examples": "\n##### Esimerkki\n\nGets the hour of the time\n\n```arcade\nHour(Time(2, 59, 23))\n// returns 2\n```\n\n",
5405
+ "completion": {
5406
+ "label": "Hour",
5407
+ "detail": "Hour(timeValue) -> Number",
5408
+ "insertText": "Hour(${1:timeValue_})$0",
5409
+ "insertTextMode": 2,
5410
+ "insertTextFormat": 2,
5411
+ "kind": 3,
5412
+ "documentation": {
5413
+ "kind": "markdown",
5414
+ "value": "**[Lähtien versiosta 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nReturns the hour of the given time (0-23).\n\n**Parametri**\n\n- **timeValue**: Time - A Time value from which to get the hour.\n\n**Palauta arvo**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
5415
+ }
5416
+ },
5417
+ "parametersInfo": {
5418
+ "min": 1,
5419
+ "max": 1
5420
+ }
5421
+ }
5422
+ ],
5065
5423
  {
5066
5424
  "type": "function",
5067
- "name": "isoweekday",
5425
+ "name": "isomonth",
5068
5426
  "bundle": "core",
5069
5427
  "sinceVersion": "1.12",
5070
- "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#isoweekday",
5071
- "description": "Palauttaa annetun päivämäärän viikonpäivän ISO 8601 -standardin perusteella. Arvoväli on 1–7, jossa maanantai on 1 ja sunnuntai on 7.",
5072
- "examples": "\n##### Esimerkki\n\nPalauttaa annetun päivämäärän viikonpäivän ISO 8601 -standardin perusteella. Palauttaa arvon 3 keskiviikolle.\n\n```arcade\nISOWeekday(Date(1980, 11, 31))\n```\n\n",
5428
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#isomonth",
5429
+ "description": "Palauttaa annetun päivämäärän kuukauden ISO 8601 -standardin perusteella. Arvoväli on 1–12, jossa tammikuu on 1 ja joulukuu on 12.",
5430
+ "examples": "\n##### Esimerkit\n\nNoutaa annetun päivämäärän kuukauden ISO 8601 -standardin perusteella. Palauttaa arvon 12 kuukaudelle nimeltä joulukuu.\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",
5073
5431
  "completion": {
5074
- "label": "ISOWeekday",
5075
- "detail": "ISOWeekday(dateValue) -> Number",
5076
- "insertText": "ISOWeekday(${1:dateValue_})$0",
5432
+ "label": "ISOMonth",
5433
+ "detail": "ISOMonth(dateValue) -> Number",
5434
+ "insertText": "ISOMonth(${1:dateValue_})$0",
5077
5435
  "insertTextMode": 2,
5078
5436
  "insertTextFormat": 2,
5079
5437
  "kind": 3,
5080
5438
  "documentation": {
5081
5439
  "kind": "markdown",
5082
- "value": "**[Lähtien versiosta 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nPalauttaa annetun päivämäärän viikonpäivän ISO 8601 -standardin perusteella. Arvoväli on 1–7, jossa maanantai on 1 ja sunnuntai on 7.\n\n**Parametri**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - Päivämääräarvo, josta viikonpäivä palautetaan.\n\n**Palauta arvo**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
5440
+ "value": "**[Lähtien versiosta 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nPalauttaa annetun päivämäärän kuukauden ISO 8601 -standardin perusteella. Arvoväli on 1–12, jossa tammikuu on 1 ja joulukuu on 12.\n\n**Parametri**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) \\| DateOnly - Päivämääräarvo, josta kuukausi poimitaan.\n\n**Palauta arvo**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
5083
5441
  }
5084
5442
  },
5085
5443
  "parametersInfo": {
@@ -5089,22 +5447,22 @@
5089
5447
  },
5090
5448
  {
5091
5449
  "type": "function",
5092
- "name": "isoyear",
5450
+ "name": "isoweek",
5093
5451
  "bundle": "core",
5094
5452
  "sinceVersion": "1.12",
5095
- "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#isoyear",
5096
- "description": "Palauttaa annetun päivämäärän vuoden ISO 8601 -standardin mukaisen viikko-päivämäärä-kalenterin perusteella.",
5097
- "examples": "\n##### Esimerkki\n\nNoutaa annetun päivämäärän vuoden ISO 8601 -standardin mukaisen viikko-päivämäärä-kalenterin perusteella. Palauttaa arvon 1981, koska tämä päivämäärä sisältyy seuraavan vuoden ensimmäiseen viikkoon.\n\n```arcade\nISOYear(Date(1980, 11, 31))\n```\n\n",
5453
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#isoweek",
5454
+ "description": "Palauttaa viikon numeron annetulle päivämäärälle ISO 8601 -standardin mukaisen viikko-päivämäärä-kalenterin perusteella. Arvoväli on 1–53, jossa vuoden ensimmäisen viikko on 1 ja vuoden viimeinen viikko on 52 tai 53 vuoden mukaan.",
5455
+ "examples": "\n##### Esimerkit\n\nNoutaa annetun päivämäärän viikon ISO 8601 -standardin perusteella. Palauttaa arvon 1, koska tämä päivämäärä sisältyy seuraavan vuoden ensimmäiseen viikkoon.\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",
5098
5456
  "completion": {
5099
- "label": "ISOYear",
5100
- "detail": "ISOYear(dateValue) -> Number",
5101
- "insertText": "ISOYear(${1:dateValue_})$0",
5457
+ "label": "ISOWeek",
5458
+ "detail": "ISOWeek(dateValue) -> Number",
5459
+ "insertText": "ISOWeek(${1:dateValue_})$0",
5102
5460
  "insertTextMode": 2,
5103
5461
  "insertTextFormat": 2,
5104
5462
  "kind": 3,
5105
5463
  "documentation": {
5106
5464
  "kind": "markdown",
5107
- "value": "**[Lähtien versiosta 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nPalauttaa annetun päivämäärän vuoden ISO 8601 -standardin mukaisen viikko-päivämäärä-kalenterin perusteella.\n\n**Parametri**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - Päivämääräarvo, josta vuosi poimitaan.\n\n**Palauta arvo**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
5465
+ "value": "**[Lähtien versiosta 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nPalauttaa viikon numeron annetulle päivämäärälle ISO 8601 -standardin mukaisen viikko-päivämäärä-kalenterin perusteella. Arvoväli on 1–53, jossa vuoden ensimmäisen viikko on 1 ja vuoden viimeinen viikko on 52 tai 53 vuoden mukaan.\n\n**Parametri**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) \\| DateOnly - Päivämääräarvo, jonka perusteella viikko haetaan.\n\n**Palauta arvo**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
5108
5466
  }
5109
5467
  },
5110
5468
  "parametersInfo": {
@@ -5114,21 +5472,22 @@
5114
5472
  },
5115
5473
  {
5116
5474
  "type": "function",
5117
- "name": "millisecond",
5475
+ "name": "isoweekday",
5118
5476
  "bundle": "core",
5119
- "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#millisecond",
5120
- "description": "Palauttaa määritetyn päivämäärän millisekuntilukeman.",
5121
- "examples": "\n##### Esimerkki\n\nNoutaa nykyisen kellonajan millisekuntilukeman\n\n```arcade\nMillisecond(Now())\n```\n\n",
5477
+ "sinceVersion": "1.12",
5478
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#isoweekday",
5479
+ "description": "Palauttaa annetun päivämäärän viikonpäivän ISO 8601 -standardin perusteella. Arvoväli on 1–7, jossa maanantai on 1 ja sunnuntai on 7.",
5480
+ "examples": "\n##### Esimerkit\n\nPalauttaa annetun päivämäärän viikonpäivän ISO 8601 -standardin perusteella. Palauttaa arvon 3 keskiviikolle.\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",
5122
5481
  "completion": {
5123
- "label": "Millisecond",
5124
- "detail": "Millisecond(dateValue) -> Number",
5125
- "insertText": "Millisecond(${1:dateValue_})$0",
5482
+ "label": "ISOWeekday",
5483
+ "detail": "ISOWeekday(dateValue) -> Number",
5484
+ "insertText": "ISOWeekday(${1:dateValue_})$0",
5126
5485
  "insertTextMode": 2,
5127
5486
  "insertTextFormat": 2,
5128
5487
  "kind": 3,
5129
5488
  "documentation": {
5130
5489
  "kind": "markdown",
5131
- "value": "Palauttaa määritetyn päivämäärän millisekuntilukeman.\n\n**Parametri**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - Päivämääräarvo, josta millisekuntilukema poimitaan.\n\n**Palauta arvo**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
5490
+ "value": "**[Lähtien versiosta 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nPalauttaa annetun päivämäärän viikonpäivän ISO 8601 -standardin perusteella. Arvoväli on 1–7, jossa maanantai on 1 ja sunnuntai on 7.\n\n**Parametri**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) \\| DateOnly - Päivämääräarvo, josta viikonpäivä palautetaan.\n\n**Palauta arvo**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
5132
5491
  }
5133
5492
  },
5134
5493
  "parametersInfo": {
@@ -5138,21 +5497,22 @@
5138
5497
  },
5139
5498
  {
5140
5499
  "type": "function",
5141
- "name": "minute",
5500
+ "name": "isoyear",
5142
5501
  "bundle": "core",
5143
- "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#minute",
5144
- "description": "Palauttaa määritetyn päivämäärän minuuttilukeman.",
5145
- "examples": "\n##### Esimerkki\n\nNoutaa nykyisen kellonajan minuuttilukeman\n\n```arcade\nMinute(Now())\n```\n\n",
5502
+ "sinceVersion": "1.12",
5503
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#isoyear",
5504
+ "description": "Palauttaa annetun päivämäärän vuoden ISO 8601 -standardin mukaisen viikko-päivämäärä-kalenterin perusteella.",
5505
+ "examples": "\n##### Esimerkit\n\nNoutaa annetun päivämäärän vuoden ISO 8601 -standardin mukaisen viikko-päivämäärä-kalenterin perusteella. Palauttaa arvon 1981, koska tämä päivämäärä sisältyy seuraavan vuoden ensimmäiseen viikkoon.\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",
5146
5506
  "completion": {
5147
- "label": "Minute",
5148
- "detail": "Minute(dateValue) -> Number",
5149
- "insertText": "Minute(${1:dateValue_})$0",
5507
+ "label": "ISOYear",
5508
+ "detail": "ISOYear(dateValue) -> Number",
5509
+ "insertText": "ISOYear(${1:dateValue_})$0",
5150
5510
  "insertTextMode": 2,
5151
5511
  "insertTextFormat": 2,
5152
5512
  "kind": 3,
5153
5513
  "documentation": {
5154
5514
  "kind": "markdown",
5155
- "value": "Palauttaa määritetyn päivämäärän minuuttilukeman.\n\n**Parametri**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - Päivämääräarvo, josta minuuttilukema poimitaan.\n\n**Palauta arvo**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
5515
+ "value": "**[Lähtien versiosta 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nPalauttaa annetun päivämäärän vuoden ISO 8601 -standardin mukaisen viikko-päivämäärä-kalenterin perusteella.\n\n**Parametri**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) \\| DateOnly - Päivämääräarvo, josta vuosi poimitaan.\n\n**Palauta arvo**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
5156
5516
  }
5157
5517
  },
5158
5518
  "parametersInfo": {
@@ -5160,13 +5520,115 @@
5160
5520
  "max": 1
5161
5521
  }
5162
5522
  },
5523
+ [
5524
+ {
5525
+ "type": "function",
5526
+ "name": "millisecond",
5527
+ "bundle": "core",
5528
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#millisecond1",
5529
+ "description": "Returns the millisecond of the time in the date.",
5530
+ "examples": "\n##### Esimerkki\n\nGets the millisecond of the current time\n\n```arcade\nMillisecond(Now())\n```\n\n",
5531
+ "completion": {
5532
+ "label": "Millisecond",
5533
+ "detail": "Millisecond(dateValue) -> Number",
5534
+ "insertText": "Millisecond(${1:dateValue_})$0",
5535
+ "insertTextMode": 2,
5536
+ "insertTextFormat": 2,
5537
+ "kind": 3,
5538
+ "documentation": {
5539
+ "kind": "markdown",
5540
+ "value": "Returns the millisecond of the time in the date.\n\n**Parametri**\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**Palauta arvo**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
5541
+ }
5542
+ },
5543
+ "parametersInfo": {
5544
+ "min": 1,
5545
+ "max": 1
5546
+ }
5547
+ },
5548
+ {
5549
+ "type": "function",
5550
+ "name": "millisecond",
5551
+ "bundle": "core",
5552
+ "sinceVersion": "1.24",
5553
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#millisecond2",
5554
+ "description": "Returns the millisecond of the given time.",
5555
+ "examples": "\n##### Esimerkki\n\nGets the millisecond of the time\n\n```arcade\nHour(Time(2, 59, 23, 450))\n// returns 450\n```\n\n",
5556
+ "completion": {
5557
+ "label": "Millisecond",
5558
+ "detail": "Millisecond(timeValue) -> Number",
5559
+ "insertText": "Millisecond(${1:timeValue_})$0",
5560
+ "insertTextMode": 2,
5561
+ "insertTextFormat": 2,
5562
+ "kind": 3,
5563
+ "documentation": {
5564
+ "kind": "markdown",
5565
+ "value": "**[Lähtien versiosta 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nReturns the millisecond of the given time.\n\n**Parametri**\n\n- **timeValue**: Time - A Time value from which to get the millisecond.\n\n**Palauta arvo**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
5566
+ }
5567
+ },
5568
+ "parametersInfo": {
5569
+ "min": 1,
5570
+ "max": 1
5571
+ }
5572
+ }
5573
+ ],
5574
+ [
5575
+ {
5576
+ "type": "function",
5577
+ "name": "minute",
5578
+ "bundle": "core",
5579
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#minute1",
5580
+ "description": "Returns the minute of the time in the given date.",
5581
+ "examples": "\n##### Esimerkki\n\nGets the minute of the current time\n\n```arcade\nMinute(Now())\n```\n\n",
5582
+ "completion": {
5583
+ "label": "Minute",
5584
+ "detail": "Minute(dateValue) -> Number",
5585
+ "insertText": "Minute(${1:dateValue_})$0",
5586
+ "insertTextMode": 2,
5587
+ "insertTextFormat": 2,
5588
+ "kind": 3,
5589
+ "documentation": {
5590
+ "kind": "markdown",
5591
+ "value": "Returns the minute of the time in the given date.\n\n**Parametri**\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**Palauta arvo**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
5592
+ }
5593
+ },
5594
+ "parametersInfo": {
5595
+ "min": 1,
5596
+ "max": 1
5597
+ }
5598
+ },
5599
+ {
5600
+ "type": "function",
5601
+ "name": "minute",
5602
+ "bundle": "core",
5603
+ "sinceVersion": "1.24",
5604
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#minute2",
5605
+ "description": "Returns the minute of the given time.",
5606
+ "examples": "\n##### Esimerkki\n\nGets the minute of the time\n\n```arcade\nHour(Time(2, 59, 23))\n// returns 59\n```\n\n",
5607
+ "completion": {
5608
+ "label": "Minute",
5609
+ "detail": "Minute(timeValue) -> Number",
5610
+ "insertText": "Minute(${1:timeValue_})$0",
5611
+ "insertTextMode": 2,
5612
+ "insertTextFormat": 2,
5613
+ "kind": 3,
5614
+ "documentation": {
5615
+ "kind": "markdown",
5616
+ "value": "**[Lähtien versiosta 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nReturns the minute of the given time.\n\n**Parametri**\n\n- **timeValue**: Time - A Time value from which to get the minute.\n\n**Palauta arvo**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
5617
+ }
5618
+ },
5619
+ "parametersInfo": {
5620
+ "min": 1,
5621
+ "max": 1
5622
+ }
5623
+ }
5624
+ ],
5163
5625
  {
5164
5626
  "type": "function",
5165
5627
  "name": "month",
5166
5628
  "bundle": "core",
5167
5629
  "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#month",
5168
5630
  "description": "Palauttaa määritetyn päivämäärän kuukauden. Palautettava arvo on 0–11, jossa tammikuu on 0 ja joulukuu 11.",
5169
- "examples": "\n##### Esimerkki\n\nNoutaa annetun päivämäärän kuukauden. Palauttaa arvon 11 kuukaudelle nimeltä joulukuu.\n\n```arcade\nMonth(Date(1980, 11, 31))\n```\n\n",
5631
+ "examples": "\n##### Esimerkit\n\nNoutaa annetun päivämäärän kuukauden. Palauttaa arvon 11 kuukaudelle nimeltä joulukuu.\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",
5170
5632
  "completion": {
5171
5633
  "label": "Month",
5172
5634
  "detail": "Month(dateValue) -> Number",
@@ -5176,7 +5638,7 @@
5176
5638
  "kind": 3,
5177
5639
  "documentation": {
5178
5640
  "kind": "markdown",
5179
- "value": "Palauttaa määritetyn päivämäärän kuukauden. Palautettava arvo on 0–11, jossa tammikuu on 0 ja joulukuu 11.\n\n**Parametri**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - Päivämääräarvo, josta kuukausi poimitaan.\n\n**Palauta arvo**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
5641
+ "value": "Palauttaa määritetyn päivämäärän kuukauden. Palautettava arvo on 0–11, jossa tammikuu on 0 ja joulukuu 11.\n\n**Parametri**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) \\| DateOnly - Päivämääräarvo, josta kuukausi poimitaan.\n\n**Palauta arvo**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
5180
5642
  }
5181
5643
  },
5182
5644
  "parametersInfo": {
@@ -5208,23 +5670,227 @@
5208
5670
  "max": 0
5209
5671
  }
5210
5672
  },
5673
+ [
5674
+ {
5675
+ "type": "function",
5676
+ "name": "second",
5677
+ "bundle": "core",
5678
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#second1",
5679
+ "description": "Returns the second of the time in the date.",
5680
+ "examples": "\n##### Esimerkki\n\nGets the second of the current time\n\n```arcade\nSecond(Now())\n```\n\n",
5681
+ "completion": {
5682
+ "label": "Second",
5683
+ "detail": "Second(dateValue) -> Number",
5684
+ "insertText": "Second(${1:dateValue_})$0",
5685
+ "insertTextMode": 2,
5686
+ "insertTextFormat": 2,
5687
+ "kind": 3,
5688
+ "documentation": {
5689
+ "kind": "markdown",
5690
+ "value": "Returns the second of the time in the date.\n\n**Parametri**\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**Palauta arvo**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
5691
+ }
5692
+ },
5693
+ "parametersInfo": {
5694
+ "min": 1,
5695
+ "max": 1
5696
+ }
5697
+ },
5698
+ {
5699
+ "type": "function",
5700
+ "name": "second",
5701
+ "bundle": "core",
5702
+ "sinceVersion": "1.24",
5703
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#second2",
5704
+ "description": "Returns the second of the given time.",
5705
+ "examples": "\n##### Esimerkki\n\nGets the second of the time\n\n```arcade\nHour(Time(2, 59, 23))\n// returns 23\n```\n\n",
5706
+ "completion": {
5707
+ "label": "Second",
5708
+ "detail": "Second(timeValue) -> Number",
5709
+ "insertText": "Second(${1:timeValue_})$0",
5710
+ "insertTextMode": 2,
5711
+ "insertTextFormat": 2,
5712
+ "kind": 3,
5713
+ "documentation": {
5714
+ "kind": "markdown",
5715
+ "value": "**[Lähtien versiosta 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nReturns the second of the given time.\n\n**Parametri**\n\n- **timeValue**: Time - A Time value from which to get the second.\n\n**Palauta arvo**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
5716
+ }
5717
+ },
5718
+ "parametersInfo": {
5719
+ "min": 1,
5720
+ "max": 1
5721
+ }
5722
+ }
5723
+ ],
5724
+ [
5725
+ {
5726
+ "type": "function",
5727
+ "name": "time",
5728
+ "bundle": "core",
5729
+ "sinceVersion": "1.24",
5730
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#time1",
5731
+ "description": "Creates a Time value representing the current time in the time zone of the profile's execution context.",
5732
+ "examples": "\n##### Esimerkki\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",
5733
+ "completion": {
5734
+ "label": "Time",
5735
+ "detail": "Time() -> Time",
5736
+ "insertText": "Time($0)",
5737
+ "insertTextMode": 2,
5738
+ "insertTextFormat": 2,
5739
+ "kind": 3,
5740
+ "documentation": {
5741
+ "kind": "markdown",
5742
+ "value": "**[Lähtien versiosta 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**Palauta arvo**: Time"
5743
+ }
5744
+ },
5745
+ "parametersInfo": {
5746
+ "min": 0,
5747
+ "max": 0
5748
+ }
5749
+ },
5750
+ {
5751
+ "type": "function",
5752
+ "name": "time",
5753
+ "bundle": "core",
5754
+ "sinceVersion": "1.24",
5755
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#time2",
5756
+ "description": "Creates a Time value from a given date.",
5757
+ "examples": "\n##### Esimerkki\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",
5758
+ "completion": {
5759
+ "label": "Time",
5760
+ "detail": "Time(dateValue) -> Time",
5761
+ "insertText": "Time(${1:dateValue_})$0",
5762
+ "insertTextMode": 2,
5763
+ "insertTextFormat": 2,
5764
+ "kind": 3,
5765
+ "documentation": {
5766
+ "kind": "markdown",
5767
+ "value": "**[Lähtien versiosta 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nCreates a Time value from a given date.\n\n**Parametri**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - The date from which to get the time.\n\n**Palauta arvo**: Time"
5768
+ }
5769
+ },
5770
+ "parametersInfo": {
5771
+ "min": 1,
5772
+ "max": 1
5773
+ }
5774
+ },
5775
+ {
5776
+ "type": "function",
5777
+ "name": "time",
5778
+ "bundle": "core",
5779
+ "sinceVersion": "1.24",
5780
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#time3",
5781
+ "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`.",
5782
+ "examples": "\n##### Esimerkit\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",
5783
+ "completion": {
5784
+ "label": "Time",
5785
+ "detail": "Time(numValue) -> Time",
5786
+ "insertText": "Time(${1:numValue_})$0",
5787
+ "insertTextMode": 2,
5788
+ "insertTextFormat": 2,
5789
+ "kind": 3,
5790
+ "documentation": {
5791
+ "kind": "markdown",
5792
+ "value": "**[Lähtien versiosta 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**Parametri**\n\n- **numValue**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - The number of milliseconds since midnight.\n\n**Palauta arvo**: Time"
5793
+ }
5794
+ },
5795
+ "parametersInfo": {
5796
+ "min": 1,
5797
+ "max": 1
5798
+ }
5799
+ },
5800
+ {
5801
+ "type": "function",
5802
+ "name": "time",
5803
+ "bundle": "core",
5804
+ "sinceVersion": "1.24",
5805
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#time4",
5806
+ "description": "Creates a Time value from inputs representing hours, minutes, seconds, and milliseconds.",
5807
+ "examples": "\n##### Esimerkki\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",
5808
+ "completion": {
5809
+ "label": "Time",
5810
+ "detail": "Time(hours, minutes, seconds?, milliseconds?) -> Time",
5811
+ "insertText": "Time(${1:hours_}, ${2:minutes_})$0",
5812
+ "insertTextMode": 2,
5813
+ "insertTextFormat": 2,
5814
+ "kind": 3,
5815
+ "documentation": {
5816
+ "kind": "markdown",
5817
+ "value": "**[Lähtien versiosta 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**Parametrit**\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**Palauta arvo**: Time"
5818
+ }
5819
+ },
5820
+ "parametersInfo": {
5821
+ "min": 2,
5822
+ "max": 4
5823
+ }
5824
+ },
5825
+ {
5826
+ "type": "function",
5827
+ "name": "time",
5828
+ "bundle": "core",
5829
+ "sinceVersion": "1.24",
5830
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#time5",
5831
+ "description": "Creates a Time value from a text input representing time, with an optional input indicating the text's format.",
5832
+ "examples": "\n##### Esimerkit\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",
5833
+ "completion": {
5834
+ "label": "Time",
5835
+ "detail": "Time(timeValue, format?) -> Time",
5836
+ "insertText": "Time(${1:timeValue_})$0",
5837
+ "insertTextMode": 2,
5838
+ "insertTextFormat": 2,
5839
+ "kind": 3,
5840
+ "documentation": {
5841
+ "kind": "markdown",
5842
+ "value": "**[Lähtien versiosta 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**Parametrit**\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**Palauta arvo**: Time"
5843
+ }
5844
+ },
5845
+ "parametersInfo": {
5846
+ "min": 1,
5847
+ "max": 2
5848
+ }
5849
+ }
5850
+ ],
5851
+ {
5852
+ "type": "function",
5853
+ "name": "timestamp",
5854
+ "bundle": "core",
5855
+ "sinceVersion": "1.1",
5856
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#timestamp",
5857
+ "description": "Luo päivämääräarvon, joka edustaa nykyistä päivämäärää ja kellonaikaa UTC-ajassa.",
5858
+ "examples": "\n##### Esimerkki\n\nLuo päivämäärän UTC-ajassa\n\n```arcade\n// Date that represents Jan 27, 2023, 8:41:20 PM UTC\nTimestamp()\n```\n\n",
5859
+ "completion": {
5860
+ "label": "Timestamp",
5861
+ "detail": "Timestamp() -> Date",
5862
+ "insertText": "Timestamp($0)",
5863
+ "insertTextMode": 2,
5864
+ "insertTextFormat": 2,
5865
+ "kind": 3,
5866
+ "documentation": {
5867
+ "kind": "markdown",
5868
+ "value": "**[Lähtien versiosta 1.1](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nLuo päivämääräarvon, joka edustaa nykyistä päivämäärää ja kellonaikaa UTC-ajassa.\n\n**Palauta arvo**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)"
5869
+ }
5870
+ },
5871
+ "parametersInfo": {
5872
+ "min": 0,
5873
+ "max": 0
5874
+ }
5875
+ },
5211
5876
  {
5212
5877
  "type": "function",
5213
- "name": "second",
5878
+ "name": "timezone",
5214
5879
  "bundle": "core",
5215
- "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#second",
5216
- "description": "Palauttaa määritetyn päivämäärän sekuntilukeman.",
5217
- "examples": "\n##### Esimerkki\n\nNoutaa nykyisen kellonajan sekuntilukeman\n\n```arcade\nSecond(Now())\n```\n\n",
5880
+ "sinceVersion": "1.24",
5881
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#timezone",
5882
+ "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",
5883
+ "examples": "\n##### Esimerkki\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",
5218
5884
  "completion": {
5219
- "label": "Second",
5220
- "detail": "Second(dateValue) -> Number",
5221
- "insertText": "Second(${1:dateValue_})$0",
5885
+ "label": "TimeZone",
5886
+ "detail": "TimeZone(dateValue) -> Text",
5887
+ "insertText": "TimeZone(${1:dateValue_})$0",
5222
5888
  "insertTextMode": 2,
5223
5889
  "insertTextFormat": 2,
5224
5890
  "kind": 3,
5225
5891
  "documentation": {
5226
5892
  "kind": "markdown",
5227
- "value": "Palauttaa määritetyn päivämäärän sekuntilukeman.\n\n**Parametri**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - Päivämääräarvo, josta sekuntilukema poimitaan.\n\n**Palauta arvo**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
5893
+ "value": "**[Lähtien versiosta 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**Parametri**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - A Date value from which to get the time zone.\n\n**Palauta arvo**: [Text](https://developers.arcgis.com/arcade/guide/types/#text)"
5228
5894
  }
5229
5895
  },
5230
5896
  "parametersInfo": {
@@ -5234,27 +5900,27 @@
5234
5900
  },
5235
5901
  {
5236
5902
  "type": "function",
5237
- "name": "timestamp",
5903
+ "name": "timezoneoffset",
5238
5904
  "bundle": "core",
5239
- "sinceVersion": "1.1",
5240
- "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#timestamp",
5241
- "description": "Luo päivämääräarvon, joka edustaa nykyistä päivämäärää ja kellonaikaa UTC-ajassa.",
5242
- "examples": "\n##### Esimerkki\n\nLuo päivämäärän UTC-ajassa\n\n```arcade\n// Date that represents Jan 27, 2023, 8:41:20 PM UTC\nTimestamp()\n```\n\n",
5905
+ "sinceVersion": "1.24",
5906
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#timezoneoffset",
5907
+ "description": "Returns the time zone offset in minutes from UTC for the given Date.",
5908
+ "examples": "\n##### Esimerkki\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",
5243
5909
  "completion": {
5244
- "label": "Timestamp",
5245
- "detail": "Timestamp() -> Date",
5246
- "insertText": "Timestamp($0)",
5910
+ "label": "TimeZoneOffset",
5911
+ "detail": "TimeZoneOffset(dateValue) -> Number",
5912
+ "insertText": "TimeZoneOffset(${1:dateValue_})$0",
5247
5913
  "insertTextMode": 2,
5248
5914
  "insertTextFormat": 2,
5249
5915
  "kind": 3,
5250
5916
  "documentation": {
5251
5917
  "kind": "markdown",
5252
- "value": "**[Lähtien versiosta 1.1](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nLuo päivämääräarvon, joka edustaa nykyistä päivämäärää ja kellonaikaa UTC-ajassa.\n\n**Palauta arvo**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)"
5918
+ "value": "**[Lähtien versiosta 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**Parametri**\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**Palauta arvo**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
5253
5919
  }
5254
5920
  },
5255
5921
  "parametersInfo": {
5256
- "min": 0,
5257
- "max": 0
5922
+ "min": 1,
5923
+ "max": 1
5258
5924
  }
5259
5925
  },
5260
5926
  {
@@ -5338,7 +6004,7 @@
5338
6004
  "sinceVersion": "1.14",
5339
6005
  "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#week",
5340
6006
  "description": "Palauttaa vuodessa olevan viikon numeron annetulle päivämäärälle. Arvoväli on 0–53, jossa vuoden ensimmäinen viikko on 0 ja vuoden viimeinen viikko on 51, 52 tai 53 vuoden mukaan. Ensimmäisen ja viimeisen viikon pituus ei ole välttämättä seitsemän päivää.",
5341
- "examples": "\n##### Esimerkit\n\nKäytä oletusarvoista viikon ensimmäistä päivää (sunnuntai)\n\n```arcade\nWeek( Date(1974,0,3) )\n// Returns 0\n```\n\nAseta viikon ensimmäiseksi päiväksi torstai\n\n```arcade\nWeek( Date(1974,0,3), 4 )\n// Returns 1\n```\n\nAseta viikon ensimmäiseksi päiväksi perjantai\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",
6007
+ "examples": "\n##### Esimerkit\n\nKäytä oletusarvoista viikon ensimmäistä päivää (sunnuntai)\n\n```arcade\nWeek( Date(1974,0,3) )\n// Returns 0\n```\n\nAseta viikon ensimmäiseksi päiväksi torstai\n\n```arcade\nWeek( Date(1974,0,3), 4 )\n// Returns 1\n```\n\nAseta viikon ensimmäiseksi päiväksi perjantai\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",
5342
6008
  "completion": {
5343
6009
  "label": "Week",
5344
6010
  "detail": "Week(dateValue, startDay?) -> Number",
@@ -5348,7 +6014,7 @@
5348
6014
  "kind": 3,
5349
6015
  "documentation": {
5350
6016
  "kind": "markdown",
5351
- "value": "**[Lähtien versiosta 1.14](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nPalauttaa vuodessa olevan viikon numeron annetulle päivämäärälle. Arvoväli on 0–53, jossa vuoden ensimmäinen viikko on 0 ja vuoden viimeinen viikko on 51, 52 tai 53 vuoden mukaan. Ensimmäisen ja viimeisen viikon pituus ei ole välttämättä seitsemän päivää.\n\n**Parametrit**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - Päivämääräarvo, jonka perusteella viikko haetaan.\n- **startDay** (_Optional_): [Number](https://developers.arcgis.com/arcade/guide/types/#number) - Numero, joka edustaa viikon ensimmäistä päivää. Sunnuntai = 0; Maanantai = 1; Tiistai = 2; Keskiviikko = 3; Torstai = 4; Perjantai = 5; Lauantai = 6. Oletus on 0 (sunnuntai).\n\n**Palauta arvo**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
6017
+ "value": "**[Lähtien versiosta 1.14](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nPalauttaa vuodessa olevan viikon numeron annetulle päivämäärälle. Arvoväli on 0–53, jossa vuoden ensimmäinen viikko on 0 ja vuoden viimeinen viikko on 51, 52 tai 53 vuoden mukaan. Ensimmäisen ja viimeisen viikon pituus ei ole välttämättä seitsemän päivää.\n\n**Parametrit**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) \\| DateOnly - Päivämääräarvo, jonka perusteella viikko haetaan.\n- **startDay** (_Optional_): [Number](https://developers.arcgis.com/arcade/guide/types/#number) - Numero, joka edustaa viikon ensimmäistä päivää. Sunnuntai = 0; Maanantai = 1; Tiistai = 2; Keskiviikko = 3; Torstai = 4; Perjantai = 5; Lauantai = 6. Oletus on 0 (sunnuntai).\n\n**Palauta arvo**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
5352
6018
  }
5353
6019
  },
5354
6020
  "parametersInfo": {
@@ -5362,7 +6028,7 @@
5362
6028
  "bundle": "core",
5363
6029
  "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#weekday",
5364
6030
  "description": "Palauttaa annetun päivämäärän viikonpäivän. Arvoväli on 0–6, jossa sunnuntai on 0 ja lauantai on 6.",
5365
- "examples": "\n##### Esimerkki\n\nPalauttaa annetun päivämäärän viikonpäivän. Palauttaa arvon 3 keskiviikolle.\n\n```arcade\nWeekday(Date(1980, 11, 31))\n```\n\n",
6031
+ "examples": "\n##### Esimerkit\n\nPalauttaa annetun päivämäärän viikonpäivän. Palauttaa arvon 3 keskiviikolle.\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",
5366
6032
  "completion": {
5367
6033
  "label": "Weekday",
5368
6034
  "detail": "Weekday(dateValue) -> Number",
@@ -5372,7 +6038,7 @@
5372
6038
  "kind": 3,
5373
6039
  "documentation": {
5374
6040
  "kind": "markdown",
5375
- "value": "Palauttaa annetun päivämäärän viikonpäivän. Arvoväli on 0–6, jossa sunnuntai on 0 ja lauantai on 6.\n\n**Parametri**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - Päivämääräarvo, josta viikonpäivä palautetaan.\n\n**Palauta arvo**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
6041
+ "value": "Palauttaa annetun päivämäärän viikonpäivän. Arvoväli on 0–6, jossa sunnuntai on 0 ja lauantai on 6.\n\n**Parametri**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) \\| DateOnly - Päivämääräarvo, josta viikonpäivä palautetaan.\n\n**Palauta arvo**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
5376
6042
  }
5377
6043
  },
5378
6044
  "parametersInfo": {
@@ -5386,7 +6052,7 @@
5386
6052
  "bundle": "core",
5387
6053
  "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#year",
5388
6054
  "description": "Palauttaa määritetyn päivämäärän vuoden.",
5389
- "examples": "\n##### Esimerkki\n\nNoutaa nykyisen päivämäärän vuoden\n\n```arcade\nYear(Now())\n```\n\n",
6055
+ "examples": "\n##### Esimerkit\n\nNoutaa nykyisen päivämäärän vuoden\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",
5390
6056
  "completion": {
5391
6057
  "label": "Year",
5392
6058
  "detail": "Year(dateValue) -> Number",
@@ -5396,7 +6062,7 @@
5396
6062
  "kind": 3,
5397
6063
  "documentation": {
5398
6064
  "kind": "markdown",
5399
- "value": "Palauttaa määritetyn päivämäärän vuoden.\n\n**Parametri**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - Päivämääräarvo, josta vuosi poimitaan.\n\n**Palauta arvo**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
6065
+ "value": "Palauttaa määritetyn päivämäärän vuoden.\n\n**Parametri**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) \\| DateOnly - Päivämääräarvo, josta vuosi poimitaan.\n\n**Palauta arvo**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
5400
6066
  }
5401
6067
  },
5402
6068
  "parametersInfo": {
@@ -6270,7 +6936,7 @@
6270
6936
  "bundle": "core",
6271
6937
  "link": "https://developers.arcgis.com/arcade/function-reference/text_functions/#text",
6272
6938
  "description": "Muuntaa argumentin tekstiarvoksi ja valinnaisesti myös muotoilee sen. Palauttaa tyhjäarvon, jos muunto ei onnistu.",
6273
- "examples": "\n##### Esimerkit\n\nLisää merkkejä desimaalierottimen vasemmalle puolelle\n\n```arcade\nText(123, '0000') // '0123'\n```\n\nPoistaa merkkejä desimaalierottimen vasemmalta puolelta\n\n```arcade\nText(123, '00') // '23'\n```\n\nLisää lukuun tuhaterottimet\n\n```arcade\nText(1234, '#,###') // '1,234'\n```\n\nPyöristää luvun kahden desimaalin tarkkuuteen\n\n```arcade\nText(12345678.123, '#,###.00') // '12,345,678.12'\n```\n\nMuotoile numero valuuttana\n\n```arcade\nText(1234.55, '$#,###.00') // '$1,234.55'\n```\n\nPyöristää luvun kahden desimaalin tarkkuuteen\n\n```arcade\nText(1.236, '#.00') // '1.24'\n```\n\nSäilyttää merkittävät numerot ja lisää lukuun tuhaterottimet\n\n```arcade\nText(1234.5678, '#,##0.00#') // '1,234.568'\n```\n\nLuvun muoto ja positiivisuus/negatiivisuus – jos alikaava on negatiivinen, se määrittää vain negatiivisen etuliitteen ja loppuliitteen\n\n```arcade\nText(-2, 'Floor #;Basement #') // 'Basement 2'\n```\n\n\n\n```arcade\nText(2, 'Floor #;Basement #') // 'Floor 2'\n```\n\nKertoo sadalla ja muotoilee luvun prosenttiluvuksi\n\n```arcade\nText(0.3, '#%') // '30%'\n```\n\nMuodon aika nykyhetkellä, esim. Tiistai, 25.10.2016 @ 08:43:11\n\n```arcade\nText(Now(), 'dddd, MMMM D, Y @ h:m:s')\n```\n\nPäivämäärä ja aika -kenttään tallennettu päivämäärä edustaa paikallista aikaa, mutta Arcade olettaa sen olevan UTC-ajassa. Siirtää paikallisen ajan UTC-aikaan, jotta aikavyöhykkeen siirtymää ei käytetä kahta kertaa.\n\n```arcade\nText(ToUTC($feature.datetime), 'dddd, MMMM D, Y @ h:m:s')\n```\n\n",
6939
+ "examples": "\n##### Esimerkit\n\nLisää merkkejä desimaalierottimen vasemmalle puolelle\n\n```arcade\nText(123, '0000') // '0123'\n```\n\nPoistaa merkkejä desimaalierottimen vasemmalta puolelta\n\n```arcade\nText(123, '00') // '23'\n```\n\nLisää lukuun tuhaterottimet\n\n```arcade\nText(1234, '#,###') // '1,234'\n```\n\nPyöristää luvun kahden desimaalin tarkkuuteen\n\n```arcade\nText(12345678.123, '#,###.00') // '12,345,678.12'\n```\n\nMuotoile numero valuuttana\n\n```arcade\nText(1234.55, '$#,###.00') // '$1,234.55'\n```\n\nPyöristää luvun kahden desimaalin tarkkuuteen\n\n```arcade\nText(1.236, '#.00') // '1.24'\n```\n\nSäilyttää merkittävät numerot ja lisää lukuun tuhaterottimet\n\n```arcade\nText(1234.5678, '#,##0.00#') // '1,234.568'\n```\n\nLuvun muoto ja positiivisuus/negatiivisuus – jos alikaava on negatiivinen, se määrittää vain negatiivisen etuliitteen ja loppuliitteen\n\n```arcade\nText(-2, 'Floor #;Basement #') // 'Basement 2'\n```\n\n\n\n```arcade\nText(2, 'Floor #;Basement #') // 'Floor 2'\n```\n\nKertoo sadalla ja muotoilee luvun prosenttiluvuksi\n\n```arcade\nText(0.3, '#%') // '30%'\n```\n\nMuodon aika nykyhetkellä, esim. Tiistai, 25.10.2016 @ 08:43:11\n\n```arcade\nText(Now(), 'dddd, MMMM D, Y @ h:m:s')\n```\n\nPäivämäärä ja aika -kenttään tallennettu päivämäärä edustaa paikallista aikaa, mutta Arcade olettaa sen olevan UTC-ajassa. Siirtää paikallisen ajan UTC-aikaan, jotta aikavyöhykkeen siirtymää ei käytetä kahta kertaa.\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",
6274
6940
  "completion": {
6275
6941
  "label": "Text",
6276
6942
  "detail": "Text(value, format?) -> Text",