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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (140) hide show
  1. package/dist/arcgis-coding-components/arcgis-coding-components.esm.js +1 -1
  2. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ar.json +858 -192
  3. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.bg.json +821 -155
  4. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.bs.json +829 -163
  5. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ca.json +829 -163
  6. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.cs.json +829 -163
  7. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.da.json +829 -163
  8. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.de.json +829 -163
  9. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.el.json +858 -192
  10. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.en.json +853 -187
  11. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.es.json +829 -163
  12. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.et.json +829 -163
  13. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.fi.json +858 -192
  14. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.fr.json +829 -163
  15. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.he.json +858 -192
  16. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.hr.json +829 -163
  17. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.hu.json +829 -163
  18. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.id.json +858 -192
  19. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.it.json +821 -155
  20. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ja.json +859 -193
  21. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ko.json +859 -193
  22. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.lt.json +829 -163
  23. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.lv.json +829 -163
  24. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.nb.json +829 -163
  25. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.nl.json +829 -163
  26. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.pl.json +829 -163
  27. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.pt-BR.json +829 -163
  28. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.pt-PT.json +829 -163
  29. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ro.json +829 -163
  30. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ru.json +858 -192
  31. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.sk.json +829 -163
  32. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.sl.json +829 -163
  33. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.sr.json +845 -179
  34. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.sv.json +829 -163
  35. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.th.json +858 -192
  36. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.tr.json +858 -192
  37. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.uk.json +858 -192
  38. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.vi.json +858 -192
  39. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.zh-CN.json +859 -193
  40. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.zh-HK.json +859 -193
  41. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.zh-TW.json +859 -193
  42. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.ar.json +1 -2
  43. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.bg.json +1 -2
  44. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.bs.json +1 -2
  45. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.ca.json +1 -2
  46. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.cs.json +1 -2
  47. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.da.json +1 -2
  48. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.de.json +1 -2
  49. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.el.json +1 -2
  50. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.en.json +1 -2
  51. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.es.json +1 -2
  52. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.et.json +1 -2
  53. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.fi.json +1 -2
  54. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.fr.json +1 -2
  55. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.he.json +1 -2
  56. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.hr.json +1 -2
  57. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.hu.json +1 -2
  58. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.id.json +1 -2
  59. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.it.json +1 -2
  60. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.ja.json +1 -2
  61. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.ko.json +1 -2
  62. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.lt.json +1 -2
  63. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.lv.json +1 -2
  64. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.nb.json +1 -2
  65. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.nl.json +1 -2
  66. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.pl.json +1 -2
  67. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.pt-BR.json +1 -2
  68. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.pt-PT.json +1 -2
  69. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.ro.json +1 -2
  70. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.ru.json +1 -2
  71. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.sk.json +1 -2
  72. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.sl.json +1 -2
  73. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.sr.json +1 -2
  74. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.sv.json +1 -2
  75. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.th.json +1 -2
  76. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.tr.json +1 -2
  77. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.uk.json +1 -2
  78. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.vi.json +1 -2
  79. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.zh-CN.json +1 -2
  80. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.zh-HK.json +1 -2
  81. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.zh-TW.json +1 -2
  82. package/dist/arcgis-coding-components/assets/code-editor/arcade.worker.js +20 -20
  83. package/dist/arcgis-coding-components/index.esm.js +1 -1
  84. package/dist/arcgis-coding-components/{p-c14a46af.js → p-172f4702.js} +1 -1
  85. package/dist/arcgis-coding-components/{p-63d6d128.js → p-489997f4.js} +1 -1
  86. package/dist/arcgis-coding-components/{p-41feaa6e.js → p-4cbf1d3d.js} +1 -1
  87. package/dist/arcgis-coding-components/p-84c74c0e.entry.js +1 -0
  88. package/dist/arcgis-coding-components/{p-616bcc2c.js → p-be1fbbb3.js} +1 -1
  89. package/dist/arcgis-coding-components/p-c5a7203a.js +1 -0
  90. package/dist/arcgis-coding-components/{p-ed254359.js → p-d9a5e2f2.js} +1 -1
  91. package/dist/arcgis-coding-components/{p-2eee5b07.js → p-e291bfec.js} +7 -7
  92. package/dist/arcgis-coding-components/{p-ee4aaf72.js → p-e4be94b6.js} +1 -1
  93. package/dist/arcgis-coding-components/{p-b866ffa3.js → p-fca44881.js} +1 -1
  94. package/dist/cjs/{arcade-defaults-f77b7bae.js → arcade-defaults-34cb0922.js} +3271 -3169
  95. package/dist/cjs/arcade-mode-ab1f27e6.js +600 -0
  96. package/dist/cjs/arcgis-arcade-api_6.cjs.entry.js +51 -30
  97. package/dist/cjs/{cssMode-c21a8b34.js → cssMode-1aa8c00c.js} +1 -1
  98. package/dist/cjs/{html-baddeebf.js → html-d5c8ae9b.js} +1 -1
  99. package/dist/cjs/{htmlMode-3ca73779.js → htmlMode-78095155.js} +1 -1
  100. package/dist/cjs/index.cjs.js +3 -5
  101. package/dist/cjs/{javascript-4226e8d4.js → javascript-1feb315a.js} +2 -2
  102. package/dist/cjs/{jsonMode-4496d6b9.js → jsonMode-3b4bffa4.js} +1 -1
  103. package/dist/cjs/{tsMode-6fa6f2f6.js → tsMode-927347f4.js} +1 -1
  104. package/dist/cjs/{typescript-5b6bab68.js → typescript-b6461e0f.js} +1 -1
  105. package/dist/components/arcade-api.js +3 -2
  106. package/dist/components/arcade-contribution.js +1 -1
  107. package/dist/components/arcade-defaults.js +7 -24
  108. package/dist/components/arcade-mode.js +3 -3
  109. package/dist/components/arcade-results.js +40 -10
  110. package/dist/components/arcade-suggestions.js +2 -1
  111. package/dist/components/arcade-variables.js +2 -2
  112. package/dist/components/arcgis-arcade-editor.js +2 -2
  113. package/dist/components/code-editor.js +9 -2
  114. package/dist/components/fields.js +125 -0
  115. package/dist/components/index.js +1 -7
  116. package/dist/components/index2.js +282 -32
  117. package/dist/components/markdown.js +1 -1
  118. package/dist/components/utilities.js +2 -334
  119. package/dist/esm/{arcade-defaults-24670a1d.js → arcade-defaults-f030a3ab.js} +3270 -3171
  120. package/dist/esm/arcade-mode-e27773ee.js +596 -0
  121. package/dist/esm/arcgis-arcade-api_6.entry.js +49 -28
  122. package/dist/esm/{cssMode-0ae84348.js → cssMode-7174073f.js} +1 -1
  123. package/dist/esm/{html-c18864a6.js → html-232bf55e.js} +1 -1
  124. package/dist/esm/{htmlMode-426699f2.js → htmlMode-81da247d.js} +1 -1
  125. package/dist/esm/index.js +1 -7
  126. package/dist/esm/{javascript-982f2d73.js → javascript-675b1c44.js} +2 -2
  127. package/dist/esm/{jsonMode-170e0a0e.js → jsonMode-aa4be4a6.js} +1 -1
  128. package/dist/esm/{tsMode-99d2e8e5.js → tsMode-f163b829.js} +1 -1
  129. package/dist/esm/{typescript-de4f8a27.js → typescript-ebf5062c.js} +1 -1
  130. package/dist/types/index.d.ts +2 -4
  131. package/dist/types/utils/arcade-executor.d.ts +35 -3
  132. package/dist/types/utils/arcade-monaco/arcade-defaults.d.ts +6 -0
  133. package/dist/types/utils/fields.d.ts +10 -0
  134. package/dist/types/utils/profile/types.d.ts +2 -2
  135. package/dist/types/utils/utilities.d.ts +0 -6
  136. package/package.json +8 -8
  137. package/dist/arcgis-coding-components/p-4d7cdaf4.js +0 -1
  138. package/dist/arcgis-coding-components/p-7d6c922f.entry.js +0 -1
  139. package/dist/cjs/arcade-mode-4b1d5adc.js +0 -600
  140. package/dist/esm/arcade-mode-dc10ed9f.js +0 -596
@@ -574,6 +574,31 @@
574
574
  "max": 4
575
575
  }
576
576
  },
577
+ {
578
+ "type": "function",
579
+ "name": "featuresetbyrelationshipclass",
580
+ "bundle": "data-access",
581
+ "sinceVersion": "1.24",
582
+ "link": "https://developers.arcgis.com/arcade/function-reference/featureset_functions/#featuresetbyrelationshipclass",
583
+ "description": "Returns the related records for a given feature as a FeatureSet based on the class name of the relationship.",
584
+ "examples": "\n##### 示例\n\nReturns the count of pole inspection related records\n\n```arcade\n// A calculation rule that returns the count of a pole inspection records.\n// When a pole feature is updated the calculation rule reads all its related inspections records from the comments field and returns the total inspection count for that feature.\nvar fsinspected = FeatureSetByRelationshipClass($feature, “pole_inspection”, [“comments”], false);\nreturn Count(fsinspected);\n```\n\n",
585
+ "completion": {
586
+ "label": "FeatureSetByRelationshipClass",
587
+ "detail": "FeatureSetByRelationshipClass(inputFeature, relationshipClass, fieldNames?, includeGeometry?) -> FeatureSet",
588
+ "insertText": "FeatureSetByRelationshipClass(${1:inputFeature_}, ${2:relationshipClass_})$0",
589
+ "insertTextMode": 2,
590
+ "insertTextFormat": 2,
591
+ "kind": 3,
592
+ "documentation": {
593
+ "kind": "markdown",
594
+ "value": "**[起始版本 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nReturns the related records for a given feature as a FeatureSet based on the class name of the relationship.\n\n**参数**\n\n- **inputFeature**: [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - The feature from which to fetch related records. This feature must come from a feature service; feature collections are not supported.\n- **relationshipClass**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - The class name of the relationship according to the feature service associated with the given feature.\n- **fieldNames** (_Optional_): [Array](https://developers.arcgis.com/arcade/guide/types/#array)<[Text](https://developers.arcgis.com/arcade/guide/types/#text)> - The fields to return in the FeatureSet. This list includes fields from both the relationship table and the input Feature.\n- **includeGeometry** (_Optional_): [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean) - Indicates whether to return the geometry for the resulting features.\n\n**返回值**: [FeatureSet](https://developers.arcgis.com/arcade/guide/types/#featureset)"
595
+ }
596
+ },
597
+ "parametersInfo": {
598
+ "min": 2,
599
+ "max": 4
600
+ }
601
+ },
577
602
  {
578
603
  "type": "function",
579
604
  "name": "featuresetbyrelationshipname",
@@ -3685,7 +3710,7 @@
3685
3710
  "kind": 3,
3686
3711
  "documentation": {
3687
3712
  "kind": "markdown",
3688
- "value": "**[起始版本 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\n生成给定变量的哈希编码值。\n\n**参数**\n\n- **value**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) \\| [Number](https://developers.arcgis.com/arcade/guide/types/#number) \\| [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean) \\| [Date](https://developers.arcgis.com/arcade/guide/types/#date) \\| [Array](https://developers.arcgis.com/arcade/guide/types/#array)<[Any](https://developers.arcgis.com/arcade/guide/types/#any)> \\| [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) \\| [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) - 要进行哈希处理的变量。\n\n**返回值**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
3713
+ "value": "**[起始版本 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\n生成给定变量的哈希编码值。\n\n**参数**\n\n- **value**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) \\| [Number](https://developers.arcgis.com/arcade/guide/types/#number) \\| [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean) \\| [Date](https://developers.arcgis.com/arcade/guide/types/#date) \\| [Array](https://developers.arcgis.com/arcade/guide/types/#array)<[Any](https://developers.arcgis.com/arcade/guide/types/#any)> \\| [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) \\| [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) \\| DateOnly \\| Time - 要进行哈希处理的变量。\n\n**返回值**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
3689
3714
  }
3690
3715
  },
3691
3716
  "parametersInfo": {
@@ -5195,7 +5220,7 @@
5195
5220
  "bundle": "core",
5196
5221
  "link": "https://developers.arcgis.com/arcade/function-reference/text_functions/#text",
5197
5222
  "description": "将其参数转换为文本值,并选择性地对其进行格式设置。 若失败则返回 `null`。",
5198
- "examples": "\n##### 示例\n\n填充小数点左侧的数字\n\n```arcade\nText(123, '0000') // '0123'\n```\n\n限制小数点左侧的数字\n\n```arcade\nText(123, '00') // '23'\n```\n\n以千为单位对数字进行分组\n\n```arcade\nText(1234, '#,###') // '1,234'\n```\n\n将数字进行四舍五入至小数点后两位\n\n```arcade\nText(12345678.123, '#,###.00') // '12,345,678.12'\n```\n\n将数字格式化为货币形式\n\n```arcade\nText(1234.55, '$#,###.00') // '$1,234.55'\n```\n\n将数字进行四舍五入至小数点后两位\n\n```arcade\nText(1.236, '#.00') // '1.24'\n```\n\n保持有效位数并以千为单位进行分组\n\n```arcade\nText(1234.5678, '#,##0.00#') // '1,234.568'\n```\n\n格式化数字及其正/负 - 如果存在负子模式,则仅能指定负的前缀和后缀。\n\n```arcade\nText(-2, 'Floor #;Basement #') // 'Basement 2'\n```\n\n\n\n```arcade\nText(2, 'Floor #;Basement #') // 'Floor 2'\n```\n\n乘以 100 然后表示为百分比的形式\n\n```arcade\nText(0.3, '#%') // '30%'\n```\n\n格式化当前日期和时间,例如 'Tuesday, October 25, 2016 @ 08:43:11'\n\n```arcade\nText(Now(), 'dddd, MMMM D, Y @ h:m:s')\n```\n\n`datetime` 字段中存储的日期已表示本地时间,但 Arcade 假定它为 UTC。 将本地时间偏移到 UTC 以避免两次应用时区偏移。\n\n```arcade\nText(ToUTC($feature.datetime), 'dddd, MMMM D, Y @ h:m:s')\n```\n\n",
5223
+ "examples": "\n##### 示例\n\n填充小数点左侧的数字\n\n```arcade\nText(123, '0000') // '0123'\n```\n\n限制小数点左侧的数字\n\n```arcade\nText(123, '00') // '23'\n```\n\n以千为单位对数字进行分组\n\n```arcade\nText(1234, '#,###') // '1,234'\n```\n\n将数字进行四舍五入至小数点后两位\n\n```arcade\nText(12345678.123, '#,###.00') // '12,345,678.12'\n```\n\n将数字格式化为货币形式\n\n```arcade\nText(1234.55, '$#,###.00') // '$1,234.55'\n```\n\n将数字进行四舍五入至小数点后两位\n\n```arcade\nText(1.236, '#.00') // '1.24'\n```\n\n保持有效位数并以千为单位进行分组\n\n```arcade\nText(1234.5678, '#,##0.00#') // '1,234.568'\n```\n\n格式化数字及其正/负 - 如果存在负子模式,则仅能指定负的前缀和后缀。\n\n```arcade\nText(-2, 'Floor #;Basement #') // 'Basement 2'\n```\n\n\n\n```arcade\nText(2, 'Floor #;Basement #') // 'Floor 2'\n```\n\n乘以 100 然后表示为百分比的形式\n\n```arcade\nText(0.3, '#%') // '30%'\n```\n\n格式化当前日期和时间,例如 'Tuesday, October 25, 2016 @ 08:43:11'\n\n```arcade\nText(Now(), 'dddd, MMMM D, Y @ h:m:s')\n```\n\n`datetime` 字段中存储的日期已表示本地时间,但 Arcade 假定它为 UTC。 将本地时间偏移到 UTC 以避免两次应用时区偏移。\n\n```arcade\nText(startDate, 'ddd, MMM D, Y h:mm:ss A ZZZZ')\n// returns Thu, Sep 14, 2023 10:04:49 AM PDT\n```\n\n",
5199
5224
  "completion": {
5200
5225
  "label": "Text",
5201
5226
  "detail": "Text(value, format?) -> Text",
@@ -5367,29 +5392,54 @@
5367
5392
  "id": "date_functions",
5368
5393
  "title": "日期函数",
5369
5394
  "items": [
5395
+ {
5396
+ "type": "function",
5397
+ "name": "changetimezone",
5398
+ "bundle": "core",
5399
+ "sinceVersion": "1.24",
5400
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#changetimezone",
5401
+ "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`.",
5402
+ "examples": "\n##### 示例\n\nChanges the given Date's time zone from `America/New_York` to `America/Los_Angeles`\n\n```arcade\nvar inputDate = Date(2011,10,11,8,0,0,0, \"America/New_York\")\nChangeTimeZone(inputDate, \"America/Los_Angeles\");\n// returns a Date representing Nov 11, 2011, 5:00:00 AM PST\n```\n\nAssigns a Date with an `unknown` time zone to a time offset of `+07:00`\n\n```arcade\nvar inputDate = Date(2011,10,11,8,0,0,0, \"unknown\")\nChangeTimeZone(inputDate, \"+07:00\");\n// returns a Date representing Nov 11, 2011, 8:00:00 AM +07:00\n```\n\n",
5403
+ "completion": {
5404
+ "label": "ChangeTimeZone",
5405
+ "detail": "ChangeTimeZone(dateValue, newTimeZone) -> Date",
5406
+ "insertText": "ChangeTimeZone(${1:dateValue_}, ${2:newTimeZone_})$0",
5407
+ "insertTextMode": 2,
5408
+ "insertTextFormat": 2,
5409
+ "kind": 3,
5410
+ "documentation": {
5411
+ "kind": "markdown",
5412
+ "value": "**[起始版本 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nChanges the time zone used to display the given Date value. If the input `dateValue` has an `unknown` time zone, then the output Date value will display with the same date and time as the input `dateValue`, but will be assigned the `newTimeZone`.\n\n**参数**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - A Date value containing date and time information.\n- **newTimeZone**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - The new time zone that will be used to display the given Date value. \nThe time zone must be one of the following:\n - text representing an entry in the [IANA time zone database](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List) (e.g. `America/New_York`)\n - text representing the hours and minutes that should be added to UTC (e.g. `+07:00` or `-03:00`)\n - `system` - time zone will be set to the device or system's local time zone \n - `default` - the time zone of the profile's execution context\n - `UTC`\n - `unknown` - removes time zone information for the given value and displays the date and time as it was defined by the data source\n\n\n**返回值**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)"
5413
+ }
5414
+ },
5415
+ "parametersInfo": {
5416
+ "min": 2,
5417
+ "max": 2
5418
+ }
5419
+ },
5370
5420
  [
5371
5421
  {
5372
5422
  "type": "function",
5373
5423
  "name": "date",
5374
5424
  "bundle": "core",
5375
5425
  "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#date1",
5376
- "description": "从一组参数创建一个日期对象。 默认情况下,日期以客户端或系统的本地时间创建。",
5377
- "examples": "\n##### 示例\n\n以正在运行 Arcade 函数的系统的本地时间创建一个表示给定时间的日期\n\n```arcade\n// Date that represents Jun 02, 1987, 12:00:00 AM PST\nDate(1987,05,02)\n```\n\n以正在运行 Arcade 函数的系统的本地时间创建一个表示当前时间的日期\n\n```arcade\n// Date represents Jan 27, 2023, 12:41:20 PM PST\nDate()\n```\n\n",
5426
+ "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.",
5427
+ "examples": "\n##### 示例\n\nCreates a Date representing the given time in the time zone of the profile's execution context running Arcade\n\n```arcade\n// Date that represents Jun 02, 1987, 12:00:00 AM PST\nDate(1987,05,02)\n```\n\nCreates a Date with time defined in a specific time zone\n\n```arcade\nDate(1990, 10, 2, 2, 23, 0, 0, \"America/New_York\");\n // Date represents Nov 2, 1990, 2:23:00 AM EST\n```\n\n",
5378
5428
  "completion": {
5379
5429
  "label": "Date",
5380
- "detail": "Date(year, month, day, hour?, minute?, second?, millisecond?) -> Date",
5430
+ "detail": "Date(year, month, day, hour?, minute?, second?, millisecond?, timeZone?) -> Date",
5381
5431
  "insertText": "Date(${1:year_}, ${2:month_}, ${3:day_})$0",
5382
5432
  "insertTextMode": 2,
5383
5433
  "insertTextFormat": 2,
5384
5434
  "kind": 3,
5385
5435
  "documentation": {
5386
5436
  "kind": "markdown",
5387
- "value": "从一组参数创建一个日期对象。 默认情况下,日期以客户端或系统的本地时间创建。\n\n**参数**\n\n- **year**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - 代表年的数字。\n- **month**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - 月份 (0-11),其中 `0` 是一月,`11` 是十二月。\n- **day**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - (1-31)。\n- **hour** (_Optional_): [Number](https://developers.arcgis.com/arcade/guide/types/#number) - 小时 (0-23)。\n- **minute** (_Optional_): [Number](https://developers.arcgis.com/arcade/guide/types/#number) - 分钟 (0-59)。\n- **second** (_Optional_): [Number](https://developers.arcgis.com/arcade/guide/types/#number) - (0-59)。\n- **millisecond** (_Optional_): [Number](https://developers.arcgis.com/arcade/guide/types/#number) - 毫秒 (0-999)。\n\n**返回值**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)"
5437
+ "value": "Creates a Date object from a set of parameters. By default, Dates are created in the time zone of the profile's execution context.\n\n**参数**\n\n- **year**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - A number representing a year.\n- **month**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - The month (0-11) where `0` is January and `11` is December.\n- **day**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - The day of the month (1-31).\n- **hour** (_Optional_): [Number](https://developers.arcgis.com/arcade/guide/types/#number) - The hour of the day (0-23).\n- **minute** (_Optional_): [Number](https://developers.arcgis.com/arcade/guide/types/#number) - The minute of the hour (0-59).\n- **second** (_Optional_): [Number](https://developers.arcgis.com/arcade/guide/types/#number) - The second of the minute (0-59).\n- **millisecond** (_Optional_): [Number](https://developers.arcgis.com/arcade/guide/types/#number) - The millisecond of the second (0-999).\n- **timeZone** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) - _Since 1.24_ The time zone of the Date. If not specified, the Date will be created in the default time zone of the profile's execution context. \nPossible values:\n - text representing an entry in the [IANA time zone database](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List) (e.g. `America/New_York`)\n - text representing the hours and minutes that should be added to UTC (e.g. `+07:00` or `-03:00`)\n - `system` - time zone will be set to the device or system's local time zone \n - `default` - the time zone of the profile's execution context\n - `UTC`\n - `unknown` - removes time zone information for the given value and displays the date and time as it was defined by the data source\n\n\n**返回值**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)"
5388
5438
  }
5389
5439
  },
5390
5440
  "parametersInfo": {
5391
5441
  "min": 3,
5392
- "max": 7
5442
+ "max": 8
5393
5443
  }
5394
5444
  },
5395
5445
  {
@@ -5397,8 +5447,8 @@
5397
5447
  "name": "date",
5398
5448
  "bundle": "core",
5399
5449
  "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#date2",
5400
- "description": "以客户机或系统的本地时区,使用给定的 Unix 纪元编号创建日期。",
5401
- "examples": "\n##### 示例\n\n自 1970 1 月 1 日 以来的毫秒数\n\n```arcade\nDate(1476987783555) // 'Thu Oct 20 2016 11:23:03 GMT-0700 (PDT)'\n```\n\n",
5450
+ "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.",
5451
+ "examples": "\n##### 示例\n\nMilliseconds since January 1, 1970\n\n```arcade\nDate(1476987783555) // 'Thu Oct 20 2016 11:23:03 GMT-0700 (PDT)'\n```\n\nCreates a Date representing the current time in the time zone of the profile's execution context running Arcade\n\n```arcade\n// Date represents Jan 27, 2023, 12:41:20 PM PST\nDate()\n```\n\n",
5402
5452
  "completion": {
5403
5453
  "label": "Date",
5404
5454
  "detail": "Date(epoch?) -> Date",
@@ -5408,7 +5458,7 @@
5408
5458
  "kind": 3,
5409
5459
  "documentation": {
5410
5460
  "kind": "markdown",
5411
- "value": "以客户机或系统的本地时区,使用给定的 Unix 纪元编号创建日期。\n\n**参数**\n\n- **epoch** (_Optional_): [Number](https://developers.arcgis.com/arcade/guide/types/#number) - 1970 1 1 (UTC) 以来的毫秒数。\n\n**返回值**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)"
5461
+ "value": "Creates a Date with the given Unix epoch number. By default, the Date will display in the time zone of the profile's execution context. If no epoch is provided, creates a Date at the current date and time in the default time zone of the profile.\n\n**参数**\n\n- **epoch** (_Optional_): [Number](https://developers.arcgis.com/arcade/guide/types/#number) - The number of milliseconds since January 1, 1970 UTC.\n\n**返回值**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)"
5412
5462
  }
5413
5463
  },
5414
5464
  "parametersInfo": {
@@ -5421,8 +5471,8 @@
5421
5471
  "name": "date",
5422
5472
  "bundle": "core",
5423
5473
  "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#date3",
5424
- "description": " ISO 8601 文本值转换为客户端或系统本地时区的日期对象。",
5425
- "examples": "\n##### 示例\n\nISO 8601 文本值\n\n```arcade\nDate('2016-10-20T17:41:37+00:00') // 'Thu Oct 20 2016 10:41:37 GMT-0700 (PDT)'\n```\n\n",
5474
+ "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.",
5475
+ "examples": "\n##### 示例\n\nCreates a Date from an ISO 8601 text value with a known time offset\n\n```arcade\nDate('2016-10-20T17:41:37+00:00') // 'Thu Oct 20 2016 10:41:37 GMT-0700 (PDT)'\n```\n\nCreates a Date from an ISO 8601 text value with an unknown time offset\n\n```arcade\nDate('2016-10-20T17:41:37') // 'Thu Oct 20 2016 5:41:37 PM PDT'\n```\n\n",
5426
5476
  "completion": {
5427
5477
  "label": "Date",
5428
5478
  "detail": "Date(timestamp?) -> Date",
@@ -5432,154 +5482,386 @@
5432
5482
  "kind": 3,
5433
5483
  "documentation": {
5434
5484
  "kind": "markdown",
5435
- "value": " ISO 8601 文本值转换为客户端或系统本地时区的日期对象。\n\n**参数**\n\n- **timestamp** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) - 要转换为日期的 ISO 8601 文本值。\n\n**返回值**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)"
5485
+ "value": "Creates a Date value from an ISO 8601 text value. If a UTC offset is provided, the date will still be displayed in the time zone of the profile. If no text value is provided, creates a date at the current date and time in the time zone of the profile.\n\n**参数**\n\n- **timestamp** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) - An ISO 8601 text value to be converted into a Date.\n\n**返回值**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)"
5436
5486
  }
5437
5487
  },
5438
5488
  "parametersInfo": {
5439
5489
  "min": 0,
5440
5490
  "max": 1
5441
5491
  }
5492
+ },
5493
+ {
5494
+ "type": "function",
5495
+ "name": "date",
5496
+ "bundle": "core",
5497
+ "sinceVersion": "1.24",
5498
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#date4",
5499
+ "description": "Creates a Date from a DateOnly value, with an optional Time and time zone value.",
5500
+ "examples": "\n##### 示例\n\nCreates a Date from a DateOnly and time type\n\n```arcade\nDate(DateOnly(2022,10,11), Time(\"11:20 am\"))\n// returns a Date representing Nov 11, 2022, 11:20:00 AM in an unknown time zone\n```\n\n",
5501
+ "completion": {
5502
+ "label": "Date",
5503
+ "detail": "Date(dateOnlyValue, timeValue?, timeZone?) -> Date",
5504
+ "insertText": "Date(${1:dateOnlyValue_})$0",
5505
+ "insertTextMode": 2,
5506
+ "insertTextFormat": 2,
5507
+ "kind": 3,
5508
+ "documentation": {
5509
+ "kind": "markdown",
5510
+ "value": "**[起始版本 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nCreates a Date from a DateOnly value, with an optional Time and time zone value.\n\n**参数**\n\n- **dateOnlyValue**: DateOnly - The DateOnly value from which to create a Date value.\n- **timeValue** (_Optional_): Time - The Time value for the Date. If not specified, the Date will be created with a time of `00:00:00`.\n- **timeZone** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) - The time zone of the Date. If not specified, the Date will be created in the `unknown` time zone. \nPossible values:\n - text representing an entry in the [IANA time zone database](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List) (e.g. `America/New_York`)\n - text representing the hours and minutes that should be added to UTC (e.g. `+07:00` or `-03:00`)\n - `system` - time zone will be set to the device or system's local time zone \n - `default` - the time zone of the profile's execution context\n - `UTC`\n - `unknown` - removes time zone information for the given value and displays the date and time as it was defined by the data source\n\n\n**返回值**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)"
5511
+ }
5512
+ },
5513
+ "parametersInfo": {
5514
+ "min": 1,
5515
+ "max": 3
5516
+ }
5517
+ },
5518
+ {
5519
+ "type": "function",
5520
+ "name": "date",
5521
+ "bundle": "core",
5522
+ "sinceVersion": "1.24",
5523
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#date5",
5524
+ "description": "Creates a copy of the given Date.",
5525
+ "examples": "\n##### 示例\n\nCreates a copy of the current Date value\n\n```arcade\nvar copiedDate = Date(Now())\n```\n\n",
5526
+ "completion": {
5527
+ "label": "Date",
5528
+ "detail": "Date(dateValue) -> Date",
5529
+ "insertText": "Date(${1:dateValue_})$0",
5530
+ "insertTextMode": 2,
5531
+ "insertTextFormat": 2,
5532
+ "kind": 3,
5533
+ "documentation": {
5534
+ "kind": "markdown",
5535
+ "value": "**[起始版本 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nCreates a copy of the given Date.\n\n**参数**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - The Date to copy.\n\n**返回值**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)"
5536
+ }
5537
+ },
5538
+ "parametersInfo": {
5539
+ "min": 1,
5540
+ "max": 1
5541
+ }
5442
5542
  }
5443
5543
  ],
5444
- {
5445
- "type": "function",
5446
- "name": "dateadd",
5447
- "bundle": "core",
5448
- "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#dateadd",
5449
- "description": "以给定单位向日期添加指定的时间量,并返回新的日期。",
5450
- "examples": "\n##### 示例\n\n在所提供字段的日期中增加 7 天\n\n```arcade\nvar startDate = Date($feature.dateField);\nvar oneWeekLater = DateAdd(startDate, 7, 'days');\nreturn oneWeekLater;\n```\n\n",
5451
- "completion": {
5452
- "label": "DateAdd",
5453
- "detail": "DateAdd(dateValue, addValue, units?) -> Date",
5454
- "insertText": "DateAdd(${1:dateValue_}, ${2:addValue_})$0",
5455
- "insertTextMode": 2,
5456
- "insertTextFormat": 2,
5457
- "kind": 3,
5458
- "documentation": {
5459
- "kind": "markdown",
5460
- "value": "以给定单位向日期添加指定的时间量,并返回新的日期。\n\n**参数**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - 要添加时间的输入日期。\n- **addValue**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - 以给定单位添加到日期的值。\n- **units** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) - 添加到日期的数字单位。 默认值为“毫秒”。 受支持的单位类型为毫秒、秒、分钟、小时、天、月和年\n\n**返回值**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)"
5544
+ [
5545
+ {
5546
+ "type": "function",
5547
+ "name": "dateadd",
5548
+ "bundle": "core",
5549
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#dateadd1",
5550
+ "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.",
5551
+ "examples": "\n##### 示例\n\nAdds 7 days to the given Date\n\n```arcade\nvar startDate = Date(2023, 9, 1, 12, 00);\nvar oneWeekLater = DateAdd(startDate, 7, 'days');\nreturn oneWeekLater;\n// returns a Date representing Oct 8, 2023, 12:00:00 PM PDT\n```\n\n",
5552
+ "completion": {
5553
+ "label": "DateAdd",
5554
+ "detail": "DateAdd(dateValue, addValue, units?) -> Date",
5555
+ "insertText": "DateAdd(${1:dateValue_}, ${2:addValue_})$0",
5556
+ "insertTextMode": 2,
5557
+ "insertTextFormat": 2,
5558
+ "kind": 3,
5559
+ "documentation": {
5560
+ "kind": "markdown",
5561
+ "value": "Adds a specified amount of time in the given units to a Date and returns a new Date. If the Date has an IANA time zone, then daylight saving and other time zone driven logic will apply.\n\n**参数**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - The input Date to which to add time.\n- **addValue**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - The value to add to the Date in the given units.\n- **units** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) - The units of the number to add to the Date. Default is `milliseconds`. The supported unit types include `milliseconds`, `seconds`, `minutes`, `hours`, `days`, `months`, `years`\n\n**返回值**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)"
5562
+ }
5563
+ },
5564
+ "parametersInfo": {
5565
+ "min": 2,
5566
+ "max": 3
5461
5567
  }
5462
5568
  },
5463
- "parametersInfo": {
5464
- "min": 2,
5465
- "max": 3
5466
- }
5467
- },
5468
- {
5469
- "type": "function",
5470
- "name": "datediff",
5471
- "bundle": "core",
5472
- "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#datediff",
5473
- "description": "将两个日期相减,并以指定的单位返回差值。",
5474
- "examples": "\n##### 示例\n\n将两个日期相减,并返回时间段\n\n```arcade\nvar startDate = Date($feature.startDateField);\nvar endDate = Date($feature.endDateField);\nvar age = DateDiff(endDate, startDate, 'years');\nreturn age;\n```\n\n",
5475
- "completion": {
5476
- "label": "DateDiff",
5477
- "detail": "DateDiff(date1, date2, units?) -> Number",
5478
- "insertText": "DateDiff(${1:date1_}, ${2:date2_})$0",
5479
- "insertTextMode": 2,
5480
- "insertTextFormat": 2,
5481
- "kind": 3,
5482
- "documentation": {
5483
- "kind": "markdown",
5484
- "value": "将两个日期相减,并以指定的单位返回差值。\n\n**参数**\n\n- **date1**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - 从中减去第二个日期的日期值。\n- **date2**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - 要从第一个给定日期中减去的日期值。\n- **units** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) - 返回两个给定日期差值的单位。 受支持的单位类型为毫秒、秒、分钟、小时、天、月和年。 默认值为毫秒。\n\n**返回值**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
5569
+ {
5570
+ "type": "function",
5571
+ "name": "dateadd",
5572
+ "bundle": "core",
5573
+ "sinceVersion": "1.24",
5574
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#dateadd2",
5575
+ "description": "Adds a specified amount of time in the given units to a DateOnly value and returns a new DateOnly value.",
5576
+ "examples": "\n##### 示例\n\nAdds 7 days to the Date in the provided field\n\n```arcade\nvar startDate = DateOnly(2023,5,4); // equivalent to 2023-06-04\nvar oneWeekLater = DateAdd(startDate, 7, 'days');\nreturn oneWeekLater;\n// returns 2023-06-11\n```\n\nAdds 12 hours to the Date in the provided field\n\n```arcade\nvar startDate = DateOnly(2023,5,4); // equivalent to 2023-06-04\nvar hoursLater = DateAdd(startDate, 12, 'hours');\nreturn hoursLater;\n// returns the original start date, 2023-06-04\n// since 12 hours < 1 day, the DateOnly input is not changed\n```\n\n",
5577
+ "completion": {
5578
+ "label": "DateAdd",
5579
+ "detail": "DateAdd(dateOnlyValue, addValue, units?) -> DateOnly",
5580
+ "insertText": "DateAdd(${1:dateOnlyValue_}, ${2:addValue_})$0",
5581
+ "insertTextMode": 2,
5582
+ "insertTextFormat": 2,
5583
+ "kind": 3,
5584
+ "documentation": {
5585
+ "kind": "markdown",
5586
+ "value": "**[起始版本 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nAdds a specified amount of time in the given units to a DateOnly value and returns a new DateOnly value.\n\n**参数**\n\n- **dateOnlyValue**: DateOnly - The input DateOnly value to which to add time.\n- **addValue**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - The value to add to the date in the given units. For DateOnly inputs, this value will be rounded down to the nearest day based on a 24-hour interval. If the value to be added is less than 24 hours, then no value will be added to the DateOnly input.\n- **units** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) - The units of the number to add to the date. Default is `milliseconds`. The supported unit types include `milliseconds`, `seconds`, `minutes`, `hours`, `days`, `months`, `years`\n\n**返回值**: DateOnly"
5587
+ }
5588
+ },
5589
+ "parametersInfo": {
5590
+ "min": 2,
5591
+ "max": 3
5485
5592
  }
5486
5593
  },
5487
- "parametersInfo": {
5488
- "min": 2,
5489
- "max": 3
5594
+ {
5595
+ "type": "function",
5596
+ "name": "dateadd",
5597
+ "bundle": "core",
5598
+ "sinceVersion": "1.24",
5599
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#dateadd3",
5600
+ "description": "Adds a specified amount of time in the given units to a Time value and returns a new Time value.",
5601
+ "examples": "\n##### 示例\n\nAdds 7 hours to the given Time\n\n```arcade\nvar startTime = Time(11,30); // equivalent to 11:30:00\nvar hoursLater = DateAdd(startTime, 7, 'hours');\nreturn hoursLater;\n// returns 18:30:00\n```\n\nAdds 90 seconds to the given Time\n\n```arcade\nvar startTime = Time(11,30); // equivalent to 11:30:00\nvar secondsLater = DateAdd(startTime, 90, \"seconds\");\nreturn secondsLater;\n// returns 11:31:30\n```\n\nAdds 25 hours to the given Time\n\n```arcade\nvar startTime = Time(11,30); // equivalent to 11:30:00\nvar hoursLater = DateAdd(startTime, 25, 'hours');\nreturn hoursLater;\n// returns 12:30:00\n```\n\n",
5602
+ "completion": {
5603
+ "label": "DateAdd",
5604
+ "detail": "DateAdd(timeValue, addValue, units?) -> Time",
5605
+ "insertText": "DateAdd(${1:timeValue_}, ${2:addValue_})$0",
5606
+ "insertTextMode": 2,
5607
+ "insertTextFormat": 2,
5608
+ "kind": 3,
5609
+ "documentation": {
5610
+ "kind": "markdown",
5611
+ "value": "**[起始版本 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nAdds a specified amount of time in the given units to a Time value and returns a new Time value.\n\n**参数**\n\n- **timeValue**: Time - The input Time value to which to add time.\n- **addValue**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - The value to add to the time in the given units.\n- **units** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) - The units of the number to add to the date. Default is `milliseconds`. The supported unit types include `milliseconds`, `seconds`, `minutes`, `hours`\n\n**返回值**: Time"
5612
+ }
5613
+ },
5614
+ "parametersInfo": {
5615
+ "min": 2,
5616
+ "max": 3
5617
+ }
5490
5618
  }
5491
- },
5492
- {
5493
- "type": "function",
5494
- "name": "day",
5495
- "bundle": "core",
5496
- "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#day",
5497
- "description": "返回给定日期月份中的某天。",
5498
- "examples": "\n##### 示例\n\n获取当前日期月份中的某天\n\n```arcade\nDay(Now())\n```\n\n",
5499
- "completion": {
5500
- "label": "Day",
5501
- "detail": "Day(dateValue) -> Number",
5502
- "insertText": "Day(${1:dateValue_})$0",
5503
- "insertTextMode": 2,
5504
- "insertTextFormat": 2,
5505
- "kind": 3,
5506
- "documentation": {
5507
- "kind": "markdown",
5508
- "value": "返回给定日期月份中的某天。\n\n**参数**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - 从中获取月份的某天的日期值。\n\n**返回值**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
5619
+ ],
5620
+ [
5621
+ {
5622
+ "type": "function",
5623
+ "name": "datediff",
5624
+ "bundle": "core",
5625
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#datediff1",
5626
+ "description": "Subtracts two Dates, and returns the difference in the specified units.",
5627
+ "examples": "\n##### 示例\n\nSubtracts two Dates and returns the age\n\n```arcade\nvar startDate = Date($feature.startDateField);\nvar endDate = Date($feature.endDateField);\nvar age = DateDiff(endDate, startDate, 'years');\nreturn age;\n```\n\nSubtracts two Dates and returns the difference. Since the time zone is Los Angeles\n\n```arcade\nvar startDate = Date(2022,2,23,2,23,22,0, \"America/New_York\"); // Mar 23, 2022, 2:23:22 AM EDT\nvar endDate = Date(2022,2,23,5,23,22,0, \"unknown\"); // Mar 23, 2022, 5:23:22 AM\n\nDateDiff(endDate, startDate, 'hours')\n// returns 3, since the Date with an unknown time zone is assumed to be New York time before the difference is calculated\n\nDateDiff(endDate, startDate, 'hours', \"America/Los_Angeles\");\n// returns 6, since the Date with an unknown time zone is now considered to be Los Angeles time before the difference is calculated\n```\n\n",
5628
+ "completion": {
5629
+ "label": "DateDiff",
5630
+ "detail": "DateDiff(date1, date2, units?, timeZone?) -> Number",
5631
+ "insertText": "DateDiff(${1:date1_}, ${2:date2_})$0",
5632
+ "insertTextMode": 2,
5633
+ "insertTextFormat": 2,
5634
+ "kind": 3,
5635
+ "documentation": {
5636
+ "kind": "markdown",
5637
+ "value": "Subtracts two Dates, and returns the difference in the specified units.\n\n**参数**\n\n- **date1**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - The Date value from which to subtract a second Date.\n- **date2**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - The Date value to subtract from the first given Date.\n- **units** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) - The units in which to return the difference of the two given Dates. The supported unit types include `milliseconds`, `seconds`, `minutes`, `hours`, `days`, `months`, `years`. The default value is `milliseconds`.\n- **timeZone** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) - _Since version 1.24_ The time zone to assign to input Dates with an unknown time zone. If not specified, then the following will happen: (1) If one input has a defined time zone and the other is unknown, then the value with the unknown time zone will assume a time zone that matches the other input. (2) If both inputs are unknown time zones, then the DateDiff will be calculated on both Dates as if they were defined in the same time zone. \nPossible values: \n - text representing an entry in the [IANA time zone database](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List) (e.g. `America/New_York`)\n - text representing the hours and minutes that should be added to UTC (e.g. `+07:00` or `-03:00`)\n - `system` - time zone will be set to the device or system's local time zone \n - `default` - the time zone of the profile's execution context\n - `UTC`\n - `unknown` - removes time zone information for the given value and displays the date and time as it was defined by the data source\n\n\n**返回值**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
5638
+ }
5639
+ },
5640
+ "parametersInfo": {
5641
+ "min": 2,
5642
+ "max": 4
5509
5643
  }
5510
5644
  },
5511
- "parametersInfo": {
5512
- "min": 1,
5513
- "max": 1
5514
- }
5515
- },
5516
- {
5517
- "type": "function",
5518
- "name": "hour",
5519
- "bundle": "core",
5520
- "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#hour",
5521
- "description": "返回给定日期中时间的某小时(0-23)",
5522
- "examples": "\n##### 示例\n\n获取当前时间的某小时\n\n```arcade\nHour(Now())\n```\n\n",
5523
- "completion": {
5524
- "label": "Hour",
5525
- "detail": "Hour(dateValue) -> Number",
5526
- "insertText": "Hour(${1:dateValue_})$0",
5527
- "insertTextMode": 2,
5528
- "insertTextFormat": 2,
5529
- "kind": 3,
5530
- "documentation": {
5531
- "kind": "markdown",
5532
- "value": "返回给定日期中时间的某小时(0-23)。\n\n**参数**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - 从中获取时间的某小时的日期值。\n\n**返回值**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
5645
+ {
5646
+ "type": "function",
5647
+ "name": "datediff",
5648
+ "bundle": "core",
5649
+ "sinceVersion": "1.24",
5650
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#datediff2",
5651
+ "description": "Subtracts two DateOnly values, and returns the difference in the specified units.",
5652
+ "examples": "\n##### 示例\n\nSubtracts two DateOnly values and returns the difference in years\n\n```arcade\nvar startDate = DateOnly(1996,11,10);\nvar endDate = DateOnly(); // today's date\nvar age = DateDiff(endDate, startDate, 'years');\nFloor(age); // round down\n// returns 26\n```\n\n",
5653
+ "completion": {
5654
+ "label": "DateDiff",
5655
+ "detail": "DateDiff(dateOnly1, dateOnly2, units?) -> Number",
5656
+ "insertText": "DateDiff(${1:dateOnly1_}, ${2:dateOnly2_})$0",
5657
+ "insertTextMode": 2,
5658
+ "insertTextFormat": 2,
5659
+ "kind": 3,
5660
+ "documentation": {
5661
+ "kind": "markdown",
5662
+ "value": "**[起始版本 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nSubtracts two DateOnly values, and returns the difference in the specified units.\n\n**参数**\n\n- **dateOnly1**: DateOnly - The DateOnly value from which to subtract a second DateOnly value.\n- **dateOnly2**: DateOnly - The DateOnly value to subtract from the first given DateOnly value.\n- **units** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) - The units in which to return the difference of the two given DateOnly values. The supported unit types include `milliseconds`, `seconds`, `minutes`, `hours`, `days`, `months`, `years`. The default value is `milliseconds`.\n\n**返回值**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
5663
+ }
5664
+ },
5665
+ "parametersInfo": {
5666
+ "min": 2,
5667
+ "max": 3
5533
5668
  }
5534
5669
  },
5535
- "parametersInfo": {
5536
- "min": 1,
5537
- "max": 1
5670
+ {
5671
+ "type": "function",
5672
+ "name": "datediff",
5673
+ "bundle": "core",
5674
+ "sinceVersion": "1.24",
5675
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#datediff3",
5676
+ "description": "Subtracts two Time values, and returns the difference in the specified units.",
5677
+ "examples": "\n##### 示例\n\nSubtracts two Time values and returns the difference in hours\n\n```arcade\nDateDiff(Time(23,0), Time(9,0), 'hours')\n// returns 14\n```\n\n",
5678
+ "completion": {
5679
+ "label": "DateDiff",
5680
+ "detail": "DateDiff(time1, time2, units?) -> Number",
5681
+ "insertText": "DateDiff(${1:time1_}, ${2:time2_})$0",
5682
+ "insertTextMode": 2,
5683
+ "insertTextFormat": 2,
5684
+ "kind": 3,
5685
+ "documentation": {
5686
+ "kind": "markdown",
5687
+ "value": "**[起始版本 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nSubtracts two Time values, and returns the difference in the specified units.\n\n**参数**\n\n- **time1**: Time - The Time value from which to subtract a second Time value.\n- **time2**: Time - The Time value to subtract from the first given Time value.\n- **units** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) - The units in which to return the difference of the two given Time values. The supported unit types include `milliseconds`, `seconds`, `minutes`, `hours`. The default value is `milliseconds`.\n\n**返回值**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
5688
+ }
5689
+ },
5690
+ "parametersInfo": {
5691
+ "min": 2,
5692
+ "max": 3
5693
+ }
5538
5694
  }
5539
- },
5540
- {
5541
- "type": "function",
5542
- "name": "isomonth",
5543
- "bundle": "core",
5544
- "sinceVersion": "1.12",
5545
- "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#isomonth",
5546
- "description": "基于 ISO 8601 标准返回给定日期的月份。 值的范围从 1 到 12,其中一月为 `1`,十二月为 `12`。",
5547
- "examples": "\n##### 示例\n\n基于 ISO 8601 标准获取给定日期的月份。 对于十二月返回 `12`。\n\n```arcade\nISOMonth(Date(1980, 11, 31))\n```\n\n",
5548
- "completion": {
5549
- "label": "ISOMonth",
5550
- "detail": "ISOMonth(dateValue) -> Number",
5551
- "insertText": "ISOMonth(${1:dateValue_})$0",
5552
- "insertTextMode": 2,
5553
- "insertTextFormat": 2,
5554
- "kind": 3,
5555
- "documentation": {
5556
- "kind": "markdown",
5557
- "value": "**[起始版本 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\n基于 ISO 8601 标准返回给定日期的月份。 值的范围从 1 到 12,其中一月为 `1`,十二月为 `12`。\n\n**参数**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - 从中获取月份的日期值。\n\n**返回值**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
5695
+ ],
5696
+ [
5697
+ {
5698
+ "type": "function",
5699
+ "name": "dateonly",
5700
+ "bundle": "core",
5701
+ "sinceVersion": "1.24",
5702
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#dateonly1",
5703
+ "description": "Creates a DateOnly value based on the current date in the time zone of the profile's execution context.",
5704
+ "examples": "\n##### 示例\n\nReturns the current DateOnly (no time)\n\n```arcade\nDateOnly()\n// returns the current date, i.e. 2023-09-12\n```\n\n",
5705
+ "completion": {
5706
+ "label": "DateOnly",
5707
+ "detail": "DateOnly() -> DateOnly",
5708
+ "insertText": "DateOnly($0)",
5709
+ "insertTextMode": 2,
5710
+ "insertTextFormat": 2,
5711
+ "kind": 3,
5712
+ "documentation": {
5713
+ "kind": "markdown",
5714
+ "value": "**[起始版本 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nCreates a DateOnly value based on the current date in the time zone of the profile's execution context.\n\n**返回值**: DateOnly"
5715
+ }
5716
+ },
5717
+ "parametersInfo": {
5718
+ "min": 0,
5719
+ "max": 0
5558
5720
  }
5559
5721
  },
5560
- "parametersInfo": {
5561
- "min": 1,
5562
- "max": 1
5563
- }
5564
- },
5565
- {
5566
- "type": "function",
5567
- "name": "isoweek",
5568
- "bundle": "core",
5569
- "sinceVersion": "1.12",
5570
- "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#isoweek",
5571
- "description": "基于 ISO 8601 周日历返回给定日期的在一年中的周。 值的范围从 1 到 53,其中基于当年情况,一年中的第一周为 `1`,最后一周为 `52` 或 `53`。",
5572
- "examples": "\n##### 示例\n\n基于 ISO 8601 标准获取给定日期的周。 由于日期包含在下一年的第一周中,因此返回 `1`。\n\n```arcade\nISOWeek(Date(1980, 11, 31))\n```\n\n",
5722
+ {
5723
+ "type": "function",
5724
+ "name": "dateonly",
5725
+ "bundle": "core",
5726
+ "sinceVersion": "1.24",
5727
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#dateonly2",
5728
+ "description": "Creates a DateOnly value from a given date.",
5729
+ "examples": "\n##### 示例\n\nReturns the DateOnly from the given date\n\n```arcade\nDateOnly(Date(2008,10,11,10,30));\n// returns 2008-11-11\n```\n\n",
5730
+ "completion": {
5731
+ "label": "DateOnly",
5732
+ "detail": "DateOnly(dateValue) -> DateOnly",
5733
+ "insertText": "DateOnly(${1:dateValue_})$0",
5734
+ "insertTextMode": 2,
5735
+ "insertTextFormat": 2,
5736
+ "kind": 3,
5737
+ "documentation": {
5738
+ "kind": "markdown",
5739
+ "value": "**[起始版本 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nCreates a DateOnly value from a given date.\n\n**参数**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - The date from which to create the DateOnly value.\n\n**返回值**: DateOnly"
5740
+ }
5741
+ },
5742
+ "parametersInfo": {
5743
+ "min": 1,
5744
+ "max": 1
5745
+ }
5746
+ },
5747
+ {
5748
+ "type": "function",
5749
+ "name": "dateonly",
5750
+ "bundle": "core",
5751
+ "sinceVersion": "1.24",
5752
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#dateonly3",
5753
+ "description": "Creates a DateOnly date with the given Unix epoch number.",
5754
+ "examples": "\n##### 示例\n\nReturns the DateOnly from the number of milliseconds since January 1, 1970\n\n```arcade\nDateOnly(1476987783555);\n// returns 2016-10-20\n```\n\n",
5755
+ "completion": {
5756
+ "label": "DateOnly",
5757
+ "detail": "DateOnly(epoch) -> DateOnly",
5758
+ "insertText": "DateOnly(${1:epoch_})$0",
5759
+ "insertTextMode": 2,
5760
+ "insertTextFormat": 2,
5761
+ "kind": 3,
5762
+ "documentation": {
5763
+ "kind": "markdown",
5764
+ "value": "**[起始版本 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nCreates a DateOnly date with the given Unix epoch number.\n\n**参数**\n\n- **epoch**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - The number of milliseconds since January 1, 1970 UTC.\n\n**返回值**: DateOnly"
5765
+ }
5766
+ },
5767
+ "parametersInfo": {
5768
+ "min": 1,
5769
+ "max": 1
5770
+ }
5771
+ },
5772
+ {
5773
+ "type": "function",
5774
+ "name": "dateonly",
5775
+ "bundle": "core",
5776
+ "sinceVersion": "1.24",
5777
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#dateonly4",
5778
+ "description": "Creates a DateOnly value from inputs representing the year, month, and day.",
5779
+ "examples": "\n##### 示例\n\nCreates a DateOnly value from inputs representing the year, month, and day\n\n```arcade\nDateOnly(1996, 11, 10)\n// returns 1996-12-10\n```\n\n",
5780
+ "completion": {
5781
+ "label": "DateOnly",
5782
+ "detail": "DateOnly(year, month, day) -> DateOnly",
5783
+ "insertText": "DateOnly(${1:year_}, ${2:month_}, ${3:day_})$0",
5784
+ "insertTextMode": 2,
5785
+ "insertTextFormat": 2,
5786
+ "kind": 3,
5787
+ "documentation": {
5788
+ "kind": "markdown",
5789
+ "value": "**[起始版本 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nCreates a DateOnly value from inputs representing the year, month, and day.\n\n**参数**\n\n- **year**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - A number representing a year.\n- **month**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - The month (0-11) where `0` is January and `11` is December.\n- **day**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - The day of the month (1-31).\n\n**返回值**: DateOnly"
5790
+ }
5791
+ },
5792
+ "parametersInfo": {
5793
+ "min": 3,
5794
+ "max": 3
5795
+ }
5796
+ },
5797
+ {
5798
+ "type": "function",
5799
+ "name": "dateonly",
5800
+ "bundle": "core",
5801
+ "sinceVersion": "1.24",
5802
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#dateonly5",
5803
+ "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.",
5804
+ "examples": "\n##### 示例\n\nCreates a DateOnly value from a text value representing the date\n\n```arcade\nDateOnly(\"2023-05-11T13:43:18.990+01:00\");\n// returns 2023-05-11\n```\n\nCreates a DateOnly value from a text value representing the date in the given format\n\n```arcade\nDateOnly(\"10 Jan 2022\",\"D MMM Y\")\n// returns 2022-01-10\n```\n\n",
5805
+ "completion": {
5806
+ "label": "DateOnly",
5807
+ "detail": "DateOnly(dateValue, format?) -> DateOnly",
5808
+ "insertText": "DateOnly(${1:dateValue_})$0",
5809
+ "insertTextMode": 2,
5810
+ "insertTextFormat": 2,
5811
+ "kind": 3,
5812
+ "documentation": {
5813
+ "kind": "markdown",
5814
+ "value": "**[起始版本 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nCreates a DateOnly value from a text input representing an ISO formatted date, or another formatted text with an additional input indicating the date's format.\n\n**参数**\n\n- **dateValue**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - A text value representing a date. This should either be an ISO formatted date or another formatted text representing a date. If this value does not follow ISO format, the `format` parameter must be defined indicating the date's format.\n- **format** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) - A text value indicating the format of the `dateValue` input. \nPossible values: \n - `D`: Day of the month, not padded (1 - 31) \n - `DD`: Day of the month, padded (01 - 31) \n - `DDD`: Ordinal day of the year (1 - 365) \n - `d`: Day of the week (1 - 7) \n - `ddd`: Abbreviated day of the week (e.g. Mon) \n - `dddd`: Full day of the week (e.g. Monday) \n - `M`: Month number (1 - 12) \n - `MM`: Month number, padded (01 - 12) \n - `MMM`: Abbreviated month name (e.g. Jan) \n - `MMMM`: Full month name (e.g. January) \n - `Y`: Full year \n - `YY`: Two-digit year \n\n\n**返回值**: DateOnly"
5815
+ }
5816
+ },
5817
+ "parametersInfo": {
5818
+ "min": 1,
5819
+ "max": 2
5820
+ }
5821
+ },
5822
+ {
5823
+ "type": "function",
5824
+ "name": "dateonly",
5825
+ "bundle": "core",
5826
+ "sinceVersion": "1.24",
5827
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#dateonly6",
5828
+ "description": "Creates a copy of a DateOnly value.",
5829
+ "examples": "\n##### 示例\n\nCreates a copy of DateOnly value\n\n```arcade\nvar originalDateOnly = DateOnly(1996,11,10)\nvar copiedDateOnly = DateOnly(originalDateOnly)\nreturn copiedDateOnly;\n```\n\n",
5830
+ "completion": {
5831
+ "label": "DateOnly",
5832
+ "detail": "DateOnly(dateOnlyValue) -> DateOnly",
5833
+ "insertText": "DateOnly(${1:dateOnlyValue_})$0",
5834
+ "insertTextMode": 2,
5835
+ "insertTextFormat": 2,
5836
+ "kind": 3,
5837
+ "documentation": {
5838
+ "kind": "markdown",
5839
+ "value": "**[起始版本 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nCreates a copy of a DateOnly value.\n\n**参数**\n\n- **dateOnlyValue**: DateOnly - The DateOnly value to copy.\n\n**返回值**: DateOnly"
5840
+ }
5841
+ },
5842
+ "parametersInfo": {
5843
+ "min": 1,
5844
+ "max": 1
5845
+ }
5846
+ }
5847
+ ],
5848
+ {
5849
+ "type": "function",
5850
+ "name": "day",
5851
+ "bundle": "core",
5852
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#day",
5853
+ "description": "返回给定日期月份中的某天。",
5854
+ "examples": "\n##### 示例\n\n获取当前日期月份中的某天\n\n```arcade\nDay(Now())\n```\n\nReturns the day of the month from a DateOnly value\n\n```arcade\nDay(DateOnly(1996, 11, 10))\n// returns 10\n```\n\n",
5573
5855
  "completion": {
5574
- "label": "ISOWeek",
5575
- "detail": "ISOWeek(dateValue) -> Number",
5576
- "insertText": "ISOWeek(${1:dateValue_})$0",
5856
+ "label": "Day",
5857
+ "detail": "Day(dateValue) -> Number",
5858
+ "insertText": "Day(${1:dateValue_})$0",
5577
5859
  "insertTextMode": 2,
5578
5860
  "insertTextFormat": 2,
5579
5861
  "kind": 3,
5580
5862
  "documentation": {
5581
5863
  "kind": "markdown",
5582
- "value": "**[起始版本 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\n基于 ISO 8601 周日历返回给定日期的在一年中的周。 值的范围从 1 到 53,其中基于当年情况,一年中的第一周为 `1`,最后一周为 `52` 或 `53`。\n\n**参数**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - 从中获取周的日期值。\n\n**返回值**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
5864
+ "value": "返回给定日期月份中的某天。\n\n**参数**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) \\| DateOnly - 从中获取月份的某天的日期值。\n\n**返回值**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
5583
5865
  }
5584
5866
  },
5585
5867
  "parametersInfo": {
@@ -5587,24 +5869,75 @@
5587
5869
  "max": 1
5588
5870
  }
5589
5871
  },
5872
+ [
5873
+ {
5874
+ "type": "function",
5875
+ "name": "hour",
5876
+ "bundle": "core",
5877
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#hour1",
5878
+ "description": "Returns the hour of the time in the given date (0-23).",
5879
+ "examples": "\n##### 示例\n\nGets the hour of the current time\n\n```arcade\nHour(Now())\n```\n\n",
5880
+ "completion": {
5881
+ "label": "Hour",
5882
+ "detail": "Hour(dateValue) -> Number",
5883
+ "insertText": "Hour(${1:dateValue_})$0",
5884
+ "insertTextMode": 2,
5885
+ "insertTextFormat": 2,
5886
+ "kind": 3,
5887
+ "documentation": {
5888
+ "kind": "markdown",
5889
+ "value": "Returns the hour of the time in the given date (0-23).\n\n**参数**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - A Date value from which to get the hour of the time.\n\n**返回值**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
5890
+ }
5891
+ },
5892
+ "parametersInfo": {
5893
+ "min": 1,
5894
+ "max": 1
5895
+ }
5896
+ },
5897
+ {
5898
+ "type": "function",
5899
+ "name": "hour",
5900
+ "bundle": "core",
5901
+ "sinceVersion": "1.24",
5902
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#hour2",
5903
+ "description": "Returns the hour of the given time (0-23).",
5904
+ "examples": "\n##### 示例\n\nGets the hour of the time\n\n```arcade\nHour(Time(2, 59, 23))\n// returns 2\n```\n\n",
5905
+ "completion": {
5906
+ "label": "Hour",
5907
+ "detail": "Hour(timeValue) -> Number",
5908
+ "insertText": "Hour(${1:timeValue_})$0",
5909
+ "insertTextMode": 2,
5910
+ "insertTextFormat": 2,
5911
+ "kind": 3,
5912
+ "documentation": {
5913
+ "kind": "markdown",
5914
+ "value": "**[起始版本 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nReturns the hour of the given time (0-23).\n\n**参数**\n\n- **timeValue**: Time - A Time value from which to get the hour.\n\n**返回值**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
5915
+ }
5916
+ },
5917
+ "parametersInfo": {
5918
+ "min": 1,
5919
+ "max": 1
5920
+ }
5921
+ }
5922
+ ],
5590
5923
  {
5591
5924
  "type": "function",
5592
- "name": "isoweekday",
5925
+ "name": "isomonth",
5593
5926
  "bundle": "core",
5594
5927
  "sinceVersion": "1.12",
5595
- "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#isoweekday",
5596
- "description": "基于 ISO 8601 标准返回给定日期的星期。 值的范围从 1 到 7,星期一为 `1`,星期日为 `7`。",
5597
- "examples": "\n##### 示例\n\n基于 ISO 8601 标准返回给定日期的星期。 对于星期三,返回 `3`。\n\n```arcade\nISOWeekday(Date(1980, 11, 31))\n```\n\n",
5928
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#isomonth",
5929
+ "description": "基于 ISO 8601 标准返回给定日期的月份。 值的范围从 1 到 12,其中一月为 `1`,十二月为 `12`。",
5930
+ "examples": "\n##### 示例\n\n基于 ISO 8601 标准获取给定日期的月份。 对于十二月返回 `12`。\n\n```arcade\nISOMonth(Date(1980, 11, 31))\n```\n\nGets the month of the given DateOnly value, based on the ISO 8601 standard.\n\n```arcade\nISOMonth(DateOnly(1996, 0, 10))\n// returns 1, for January\n```\n\n",
5598
5931
  "completion": {
5599
- "label": "ISOWeekday",
5600
- "detail": "ISOWeekday(dateValue) -> Number",
5601
- "insertText": "ISOWeekday(${1:dateValue_})$0",
5932
+ "label": "ISOMonth",
5933
+ "detail": "ISOMonth(dateValue) -> Number",
5934
+ "insertText": "ISOMonth(${1:dateValue_})$0",
5602
5935
  "insertTextMode": 2,
5603
5936
  "insertTextFormat": 2,
5604
5937
  "kind": 3,
5605
5938
  "documentation": {
5606
5939
  "kind": "markdown",
5607
- "value": "**[起始版本 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\n基于 ISO 8601 标准返回给定日期的星期。 值的范围从 1 到 7,星期一为 `1`,星期日为 `7`。\n\n**参数**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - 从中返回星期的日期值。\n\n**返回值**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
5940
+ "value": "**[起始版本 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\n基于 ISO 8601 标准返回给定日期的月份。 值的范围从 1 到 12,其中一月为 `1`,十二月为 `12`。\n\n**参数**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) \\| DateOnly - 从中获取月份的日期值。\n\n**返回值**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
5608
5941
  }
5609
5942
  },
5610
5943
  "parametersInfo": {
@@ -5614,22 +5947,22 @@
5614
5947
  },
5615
5948
  {
5616
5949
  "type": "function",
5617
- "name": "isoyear",
5950
+ "name": "isoweek",
5618
5951
  "bundle": "core",
5619
5952
  "sinceVersion": "1.12",
5620
- "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#isoyear",
5621
- "description": "基于 ISO 8601 周日历返回给定日期的年份。",
5622
- "examples": "\n##### 示例\n\n基于 ISO 8601 周日历获取给定日期的年份。 由于日期包含在下一年的第一周中,因此返回 `1981`。\n\n```arcade\nISOYear(Date(1980, 11, 31))\n```\n\n",
5953
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#isoweek",
5954
+ "description": "基于 ISO 8601 周日历返回给定日期的在一年中的周。 值的范围从 1 到 53,其中基于当年情况,一年中的第一周为 `1`,最后一周为 `52` 或 `53`。",
5955
+ "examples": "\n##### 示例\n\n基于 ISO 8601 标准获取给定日期的周。 由于日期包含在下一年的第一周中,因此返回 `1`。\n\n```arcade\nISOWeek(Date(1980, 11, 31))\n```\n\nGets the week of the given DateOnly value, based on the ISO 8601 standard.\n\n```arcade\nISOWeek(DateOnly(1996, 11, 10))\n// returns 50\n```\n\n",
5623
5956
  "completion": {
5624
- "label": "ISOYear",
5625
- "detail": "ISOYear(dateValue) -> Number",
5626
- "insertText": "ISOYear(${1:dateValue_})$0",
5957
+ "label": "ISOWeek",
5958
+ "detail": "ISOWeek(dateValue) -> Number",
5959
+ "insertText": "ISOWeek(${1:dateValue_})$0",
5627
5960
  "insertTextMode": 2,
5628
5961
  "insertTextFormat": 2,
5629
5962
  "kind": 3,
5630
5963
  "documentation": {
5631
5964
  "kind": "markdown",
5632
- "value": "**[起始版本 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\n基于 ISO 8601 周日历返回给定日期的年份。\n\n**参数**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - 从中获取年份的日期值。\n\n**返回值**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
5965
+ "value": "**[起始版本 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\n基于 ISO 8601 周日历返回给定日期的在一年中的周。 值的范围从 1 到 53,其中基于当年情况,一年中的第一周为 `1`,最后一周为 `52` 或 `53`。\n\n**参数**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) \\| DateOnly - 从中获取周的日期值。\n\n**返回值**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
5633
5966
  }
5634
5967
  },
5635
5968
  "parametersInfo": {
@@ -5639,21 +5972,22 @@
5639
5972
  },
5640
5973
  {
5641
5974
  "type": "function",
5642
- "name": "millisecond",
5975
+ "name": "isoweekday",
5643
5976
  "bundle": "core",
5644
- "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#millisecond",
5645
- "description": "返回日期中时间的某毫秒。",
5646
- "examples": "\n##### 示例\n\n获取当前时间的某毫秒\n\n```arcade\nMillisecond(Now())\n```\n\n",
5977
+ "sinceVersion": "1.12",
5978
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#isoweekday",
5979
+ "description": "基于 ISO 8601 标准返回给定日期的星期。 值的范围从 1 到 7,星期一为 `1`,星期日为 `7`。",
5980
+ "examples": "\n##### 示例\n\n基于 ISO 8601 标准返回给定日期的星期。 对于星期三,返回 `3`。\n\n```arcade\nISOWeekday(Date(1980, 11, 31))\n```\n\nReturns the day of the week of the given DateOnly value, based on the ISO 8601 standard.\n\n```arcade\nISOWeekday(DateOnly(1996, 11, 10))\n// returns 2, for Tuesday\n```\n\n",
5647
5981
  "completion": {
5648
- "label": "Millisecond",
5649
- "detail": "Millisecond(dateValue) -> Number",
5650
- "insertText": "Millisecond(${1:dateValue_})$0",
5982
+ "label": "ISOWeekday",
5983
+ "detail": "ISOWeekday(dateValue) -> Number",
5984
+ "insertText": "ISOWeekday(${1:dateValue_})$0",
5651
5985
  "insertTextMode": 2,
5652
5986
  "insertTextFormat": 2,
5653
5987
  "kind": 3,
5654
5988
  "documentation": {
5655
5989
  "kind": "markdown",
5656
- "value": "返回日期中时间的某毫秒。\n\n**参数**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - 从中获取时间的某毫秒的日期值。\n\n**返回值**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
5990
+ "value": "**[起始版本 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\n基于 ISO 8601 标准返回给定日期的星期。 值的范围从 1 到 7,星期一为 `1`,星期日为 `7`。\n\n**参数**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) \\| DateOnly - 从中返回星期的日期值。\n\n**返回值**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
5657
5991
  }
5658
5992
  },
5659
5993
  "parametersInfo": {
@@ -5663,21 +5997,22 @@
5663
5997
  },
5664
5998
  {
5665
5999
  "type": "function",
5666
- "name": "minute",
6000
+ "name": "isoyear",
5667
6001
  "bundle": "core",
5668
- "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#minute",
5669
- "description": "返回给定日期中时间的某分钟。",
5670
- "examples": "\n##### 示例\n\n获取当前时间的某分钟\n\n```arcade\nMinute(Now())\n```\n\n",
6002
+ "sinceVersion": "1.12",
6003
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#isoyear",
6004
+ "description": "基于 ISO 8601 周日历返回给定日期的年份。",
6005
+ "examples": "\n##### 示例\n\n基于 ISO 8601 周日历获取给定日期的年份。 由于日期包含在下一年的第一周中,因此返回 `1981`。\n\n```arcade\nISOYear(Date(1980, 11, 31))\n```\n\nGets the year of the given DateOnly value, based on the ISO 8601 week date calendar.\n\n```arcade\nISOYear(DateOnly(1996, 11, 10))\n// returns 1996\n```\n\n",
5671
6006
  "completion": {
5672
- "label": "Minute",
5673
- "detail": "Minute(dateValue) -> Number",
5674
- "insertText": "Minute(${1:dateValue_})$0",
6007
+ "label": "ISOYear",
6008
+ "detail": "ISOYear(dateValue) -> Number",
6009
+ "insertText": "ISOYear(${1:dateValue_})$0",
5675
6010
  "insertTextMode": 2,
5676
6011
  "insertTextFormat": 2,
5677
6012
  "kind": 3,
5678
6013
  "documentation": {
5679
6014
  "kind": "markdown",
5680
- "value": "返回给定日期中时间的某分钟。\n\n**参数**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - 从中获取时间的某分钟的日期值。\n\n**返回值**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
6015
+ "value": "**[起始版本 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\n基于 ISO 8601 周日历返回给定日期的年份。\n\n**参数**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) \\| DateOnly - 从中获取年份的日期值。\n\n**返回值**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
5681
6016
  }
5682
6017
  },
5683
6018
  "parametersInfo": {
@@ -5685,13 +6020,115 @@
5685
6020
  "max": 1
5686
6021
  }
5687
6022
  },
6023
+ [
6024
+ {
6025
+ "type": "function",
6026
+ "name": "millisecond",
6027
+ "bundle": "core",
6028
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#millisecond1",
6029
+ "description": "Returns the millisecond of the time in the date.",
6030
+ "examples": "\n##### 示例\n\nGets the millisecond of the current time\n\n```arcade\nMillisecond(Now())\n```\n\n",
6031
+ "completion": {
6032
+ "label": "Millisecond",
6033
+ "detail": "Millisecond(dateValue) -> Number",
6034
+ "insertText": "Millisecond(${1:dateValue_})$0",
6035
+ "insertTextMode": 2,
6036
+ "insertTextFormat": 2,
6037
+ "kind": 3,
6038
+ "documentation": {
6039
+ "kind": "markdown",
6040
+ "value": "Returns the millisecond of the time in the date.\n\n**参数**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - A Date value from which to get the millisecond of the time.\n\n**返回值**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
6041
+ }
6042
+ },
6043
+ "parametersInfo": {
6044
+ "min": 1,
6045
+ "max": 1
6046
+ }
6047
+ },
6048
+ {
6049
+ "type": "function",
6050
+ "name": "millisecond",
6051
+ "bundle": "core",
6052
+ "sinceVersion": "1.24",
6053
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#millisecond2",
6054
+ "description": "Returns the millisecond of the given time.",
6055
+ "examples": "\n##### 示例\n\nGets the millisecond of the time\n\n```arcade\nHour(Time(2, 59, 23, 450))\n// returns 450\n```\n\n",
6056
+ "completion": {
6057
+ "label": "Millisecond",
6058
+ "detail": "Millisecond(timeValue) -> Number",
6059
+ "insertText": "Millisecond(${1:timeValue_})$0",
6060
+ "insertTextMode": 2,
6061
+ "insertTextFormat": 2,
6062
+ "kind": 3,
6063
+ "documentation": {
6064
+ "kind": "markdown",
6065
+ "value": "**[起始版本 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nReturns the millisecond of the given time.\n\n**参数**\n\n- **timeValue**: Time - A Time value from which to get the millisecond.\n\n**返回值**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
6066
+ }
6067
+ },
6068
+ "parametersInfo": {
6069
+ "min": 1,
6070
+ "max": 1
6071
+ }
6072
+ }
6073
+ ],
6074
+ [
6075
+ {
6076
+ "type": "function",
6077
+ "name": "minute",
6078
+ "bundle": "core",
6079
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#minute1",
6080
+ "description": "Returns the minute of the time in the given date.",
6081
+ "examples": "\n##### 示例\n\nGets the minute of the current time\n\n```arcade\nMinute(Now())\n```\n\n",
6082
+ "completion": {
6083
+ "label": "Minute",
6084
+ "detail": "Minute(dateValue) -> Number",
6085
+ "insertText": "Minute(${1:dateValue_})$0",
6086
+ "insertTextMode": 2,
6087
+ "insertTextFormat": 2,
6088
+ "kind": 3,
6089
+ "documentation": {
6090
+ "kind": "markdown",
6091
+ "value": "Returns the minute of the time in the given date.\n\n**参数**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - A Date value from which to get the minute of the time.\n\n**返回值**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
6092
+ }
6093
+ },
6094
+ "parametersInfo": {
6095
+ "min": 1,
6096
+ "max": 1
6097
+ }
6098
+ },
6099
+ {
6100
+ "type": "function",
6101
+ "name": "minute",
6102
+ "bundle": "core",
6103
+ "sinceVersion": "1.24",
6104
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#minute2",
6105
+ "description": "Returns the minute of the given time.",
6106
+ "examples": "\n##### 示例\n\nGets the minute of the time\n\n```arcade\nHour(Time(2, 59, 23))\n// returns 59\n```\n\n",
6107
+ "completion": {
6108
+ "label": "Minute",
6109
+ "detail": "Minute(timeValue) -> Number",
6110
+ "insertText": "Minute(${1:timeValue_})$0",
6111
+ "insertTextMode": 2,
6112
+ "insertTextFormat": 2,
6113
+ "kind": 3,
6114
+ "documentation": {
6115
+ "kind": "markdown",
6116
+ "value": "**[起始版本 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nReturns the minute of the given time.\n\n**参数**\n\n- **timeValue**: Time - A Time value from which to get the minute.\n\n**返回值**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
6117
+ }
6118
+ },
6119
+ "parametersInfo": {
6120
+ "min": 1,
6121
+ "max": 1
6122
+ }
6123
+ }
6124
+ ],
5688
6125
  {
5689
6126
  "type": "function",
5690
6127
  "name": "month",
5691
6128
  "bundle": "core",
5692
6129
  "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#month",
5693
6130
  "description": "返回给定日期的月份。 值的范围为 0-11,其中一月是 `0`,十二月是 `11`。",
5694
- "examples": "\n##### 示例\n\n获取给定日期中的月份。 对于十二月返回 11。\n\n```arcade\nMonth(Date(1980, 11, 31))\n```\n\n",
6131
+ "examples": "\n##### 示例\n\n获取给定日期中的月份。 对于十二月返回 11。\n\n```arcade\nMonth(Date(1980, 11, 31))\n// returns 11\n```\n\nGets the month of the given DateOnly value.\n\n```arcade\nMonth(DateOnly(1996, 0, 31))\n// returns 0, for the month of January\n```\n\n",
5695
6132
  "completion": {
5696
6133
  "label": "Month",
5697
6134
  "detail": "Month(dateValue) -> Number",
@@ -5701,7 +6138,7 @@
5701
6138
  "kind": 3,
5702
6139
  "documentation": {
5703
6140
  "kind": "markdown",
5704
- "value": "返回给定日期的月份。 值的范围为 0-11,其中一月是 `0`,十二月是 `11`。\n\n**参数**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - 从中获取月份的日期值。\n\n**返回值**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
6141
+ "value": "返回给定日期的月份。 值的范围为 0-11,其中一月是 `0`,十二月是 `11`。\n\n**参数**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) \\| DateOnly - 从中获取月份的日期值。\n\n**返回值**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
5705
6142
  }
5706
6143
  },
5707
6144
  "parametersInfo": {
@@ -5733,23 +6170,227 @@
5733
6170
  "max": 0
5734
6171
  }
5735
6172
  },
6173
+ [
6174
+ {
6175
+ "type": "function",
6176
+ "name": "second",
6177
+ "bundle": "core",
6178
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#second1",
6179
+ "description": "Returns the second of the time in the date.",
6180
+ "examples": "\n##### 示例\n\nGets the second of the current time\n\n```arcade\nSecond(Now())\n```\n\n",
6181
+ "completion": {
6182
+ "label": "Second",
6183
+ "detail": "Second(dateValue) -> Number",
6184
+ "insertText": "Second(${1:dateValue_})$0",
6185
+ "insertTextMode": 2,
6186
+ "insertTextFormat": 2,
6187
+ "kind": 3,
6188
+ "documentation": {
6189
+ "kind": "markdown",
6190
+ "value": "Returns the second of the time in the date.\n\n**参数**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - A Date value from which to get the second of the time.\n\n**返回值**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
6191
+ }
6192
+ },
6193
+ "parametersInfo": {
6194
+ "min": 1,
6195
+ "max": 1
6196
+ }
6197
+ },
6198
+ {
6199
+ "type": "function",
6200
+ "name": "second",
6201
+ "bundle": "core",
6202
+ "sinceVersion": "1.24",
6203
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#second2",
6204
+ "description": "Returns the second of the given time.",
6205
+ "examples": "\n##### 示例\n\nGets the second of the time\n\n```arcade\nHour(Time(2, 59, 23))\n// returns 23\n```\n\n",
6206
+ "completion": {
6207
+ "label": "Second",
6208
+ "detail": "Second(timeValue) -> Number",
6209
+ "insertText": "Second(${1:timeValue_})$0",
6210
+ "insertTextMode": 2,
6211
+ "insertTextFormat": 2,
6212
+ "kind": 3,
6213
+ "documentation": {
6214
+ "kind": "markdown",
6215
+ "value": "**[起始版本 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nReturns the second of the given time.\n\n**参数**\n\n- **timeValue**: Time - A Time value from which to get the second.\n\n**返回值**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
6216
+ }
6217
+ },
6218
+ "parametersInfo": {
6219
+ "min": 1,
6220
+ "max": 1
6221
+ }
6222
+ }
6223
+ ],
6224
+ [
6225
+ {
6226
+ "type": "function",
6227
+ "name": "time",
6228
+ "bundle": "core",
6229
+ "sinceVersion": "1.24",
6230
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#time1",
6231
+ "description": "Creates a Time value representing the current time in the time zone of the profile's execution context.",
6232
+ "examples": "\n##### 示例\n\nReturns the current time displayed using the profile's default time zone\n\n```arcade\n// Time represents 12:41:20 PM\nTime()\n```\n\n",
6233
+ "completion": {
6234
+ "label": "Time",
6235
+ "detail": "Time() -> Time",
6236
+ "insertText": "Time($0)",
6237
+ "insertTextMode": 2,
6238
+ "insertTextFormat": 2,
6239
+ "kind": 3,
6240
+ "documentation": {
6241
+ "kind": "markdown",
6242
+ "value": "**[起始版本 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nCreates a Time value representing the current time in the time zone of the profile's execution context.\n\n**返回值**: Time"
6243
+ }
6244
+ },
6245
+ "parametersInfo": {
6246
+ "min": 0,
6247
+ "max": 0
6248
+ }
6249
+ },
6250
+ {
6251
+ "type": "function",
6252
+ "name": "time",
6253
+ "bundle": "core",
6254
+ "sinceVersion": "1.24",
6255
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#time2",
6256
+ "description": "Creates a Time value from a given date.",
6257
+ "examples": "\n##### 示例\n\nReturns the Time from the given date\n\n```arcade\nTime(Date(2008,10,11,10,30));\n// returns a Time value of 10:30:00 AM\n```\n\n",
6258
+ "completion": {
6259
+ "label": "Time",
6260
+ "detail": "Time(dateValue) -> Time",
6261
+ "insertText": "Time(${1:dateValue_})$0",
6262
+ "insertTextMode": 2,
6263
+ "insertTextFormat": 2,
6264
+ "kind": 3,
6265
+ "documentation": {
6266
+ "kind": "markdown",
6267
+ "value": "**[起始版本 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nCreates a Time value from a given date.\n\n**参数**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - The date from which to get the time.\n\n**返回值**: Time"
6268
+ }
6269
+ },
6270
+ "parametersInfo": {
6271
+ "min": 1,
6272
+ "max": 1
6273
+ }
6274
+ },
6275
+ {
6276
+ "type": "function",
6277
+ "name": "time",
6278
+ "bundle": "core",
6279
+ "sinceVersion": "1.24",
6280
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#time3",
6281
+ "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`.",
6282
+ "examples": "\n##### 示例\n\nReturns the Time from the number of milliseconds since midnight\n\n```arcade\nTime(8119800);\n// returns a Time value of 02:15:19.800\n```\n\nReturns the Time from the number of milliseconds since midnight\n\n```arcade\nTime(86400001);\n// returns null - the input value exceeds the number of milliseconds in a day\n```\n\n",
6283
+ "completion": {
6284
+ "label": "Time",
6285
+ "detail": "Time(numValue) -> Time",
6286
+ "insertText": "Time(${1:numValue_})$0",
6287
+ "insertTextMode": 2,
6288
+ "insertTextFormat": 2,
6289
+ "kind": 3,
6290
+ "documentation": {
6291
+ "kind": "markdown",
6292
+ "value": "**[起始版本 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nCreates a Time value from a given number representing milliseconds since midnight. If the input value is larger than 86,400,000 (the maximum number of milliseconds in a day) or less than 0, the function will return `null`.\n\n**参数**\n\n- **numValue**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - The number of milliseconds since midnight.\n\n**返回值**: Time"
6293
+ }
6294
+ },
6295
+ "parametersInfo": {
6296
+ "min": 1,
6297
+ "max": 1
6298
+ }
6299
+ },
6300
+ {
6301
+ "type": "function",
6302
+ "name": "time",
6303
+ "bundle": "core",
6304
+ "sinceVersion": "1.24",
6305
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#time4",
6306
+ "description": "Creates a Time value from inputs representing hours, minutes, seconds, and milliseconds.",
6307
+ "examples": "\n##### 示例\n\nCreates a Time value from inputs representing hours, minutes, seconds, and milliseconds\n\n```arcade\nTime(13, 20);\n// returns a Time value of 13:20:00\n \nTime(2, 59, 23)\n// returns a Time value of 02:59:23\n \nTime(15, 47, 0, 474)\n// returns a Time value of 15:47:00.474\n```\n\n",
6308
+ "completion": {
6309
+ "label": "Time",
6310
+ "detail": "Time(hours, minutes, seconds?, milliseconds?) -> Time",
6311
+ "insertText": "Time(${1:hours_}, ${2:minutes_})$0",
6312
+ "insertTextMode": 2,
6313
+ "insertTextFormat": 2,
6314
+ "kind": 3,
6315
+ "documentation": {
6316
+ "kind": "markdown",
6317
+ "value": "**[起始版本 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nCreates a Time value from inputs representing hours, minutes, seconds, and milliseconds.\n\n**参数**\n\n- **hours**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - The number representing hours of the Time value (0-23).\n- **minutes**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - The number representing the minutes of the Time value (0-59).\n- **seconds** (_Optional_): [Number](https://developers.arcgis.com/arcade/guide/types/#number) - The number representing the seconds of the Time value (0-59).\n- **milliseconds** (_Optional_): [Number](https://developers.arcgis.com/arcade/guide/types/#number) - The number representing the milliseconds of the Time value (0-999).\n\n**返回值**: Time"
6318
+ }
6319
+ },
6320
+ "parametersInfo": {
6321
+ "min": 2,
6322
+ "max": 4
6323
+ }
6324
+ },
6325
+ {
6326
+ "type": "function",
6327
+ "name": "time",
6328
+ "bundle": "core",
6329
+ "sinceVersion": "1.24",
6330
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#time5",
6331
+ "description": "Creates a Time value from a text input representing time, with an optional input indicating the text's format.",
6332
+ "examples": "\n##### 示例\n\nCreates a Time value from a text value representing the time\n\n```arcade\nTime(\"1:20 PM\");\n// returns a Time value of 13:20:00\n```\n\nCreates a Time value from a text value representing the time and formatting\n\n```arcade\nTime(\"12 05 04\", \"HH MM ss\")\n// returns a Time value of 12:05:04\n```\n\n",
6333
+ "completion": {
6334
+ "label": "Time",
6335
+ "detail": "Time(timeValue, format?) -> Time",
6336
+ "insertText": "Time(${1:timeValue_})$0",
6337
+ "insertTextMode": 2,
6338
+ "insertTextFormat": 2,
6339
+ "kind": 3,
6340
+ "documentation": {
6341
+ "kind": "markdown",
6342
+ "value": "**[起始版本 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nCreates a Time value from a text input representing time, with an optional input indicating the text's format.\n\n**参数**\n\n- **timeValue**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - A text value representing a time.\n- **format** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) - A text value indicating the format of the `timeValue` input. \nPossible values: \n - `h`: Civilian hours, not padded (0 - 12) \n - `hh`: Civilian hours, padded (00 - 12) \n - `H`: Military hours, not padded (0 - 24) \n - `HH`: Military hours, padded (00 - 24) \n - `m`: Minutes, not padded (0 - 59) \n - `mm`: Minutes, padded (00 - 59) \n - `s`: Seconds, not padded (0 - 59) \n - `ss`: Seconds, padded (00 - 59) \n - `A`: AM/PM \n\n\n**返回值**: Time"
6343
+ }
6344
+ },
6345
+ "parametersInfo": {
6346
+ "min": 1,
6347
+ "max": 2
6348
+ }
6349
+ }
6350
+ ],
5736
6351
  {
5737
6352
  "type": "function",
5738
- "name": "second",
6353
+ "name": "timestamp",
5739
6354
  "bundle": "core",
5740
- "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#second",
5741
- "description": "返回日期中时间的某秒。",
5742
- "examples": "\n##### 示例\n\n获取当前时间的某秒\n\n```arcade\nSecond(Now())\n```\n\n",
6355
+ "sinceVersion": "1.1",
6356
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#timestamp",
6357
+ "description": " UTC 时间创建一个表示当前日期和时间的日期值。",
6358
+ "examples": "\n##### 示例\n\n以 UTC 时间创建一个日期\n\n```arcade\n// Date that represents Jan 27, 2023, 8:41:20 PM UTC\nTimestamp()\n```\n\n",
5743
6359
  "completion": {
5744
- "label": "Second",
5745
- "detail": "Second(dateValue) -> Number",
5746
- "insertText": "Second(${1:dateValue_})$0",
6360
+ "label": "Timestamp",
6361
+ "detail": "Timestamp() -> Date",
6362
+ "insertText": "Timestamp($0)",
5747
6363
  "insertTextMode": 2,
5748
6364
  "insertTextFormat": 2,
5749
6365
  "kind": 3,
5750
6366
  "documentation": {
5751
6367
  "kind": "markdown",
5752
- "value": "返回日期中时间的某秒。\n\n**参数**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - 从中获取时间的某秒的日期值。\n\n**返回值**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
6368
+ "value": "**[起始版本 1.1](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\n以 UTC 时间创建一个表示当前日期和时间的日期值。\n\n**返回值**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)"
6369
+ }
6370
+ },
6371
+ "parametersInfo": {
6372
+ "min": 0,
6373
+ "max": 0
6374
+ }
6375
+ },
6376
+ {
6377
+ "type": "function",
6378
+ "name": "timezone",
6379
+ "bundle": "core",
6380
+ "sinceVersion": "1.24",
6381
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#timezone",
6382
+ "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",
6383
+ "examples": "\n##### 示例\n\nReturns the time zone of a Date\n\n```arcade\nvar natlPizzaDay = Date(2024, 1, 9, 0, 0, 0, 0, \"America/Los_Angeles\");\nTimeZone(natlPizzaDay);\n// Returns 'America/Los_Angeles'\n```\n\n",
6384
+ "completion": {
6385
+ "label": "TimeZone",
6386
+ "detail": "TimeZone(dateValue) -> Text",
6387
+ "insertText": "TimeZone(${1:dateValue_})$0",
6388
+ "insertTextMode": 2,
6389
+ "insertTextFormat": 2,
6390
+ "kind": 3,
6391
+ "documentation": {
6392
+ "kind": "markdown",
6393
+ "value": "**[起始版本 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nReturns the time zone of the given Date. The time zone will be one of the following:\n- text representing an entry in the [IANA time zone database](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List) (i.e. `America/New_York`)\n- text representing the hours and minutes that should be added to UTC (i.e. `+07:00` or `-03:00`)\n- `system` - time zone will be based on the client or system's local time zone \n- `UTC`\n- `unknown`\n\n\n**参数**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - A Date value from which to get the time zone.\n\n**返回值**: [Text](https://developers.arcgis.com/arcade/guide/types/#text)"
5753
6394
  }
5754
6395
  },
5755
6396
  "parametersInfo": {
@@ -5759,27 +6400,27 @@
5759
6400
  },
5760
6401
  {
5761
6402
  "type": "function",
5762
- "name": "timestamp",
6403
+ "name": "timezoneoffset",
5763
6404
  "bundle": "core",
5764
- "sinceVersion": "1.1",
5765
- "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#timestamp",
5766
- "description": " UTC 时间创建一个表示当前日期和时间的日期值。",
5767
- "examples": "\n##### 示例\n\n以 UTC 时间创建一个日期\n\n```arcade\n// Date that represents Jan 27, 2023, 8:41:20 PM UTC\nTimestamp()\n```\n\n",
6405
+ "sinceVersion": "1.24",
6406
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#timezoneoffset",
6407
+ "description": "Returns the time zone offset in minutes from UTC for the given Date.",
6408
+ "examples": "\n##### 示例\n\nReturns the time zone offset in minutes from UTC\n\n```arcade\nvar inputDate = Date(2011, 10, 11, 8, 0, 0, 0, \"America/New_York\")\nTimeZoneOffset(inputDate);\n// returns -18000000\n```\n\n",
5768
6409
  "completion": {
5769
- "label": "Timestamp",
5770
- "detail": "Timestamp() -> Date",
5771
- "insertText": "Timestamp($0)",
6410
+ "label": "TimeZoneOffset",
6411
+ "detail": "TimeZoneOffset(dateValue) -> Number",
6412
+ "insertText": "TimeZoneOffset(${1:dateValue_})$0",
5772
6413
  "insertTextMode": 2,
5773
6414
  "insertTextFormat": 2,
5774
6415
  "kind": 3,
5775
6416
  "documentation": {
5776
6417
  "kind": "markdown",
5777
- "value": "**[起始版本 1.1](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\n以 UTC 时间创建一个表示当前日期和时间的日期值。\n\n**返回值**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)"
6418
+ "value": "**[起始版本 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nReturns the time zone offset in minutes from UTC for the given Date.\n\n**参数**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - A Date value from which to get the time zone offset.\n\n**返回值**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
5778
6419
  }
5779
6420
  },
5780
6421
  "parametersInfo": {
5781
- "min": 0,
5782
- "max": 0
6422
+ "min": 1,
6423
+ "max": 1
5783
6424
  }
5784
6425
  },
5785
6426
  {
@@ -5863,7 +6504,7 @@
5863
6504
  "sinceVersion": "1.14",
5864
6505
  "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#week",
5865
6506
  "description": "返回给定日期年份中的周数。 值的范围从 0 到 53,其中基于当年情况,一年中的第一周为 `0`,最后一周为 `51`、 `52` 或 `53`。 第一周和最后一周的长度可能不是整 7 天。",
5866
- "examples": "\n##### 示例\n\n使用一周开始日期的默认值(星期日)\n\n```arcade\nWeek( Date(1974,0,3) )\n// Returns 0\n```\n\n将一周开始日期设置为星期四\n\n```arcade\nWeek( Date(1974,0,3), 4 )\n// Returns 1\n```\n\n将一周开始日期设置为星期五\n\n```arcade\nWeek( Date(1974,0,3), 5 )\n// Returns 0\n```\n\n\n\n```arcade\nWeek( Date(1945,8,23) )\n// Returns 38\n```\n\n\n\n```arcade\nWeek( Date(2022,7,20) )\n// Returns 33\n```\n\n",
6507
+ "examples": "\n##### 示例\n\n使用一周开始日期的默认值(星期日)\n\n```arcade\nWeek( Date(1974,0,3) )\n// Returns 0\n```\n\n将一周开始日期设置为星期四\n\n```arcade\nWeek( Date(1974,0,3), 4 )\n// Returns 1\n```\n\n将一周开始日期设置为星期五\n\n```arcade\nWeek( Date(1974,0,3), 5 )\n// Returns 0\n```\n\n\n\n```arcade\nWeek( Date(1945,8,23) )\n// Returns 38\n```\n\n\n\n```arcade\nWeek( Date(2022,7,20) )\n// Returns 33\n```\n\nReturns the week from the DateOnly value\n\n```arcade\nWeek(DateOnly(1996, 11, 10))\n// returns 49\n```\n\n",
5867
6508
  "completion": {
5868
6509
  "label": "Week",
5869
6510
  "detail": "Week(dateValue, startDay?) -> Number",
@@ -5873,7 +6514,7 @@
5873
6514
  "kind": 3,
5874
6515
  "documentation": {
5875
6516
  "kind": "markdown",
5876
- "value": "**[起始版本 1.14](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\n返回给定日期年份中的周数。 值的范围从 0 到 53,其中基于当年情况,一年中的第一周为 `0`,最后一周为 `51`、 `52` 或 `53`。 第一周和最后一周的长度可能不是整 7 天。\n\n**参数**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - 从中获取周的日期值。\n- **startDay** (_Optional_): [Number](https://developers.arcgis.com/arcade/guide/types/#number) - 代表一周开始日期的数值。 星期日 = 0;星期一 = 1;星期二 = 2; 星期三 = 3;星期四 = 4;星期五 = 5;星期六 = 6。 默认值为 `0` (星期日)。\n\n**返回值**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
6517
+ "value": "**[起始版本 1.14](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\n返回给定日期年份中的周数。 值的范围从 0 到 53,其中基于当年情况,一年中的第一周为 `0`,最后一周为 `51`、 `52` 或 `53`。 第一周和最后一周的长度可能不是整 7 天。\n\n**参数**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) \\| DateOnly - 从中获取周的日期值。\n- **startDay** (_Optional_): [Number](https://developers.arcgis.com/arcade/guide/types/#number) - 代表一周开始日期的数值。 星期日 = 0;星期一 = 1;星期二 = 2; 星期三 = 3;星期四 = 4;星期五 = 5;星期六 = 6。 默认值为 `0` (星期日)。\n\n**返回值**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
5877
6518
  }
5878
6519
  },
5879
6520
  "parametersInfo": {
@@ -5887,7 +6528,7 @@
5887
6528
  "bundle": "core",
5888
6529
  "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#weekday",
5889
6530
  "description": "返回给定日期的星期。 值的范围为 0-6,其中星期日是 `0`,星期六是 `6`。",
5890
- "examples": "\n##### 示例\n\n返回给定日期的星期。 对于星期三,返回 `3`。\n\n```arcade\nWeekday(Date(1980, 11, 31))\n```\n\n",
6531
+ "examples": "\n##### 示例\n\n返回给定日期的星期。 对于星期三,返回 `3`。\n\n```arcade\nWeekday(Date(1980, 11, 31))\n```\n\nReturns the day of the week of the given DateOnly value.\n\n```arcade\nWeekday(DateOnly(1996, 11, 10))\n// returns 2, for Tuesday\n```\n\n",
5891
6532
  "completion": {
5892
6533
  "label": "Weekday",
5893
6534
  "detail": "Weekday(dateValue) -> Number",
@@ -5897,7 +6538,7 @@
5897
6538
  "kind": 3,
5898
6539
  "documentation": {
5899
6540
  "kind": "markdown",
5900
- "value": "返回给定日期的星期。 值的范围为 0-6,其中星期日是 `0`,星期六是 `6`。\n\n**参数**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - 从中返回星期的日期值。\n\n**返回值**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
6541
+ "value": "返回给定日期的星期。 值的范围为 0-6,其中星期日是 `0`,星期六是 `6`。\n\n**参数**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) \\| DateOnly - 从中返回星期的日期值。\n\n**返回值**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
5901
6542
  }
5902
6543
  },
5903
6544
  "parametersInfo": {
@@ -5911,7 +6552,7 @@
5911
6552
  "bundle": "core",
5912
6553
  "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#year",
5913
6554
  "description": "返回给定日期中的年份。",
5914
- "examples": "\n##### 示例\n\n获取当前日期中的年份\n\n```arcade\nYear(Now())\n```\n\n",
6555
+ "examples": "\n##### 示例\n\n获取当前日期中的年份\n\n```arcade\nYear(Now())\n```\n\nGets the year of the given DateOnly value\n\n```arcade\nYear(DateOnly(1996, 11, 10))\n// returns 1996\n```\n\n",
5915
6556
  "completion": {
5916
6557
  "label": "Year",
5917
6558
  "detail": "Year(dateValue) -> Number",
@@ -5921,7 +6562,7 @@
5921
6562
  "kind": 3,
5922
6563
  "documentation": {
5923
6564
  "kind": "markdown",
5924
- "value": "返回给定日期中的年份。\n\n**参数**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - 从中获取年份的日期值。\n\n**返回值**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
6565
+ "value": "返回给定日期中的年份。\n\n**参数**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) \\| DateOnly - 从中获取年份的日期值。\n\n**返回值**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
5925
6566
  }
5926
6567
  },
5927
6568
  "parametersInfo": {
@@ -6468,6 +7109,31 @@
6468
7109
  "max": 2
6469
7110
  }
6470
7111
  },
7112
+ {
7113
+ "type": "function",
7114
+ "name": "equals",
7115
+ "bundle": "core",
7116
+ "sinceVersion": "1.24",
7117
+ "link": "https://developers.arcgis.com/arcade/function-reference/logical_functions/#equals",
7118
+ "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.",
7119
+ "examples": "\n##### 示例\n\nCompares if two values are equal\n\n```arcade\nEquals(1, \"1\") // returns false\n\nvar testVal = \"test\";\nEquals(testVal, \"test\") // returns true\n\nvar array1 = Array(5);\nvar array2 = Array(5);\nEquals(array1, array2); // returns false\nEquals(array1, array1); // returns true\n```\n\n",
7120
+ "completion": {
7121
+ "label": "Equals",
7122
+ "detail": "Equals(value1, value2) -> Boolean",
7123
+ "insertText": "Equals(${1:value1_}, ${2:value2_})$0",
7124
+ "insertTextMode": 2,
7125
+ "insertTextFormat": 2,
7126
+ "kind": 3,
7127
+ "documentation": {
7128
+ "kind": "markdown",
7129
+ "value": "**[起始版本 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nIndicates if two values are equal. Object types (i.e. Arrays, Features, Dictionaries, Geometry) will return true only if they are the same object.\n\n**参数**\n\n- **value1**: [Any](https://developers.arcgis.com/arcade/guide/types/#any) - The first input value.\n- **value2**: [Any](https://developers.arcgis.com/arcade/guide/types/#any) - The second input value.\n\n**返回值**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean)"
7130
+ }
7131
+ },
7132
+ "parametersInfo": {
7133
+ "min": 2,
7134
+ "max": 2
7135
+ }
7136
+ },
6471
7137
  {
6472
7138
  "type": "function",
6473
7139
  "name": "iif",