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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (130) hide show
  1. package/dist/arcgis-coding-components/arcgis-coding-components.esm.js +1 -1
  2. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ar.json +858 -192
  3. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.bg.json +821 -155
  4. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.bs.json +829 -163
  5. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ca.json +829 -163
  6. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.cs.json +829 -163
  7. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.da.json +829 -163
  8. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.de.json +829 -163
  9. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.el.json +858 -192
  10. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.en.json +853 -187
  11. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.es.json +829 -163
  12. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.et.json +829 -163
  13. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.fi.json +858 -192
  14. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.fr.json +829 -163
  15. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.he.json +858 -192
  16. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.hr.json +829 -163
  17. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.hu.json +829 -163
  18. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.id.json +858 -192
  19. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.it.json +821 -155
  20. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ja.json +859 -193
  21. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ko.json +859 -193
  22. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.lt.json +829 -163
  23. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.lv.json +829 -163
  24. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.nb.json +829 -163
  25. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.nl.json +829 -163
  26. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.pl.json +829 -163
  27. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.pt-BR.json +829 -163
  28. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.pt-PT.json +829 -163
  29. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ro.json +829 -163
  30. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ru.json +858 -192
  31. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.sk.json +829 -163
  32. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.sl.json +829 -163
  33. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.sr.json +845 -179
  34. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.sv.json +829 -163
  35. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.th.json +858 -192
  36. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.tr.json +858 -192
  37. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.uk.json +858 -192
  38. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.vi.json +858 -192
  39. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.zh-CN.json +859 -193
  40. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.zh-HK.json +859 -193
  41. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.zh-TW.json +859 -193
  42. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.ar.json +1 -2
  43. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.bg.json +1 -2
  44. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.bs.json +1 -2
  45. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.ca.json +1 -2
  46. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.cs.json +1 -2
  47. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.da.json +1 -2
  48. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.de.json +1 -2
  49. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.el.json +1 -2
  50. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.en.json +1 -2
  51. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.es.json +1 -2
  52. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.et.json +1 -2
  53. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.fi.json +1 -2
  54. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.fr.json +1 -2
  55. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.he.json +1 -2
  56. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.hr.json +1 -2
  57. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.hu.json +1 -2
  58. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.id.json +1 -2
  59. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.it.json +1 -2
  60. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.ja.json +1 -2
  61. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.ko.json +1 -2
  62. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.lt.json +1 -2
  63. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.lv.json +1 -2
  64. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.nb.json +1 -2
  65. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.nl.json +1 -2
  66. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.pl.json +1 -2
  67. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.pt-BR.json +1 -2
  68. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.pt-PT.json +1 -2
  69. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.ro.json +1 -2
  70. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.ru.json +1 -2
  71. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.sk.json +1 -2
  72. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.sl.json +1 -2
  73. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.sr.json +1 -2
  74. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.sv.json +1 -2
  75. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.th.json +1 -2
  76. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.tr.json +1 -2
  77. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.uk.json +1 -2
  78. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.vi.json +1 -2
  79. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.zh-CN.json +1 -2
  80. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.zh-HK.json +1 -2
  81. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.zh-TW.json +1 -2
  82. package/dist/arcgis-coding-components/index.esm.js +1 -1
  83. package/dist/arcgis-coding-components/{p-ed254359.js → p-00c0b964.js} +1 -1
  84. package/dist/arcgis-coding-components/{p-616bcc2c.js → p-0f471c2c.js} +1 -1
  85. package/dist/arcgis-coding-components/{p-4d7cdaf4.js → p-2daa5deb.js} +1 -1
  86. package/dist/arcgis-coding-components/{p-b866ffa3.js → p-65933e8a.js} +1 -1
  87. package/dist/arcgis-coding-components/{p-2eee5b07.js → p-92019d78.js} +7 -7
  88. package/dist/arcgis-coding-components/{p-ee4aaf72.js → p-bcd478e3.js} +1 -1
  89. package/dist/arcgis-coding-components/{p-41feaa6e.js → p-be85ec3d.js} +1 -1
  90. package/dist/arcgis-coding-components/{p-63d6d128.js → p-bf83cfac.js} +1 -1
  91. package/dist/arcgis-coding-components/p-dd2d53e7.entry.js +1 -0
  92. package/dist/arcgis-coding-components/{p-c14a46af.js → p-f1b6ba59.js} +1 -1
  93. package/dist/cjs/{arcade-defaults-f77b7bae.js → arcade-defaults-990ceb0a.js} +51 -33
  94. package/dist/cjs/{arcade-mode-4b1d5adc.js → arcade-mode-6a101da0.js} +1 -1
  95. package/dist/cjs/arcgis-arcade-api_6.cjs.entry.js +40 -10
  96. package/dist/cjs/{cssMode-c21a8b34.js → cssMode-ef738198.js} +1 -1
  97. package/dist/cjs/{html-baddeebf.js → html-e97a8c1e.js} +1 -1
  98. package/dist/cjs/{htmlMode-3ca73779.js → htmlMode-0afb8251.js} +1 -1
  99. package/dist/cjs/index.cjs.js +1 -1
  100. package/dist/cjs/{javascript-4226e8d4.js → javascript-09fbcb7d.js} +2 -2
  101. package/dist/cjs/{jsonMode-4496d6b9.js → jsonMode-9a315af5.js} +1 -1
  102. package/dist/cjs/{tsMode-6fa6f2f6.js → tsMode-000c3471.js} +1 -1
  103. package/dist/cjs/{typescript-5b6bab68.js → typescript-a9f8ce6c.js} +1 -1
  104. package/dist/components/arcade-api.js +2 -1
  105. package/dist/components/arcade-defaults.js +3 -23
  106. package/dist/components/arcade-results.js +40 -10
  107. package/dist/components/arcade-suggestions.js +2 -1
  108. package/dist/components/arcade-variables.js +1 -1
  109. package/dist/components/arcgis-arcade-editor.js +1 -1
  110. package/dist/components/code-editor.js +1 -1
  111. package/dist/components/fields.js +125 -0
  112. package/dist/components/index2.js +282 -32
  113. package/dist/components/utilities.js +2 -334
  114. package/dist/esm/{arcade-defaults-24670a1d.js → arcade-defaults-a8808d6a.js} +52 -33
  115. package/dist/esm/{arcade-mode-dc10ed9f.js → arcade-mode-6c8aff99.js} +1 -1
  116. package/dist/esm/arcgis-arcade-api_6.entry.js +40 -10
  117. package/dist/esm/{cssMode-0ae84348.js → cssMode-e19675cf.js} +1 -1
  118. package/dist/esm/{html-c18864a6.js → html-0e2f7c2f.js} +1 -1
  119. package/dist/esm/{htmlMode-426699f2.js → htmlMode-a4dd6993.js} +1 -1
  120. package/dist/esm/index.js +1 -1
  121. package/dist/esm/{javascript-982f2d73.js → javascript-9d754452.js} +2 -2
  122. package/dist/esm/{jsonMode-170e0a0e.js → jsonMode-cfafe91a.js} +1 -1
  123. package/dist/esm/{tsMode-99d2e8e5.js → tsMode-612386a7.js} +1 -1
  124. package/dist/esm/{typescript-de4f8a27.js → typescript-a17e2ba3.js} +1 -1
  125. package/dist/types/utils/arcade-executor.d.ts +35 -3
  126. package/dist/types/utils/fields.d.ts +10 -0
  127. package/dist/types/utils/profile/types.d.ts +2 -2
  128. package/dist/types/utils/utilities.d.ts +0 -6
  129. package/package.json +8 -8
  130. package/dist/arcgis-coding-components/p-9a6baa15.entry.js +0 -1
@@ -605,6 +605,31 @@
605
605
  "max": 4
606
606
  }
607
607
  },
608
+ {
609
+ "type": "function",
610
+ "name": "featuresetbyrelationshipclass",
611
+ "bundle": "data-access",
612
+ "sinceVersion": "1.24",
613
+ "link": "https://developers.arcgis.com/arcade/function-reference/featureset_functions/#featuresetbyrelationshipclass",
614
+ "description": "Returns the related records for a given feature as a FeatureSet based on the class name of the relationship.",
615
+ "examples": "\n##### ตัวอย่าง\n\nReturns the count of pole inspection related records\n\n```arcade\n// A calculation rule that returns the count of a pole inspection records.\n// When a pole feature is updated the calculation rule reads all its related inspections records from the comments field and returns the total inspection count for that feature.\nvar fsinspected = FeatureSetByRelationshipClass($feature, “pole_inspection”, [“comments”], false);\nreturn Count(fsinspected);\n```\n\n",
616
+ "completion": {
617
+ "label": "FeatureSetByRelationshipClass",
618
+ "detail": "FeatureSetByRelationshipClass(inputFeature, relationshipClass, fieldNames?, includeGeometry?) -> FeatureSet",
619
+ "insertText": "FeatureSetByRelationshipClass(${1:inputFeature_}, ${2:relationshipClass_})$0",
620
+ "insertTextMode": 2,
621
+ "insertTextFormat": 2,
622
+ "kind": 3,
623
+ "documentation": {
624
+ "kind": "markdown",
625
+ "value": "**[ตั้งแต่เวอร์ชัน 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)"
626
+ }
627
+ },
628
+ "parametersInfo": {
629
+ "min": 2,
630
+ "max": 4
631
+ }
632
+ },
608
633
  {
609
634
  "type": "function",
610
635
  "name": "featuresetbyrelationshipname",
@@ -2172,7 +2197,7 @@
2172
2197
  "bundle": "core",
2173
2198
  "link": "https://developers.arcgis.com/arcade/function-reference/text_functions/#text",
2174
2199
  "description": "แปลงอาร์กิวเมนต์เป็นค่าข้อความ และเลือกจัดรูปแบบ ส่งกลับ 'null' หากล้มเหลว",
2175
- "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",
2200
+ "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",
2176
2201
  "completion": {
2177
2202
  "label": "Text",
2178
2203
  "detail": "Text(value, format?) -> Text",
@@ -2652,7 +2677,7 @@
2652
2677
  "kind": 3,
2653
2678
  "documentation": {
2654
2679
  "kind": "markdown",
2655
- "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)"
2680
+ "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)"
2656
2681
  }
2657
2682
  },
2658
2683
  "parametersInfo": {
@@ -5352,6 +5377,31 @@
5352
5377
  "max": 2
5353
5378
  }
5354
5379
  },
5380
+ {
5381
+ "type": "function",
5382
+ "name": "equals",
5383
+ "bundle": "core",
5384
+ "sinceVersion": "1.24",
5385
+ "link": "https://developers.arcgis.com/arcade/function-reference/logical_functions/#equals",
5386
+ "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.",
5387
+ "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",
5388
+ "completion": {
5389
+ "label": "Equals",
5390
+ "detail": "Equals(value1, value2) -> Boolean",
5391
+ "insertText": "Equals(${1:value1_}, ${2:value2_})$0",
5392
+ "insertTextMode": 2,
5393
+ "insertTextFormat": 2,
5394
+ "kind": 3,
5395
+ "documentation": {
5396
+ "kind": "markdown",
5397
+ "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)"
5398
+ }
5399
+ },
5400
+ "parametersInfo": {
5401
+ "min": 2,
5402
+ "max": 2
5403
+ }
5404
+ },
5355
5405
  {
5356
5406
  "type": "function",
5357
5407
  "name": "iif",
@@ -5479,29 +5529,54 @@
5479
5529
  "id": "date_functions",
5480
5530
  "title": "ฟังก์ชันวันที่",
5481
5531
  "items": [
5532
+ {
5533
+ "type": "function",
5534
+ "name": "changetimezone",
5535
+ "bundle": "core",
5536
+ "sinceVersion": "1.24",
5537
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#changetimezone",
5538
+ "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`.",
5539
+ "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",
5540
+ "completion": {
5541
+ "label": "ChangeTimeZone",
5542
+ "detail": "ChangeTimeZone(dateValue, newTimeZone) -> Date",
5543
+ "insertText": "ChangeTimeZone(${1:dateValue_}, ${2:newTimeZone_})$0",
5544
+ "insertTextMode": 2,
5545
+ "insertTextFormat": 2,
5546
+ "kind": 3,
5547
+ "documentation": {
5548
+ "kind": "markdown",
5549
+ "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)"
5550
+ }
5551
+ },
5552
+ "parametersInfo": {
5553
+ "min": 2,
5554
+ "max": 2
5555
+ }
5556
+ },
5482
5557
  [
5483
5558
  {
5484
5559
  "type": "function",
5485
5560
  "name": "date",
5486
5561
  "bundle": "core",
5487
5562
  "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#date1",
5488
- "description": "สร้างวัตถุ วันที่ จากชุดของพารามิเตอร์ ตามค่าเริ่มต้น วันที่จะถูกสร้างขึ้นในเวลาท้องถิ่นของไคลเอ็นต์หรือระบบ",
5489
- "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",
5563
+ "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.",
5564
+ "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",
5490
5565
  "completion": {
5491
5566
  "label": "Date",
5492
- "detail": "Date(year, month, day, hour?, minute?, second?, millisecond?) -> Date",
5567
+ "detail": "Date(year, month, day, hour?, minute?, second?, millisecond?, timeZone?) -> Date",
5493
5568
  "insertText": "Date(${1:year_}, ${2:month_}, ${3:day_})$0",
5494
5569
  "insertTextMode": 2,
5495
5570
  "insertTextFormat": 2,
5496
5571
  "kind": 3,
5497
5572
  "documentation": {
5498
5573
  "kind": "markdown",
5499
- "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)"
5574
+ "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)"
5500
5575
  }
5501
5576
  },
5502
5577
  "parametersInfo": {
5503
5578
  "min": 3,
5504
- "max": 7
5579
+ "max": 8
5505
5580
  }
5506
5581
  },
5507
5582
  {
@@ -5509,8 +5584,8 @@
5509
5584
  "name": "date",
5510
5585
  "bundle": "core",
5511
5586
  "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#date2",
5512
- "description": "สร้างวันที่ด้วยตัวเลข epoch Unix ที่กำหนดในโซนเวลาท้องถิ่นของไคลเอ็นต์หรือระบบ",
5513
- "examples": "\n##### ตัวอย่าง\n\nมิลลิวินาทีนับตั้งแต่ 1 มกราคม 1970\n\n```arcade\nDate(1476987783555) // 'Thu Oct 20 2016 11:23:03 GMT-0700 (PDT)'\n```\n\n",
5587
+ "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.",
5588
+ "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",
5514
5589
  "completion": {
5515
5590
  "label": "Date",
5516
5591
  "detail": "Date(epoch?) -> Date",
@@ -5520,7 +5595,7 @@
5520
5595
  "kind": 3,
5521
5596
  "documentation": {
5522
5597
  "kind": "markdown",
5523
- "value": "สร้างวันที่ด้วยตัวเลข epoch Unix ที่กำหนดในโซนเวลาท้องถิ่นของไคลเอ็นต์หรือระบบ\n\n**พารามิเตอร์**\n\n- **epoch** (_Optional_): [Number](https://developers.arcgis.com/arcade/guide/types/#number) - ตัวเลขแทนมิลลิวินาทีนับตั้งแต่วันที่ 1 มกราคม 1970 UTC\n\n**ส่งคืนค่า**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)"
5598
+ "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)"
5524
5599
  }
5525
5600
  },
5526
5601
  "parametersInfo": {
@@ -5533,8 +5608,8 @@
5533
5608
  "name": "date",
5534
5609
  "bundle": "core",
5535
5610
  "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#date3",
5536
- "description": "แปลงค่าข้อความ ISO 8601 เป็นวัตถุ วันที่ ในโซนเวลาท้องถิ่นของไคลเอ็นต์หรือระบบ",
5537
- "examples": "\n##### ตัวอย่าง\n\nค่าข้อความ ISO 8601\n\n```arcade\nDate('2016-10-20T17:41:37+00:00') // 'Thu Oct 20 2016 10:41:37 GMT-0700 (PDT)'\n```\n\n",
5611
+ "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.",
5612
+ "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",
5538
5613
  "completion": {
5539
5614
  "label": "Date",
5540
5615
  "detail": "Date(timestamp?) -> Date",
@@ -5544,154 +5619,386 @@
5544
5619
  "kind": 3,
5545
5620
  "documentation": {
5546
5621
  "kind": "markdown",
5547
- "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)"
5622
+ "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)"
5548
5623
  }
5549
5624
  },
5550
5625
  "parametersInfo": {
5551
5626
  "min": 0,
5552
5627
  "max": 1
5553
5628
  }
5554
- }
5555
- ],
5556
- {
5557
- "type": "function",
5558
- "name": "dateadd",
5559
- "bundle": "core",
5560
- "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#dateadd",
5561
- "description": "เพิ่มระยะเวลาที่ระบุในหน่วยที่กำหนดวันที่และส่งคืนวันที่ใหม่",
5562
- "examples": "\n##### ตัวอย่าง\n\nเพิ่ม 7 วันลงในวันที่ในฟิลด์ที่ระบุ\n\n```arcade\nvar startDate = Date($feature.dateField);\nvar oneWeekLater = DateAdd(startDate, 7, 'days');\nreturn oneWeekLater;\n```\n\n",
5563
- "completion": {
5564
- "label": "DateAdd",
5565
- "detail": "DateAdd(dateValue, addValue, units?) -> Date",
5566
- "insertText": "DateAdd(${1:dateValue_}, ${2:addValue_})$0",
5567
- "insertTextMode": 2,
5568
- "insertTextFormat": 2,
5569
- "kind": 3,
5570
- "documentation": {
5571
- "kind": "markdown",
5572
- "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) - หน่วยของตัวเลขที่เพิ่มลงในวันที่ ค่าเริ่มต้นคือ 'milliseconds` ประเภทที่รองรับได้แก่ `milliseconds`, `seconds`, `minutes`, `hours`, `days`, `months`, `years`\n\n**ส่งคืนค่า**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)"
5629
+ },
5630
+ {
5631
+ "type": "function",
5632
+ "name": "date",
5633
+ "bundle": "core",
5634
+ "sinceVersion": "1.24",
5635
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#date4",
5636
+ "description": "Creates a Date from a DateOnly value, with an optional Time and time zone value.",
5637
+ "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",
5638
+ "completion": {
5639
+ "label": "Date",
5640
+ "detail": "Date(dateOnlyValue, timeValue?, timeZone?) -> Date",
5641
+ "insertText": "Date(${1:dateOnlyValue_})$0",
5642
+ "insertTextMode": 2,
5643
+ "insertTextFormat": 2,
5644
+ "kind": 3,
5645
+ "documentation": {
5646
+ "kind": "markdown",
5647
+ "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)"
5648
+ }
5649
+ },
5650
+ "parametersInfo": {
5651
+ "min": 1,
5652
+ "max": 3
5573
5653
  }
5574
5654
  },
5575
- "parametersInfo": {
5576
- "min": 2,
5577
- "max": 3
5655
+ {
5656
+ "type": "function",
5657
+ "name": "date",
5658
+ "bundle": "core",
5659
+ "sinceVersion": "1.24",
5660
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#date5",
5661
+ "description": "Creates a copy of the given Date.",
5662
+ "examples": "\n##### ตัวอย่าง\n\nCreates a copy of the current Date value\n\n```arcade\nvar copiedDate = Date(Now())\n```\n\n",
5663
+ "completion": {
5664
+ "label": "Date",
5665
+ "detail": "Date(dateValue) -> Date",
5666
+ "insertText": "Date(${1:dateValue_})$0",
5667
+ "insertTextMode": 2,
5668
+ "insertTextFormat": 2,
5669
+ "kind": 3,
5670
+ "documentation": {
5671
+ "kind": "markdown",
5672
+ "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)"
5673
+ }
5674
+ },
5675
+ "parametersInfo": {
5676
+ "min": 1,
5677
+ "max": 1
5678
+ }
5578
5679
  }
5579
- },
5580
- {
5581
- "type": "function",
5582
- "name": "datediff",
5583
- "bundle": "core",
5584
- "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#datediff",
5585
- "description": "ลบวันที่สองวัน แล้วส่งคืนส่วนต่างในหน่วยที่กำหนด",
5586
- "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",
5587
- "completion": {
5588
- "label": "DateDiff",
5589
- "detail": "DateDiff(date1, date2, units?) -> Number",
5590
- "insertText": "DateDiff(${1:date1_}, ${2:date2_})$0",
5591
- "insertTextMode": 2,
5592
- "insertTextFormat": 2,
5593
- "kind": 3,
5594
- "documentation": {
5595
- "kind": "markdown",
5596
- "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) - หน่วยที่จะส่งคืนส่วนต่างระหว่างสองวันที่ที่กำหนด ประเภทที่รองรับได้แก่ `milliseconds`, `seconds`, `minutes`, `hours`, `days`, `months`, `years` ค่าเริ่มต้นคือ `milliseconds`\n\n**ส่งคืนค่า**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
5680
+ ],
5681
+ [
5682
+ {
5683
+ "type": "function",
5684
+ "name": "dateadd",
5685
+ "bundle": "core",
5686
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#dateadd1",
5687
+ "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.",
5688
+ "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",
5689
+ "completion": {
5690
+ "label": "DateAdd",
5691
+ "detail": "DateAdd(dateValue, addValue, units?) -> Date",
5692
+ "insertText": "DateAdd(${1:dateValue_}, ${2:addValue_})$0",
5693
+ "insertTextMode": 2,
5694
+ "insertTextFormat": 2,
5695
+ "kind": 3,
5696
+ "documentation": {
5697
+ "kind": "markdown",
5698
+ "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)"
5699
+ }
5700
+ },
5701
+ "parametersInfo": {
5702
+ "min": 2,
5703
+ "max": 3
5597
5704
  }
5598
5705
  },
5599
- "parametersInfo": {
5600
- "min": 2,
5601
- "max": 3
5602
- }
5603
- },
5604
- {
5605
- "type": "function",
5606
- "name": "day",
5607
- "bundle": "core",
5608
- "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#day",
5609
- "description": "ส่งคืนวันของเดือนของวันที่ที่กำหนด",
5610
- "examples": "\n##### ตัวอย่าง\n\nรับวันของเดือนนับจากวันที่ปัจจุบัน\n\n```arcade\nDay(Now())\n```\n\n",
5611
- "completion": {
5612
- "label": "Day",
5613
- "detail": "Day(dateValue) -> Number",
5614
- "insertText": "Day(${1:dateValue_})$0",
5615
- "insertTextMode": 2,
5616
- "insertTextFormat": 2,
5617
- "kind": 3,
5618
- "documentation": {
5619
- "kind": "markdown",
5620
- "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)"
5706
+ {
5707
+ "type": "function",
5708
+ "name": "dateadd",
5709
+ "bundle": "core",
5710
+ "sinceVersion": "1.24",
5711
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#dateadd2",
5712
+ "description": "Adds a specified amount of time in the given units to a DateOnly value and returns a new DateOnly value.",
5713
+ "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",
5714
+ "completion": {
5715
+ "label": "DateAdd",
5716
+ "detail": "DateAdd(dateOnlyValue, addValue, units?) -> DateOnly",
5717
+ "insertText": "DateAdd(${1:dateOnlyValue_}, ${2:addValue_})$0",
5718
+ "insertTextMode": 2,
5719
+ "insertTextFormat": 2,
5720
+ "kind": 3,
5721
+ "documentation": {
5722
+ "kind": "markdown",
5723
+ "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"
5724
+ }
5725
+ },
5726
+ "parametersInfo": {
5727
+ "min": 2,
5728
+ "max": 3
5621
5729
  }
5622
5730
  },
5623
- "parametersInfo": {
5624
- "min": 1,
5625
- "max": 1
5731
+ {
5732
+ "type": "function",
5733
+ "name": "dateadd",
5734
+ "bundle": "core",
5735
+ "sinceVersion": "1.24",
5736
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#dateadd3",
5737
+ "description": "Adds a specified amount of time in the given units to a Time value and returns a new Time value.",
5738
+ "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",
5739
+ "completion": {
5740
+ "label": "DateAdd",
5741
+ "detail": "DateAdd(timeValue, addValue, units?) -> Time",
5742
+ "insertText": "DateAdd(${1:timeValue_}, ${2:addValue_})$0",
5743
+ "insertTextMode": 2,
5744
+ "insertTextFormat": 2,
5745
+ "kind": 3,
5746
+ "documentation": {
5747
+ "kind": "markdown",
5748
+ "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"
5749
+ }
5750
+ },
5751
+ "parametersInfo": {
5752
+ "min": 2,
5753
+ "max": 3
5754
+ }
5626
5755
  }
5627
- },
5628
- {
5629
- "type": "function",
5630
- "name": "hour",
5631
- "bundle": "core",
5632
- "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#hour",
5633
- "description": "ส่งคืนชั่วโมงของเวลาในวันที่ที่กำหนด (0-23)",
5634
- "examples": "\n##### ตัวอย่าง\n\nรับชั่วโมงของเวลาปัจจุบัน\n\n```arcade\nHour(Now())\n```\n\n",
5635
- "completion": {
5636
- "label": "Hour",
5637
- "detail": "Hour(dateValue) -> Number",
5638
- "insertText": "Hour(${1:dateValue_})$0",
5639
- "insertTextMode": 2,
5640
- "insertTextFormat": 2,
5641
- "kind": 3,
5642
- "documentation": {
5643
- "kind": "markdown",
5644
- "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)"
5756
+ ],
5757
+ [
5758
+ {
5759
+ "type": "function",
5760
+ "name": "datediff",
5761
+ "bundle": "core",
5762
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#datediff1",
5763
+ "description": "Subtracts two Dates, and returns the difference in the specified units.",
5764
+ "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",
5765
+ "completion": {
5766
+ "label": "DateDiff",
5767
+ "detail": "DateDiff(date1, date2, units?, timeZone?) -> Number",
5768
+ "insertText": "DateDiff(${1:date1_}, ${2:date2_})$0",
5769
+ "insertTextMode": 2,
5770
+ "insertTextFormat": 2,
5771
+ "kind": 3,
5772
+ "documentation": {
5773
+ "kind": "markdown",
5774
+ "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)"
5775
+ }
5776
+ },
5777
+ "parametersInfo": {
5778
+ "min": 2,
5779
+ "max": 4
5645
5780
  }
5646
5781
  },
5647
- "parametersInfo": {
5648
- "min": 1,
5649
- "max": 1
5650
- }
5651
- },
5652
- {
5653
- "type": "function",
5654
- "name": "isomonth",
5655
- "bundle": "core",
5656
- "sinceVersion": "1.12",
5657
- "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#isomonth",
5658
- "description": "ส่งคืนเดือนของวันที่ที่กำหนด โดยอิงตามมาตรฐาน ISO 8601 ช่วงค่าตั้งแต่ 1-12 โดยที่มกราคมคือ `1` และธันวาคมคือ `12`",
5659
- "examples": "\n##### ตัวอย่าง\n\nรับเดือนของวันที่ที่กำหนด โดยอิงตามมาตรฐาน ISO 8601 ส่งคืน `12` สำหรับเดือนธันวาคม\n\n```arcade\nISOMonth(Date(1980, 11, 31))\n```\n\n",
5660
- "completion": {
5661
- "label": "ISOMonth",
5662
- "detail": "ISOMonth(dateValue) -> Number",
5663
- "insertText": "ISOMonth(${1:dateValue_})$0",
5664
- "insertTextMode": 2,
5665
- "insertTextFormat": 2,
5666
- "kind": 3,
5667
- "documentation": {
5668
- "kind": "markdown",
5669
- "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)"
5782
+ {
5783
+ "type": "function",
5784
+ "name": "datediff",
5785
+ "bundle": "core",
5786
+ "sinceVersion": "1.24",
5787
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#datediff2",
5788
+ "description": "Subtracts two DateOnly values, and returns the difference in the specified units.",
5789
+ "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",
5790
+ "completion": {
5791
+ "label": "DateDiff",
5792
+ "detail": "DateDiff(dateOnly1, dateOnly2, units?) -> Number",
5793
+ "insertText": "DateDiff(${1:dateOnly1_}, ${2:dateOnly2_})$0",
5794
+ "insertTextMode": 2,
5795
+ "insertTextFormat": 2,
5796
+ "kind": 3,
5797
+ "documentation": {
5798
+ "kind": "markdown",
5799
+ "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)"
5800
+ }
5801
+ },
5802
+ "parametersInfo": {
5803
+ "min": 2,
5804
+ "max": 3
5670
5805
  }
5671
5806
  },
5672
- "parametersInfo": {
5673
- "min": 1,
5674
- "max": 1
5807
+ {
5808
+ "type": "function",
5809
+ "name": "datediff",
5810
+ "bundle": "core",
5811
+ "sinceVersion": "1.24",
5812
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#datediff3",
5813
+ "description": "Subtracts two Time values, and returns the difference in the specified units.",
5814
+ "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",
5815
+ "completion": {
5816
+ "label": "DateDiff",
5817
+ "detail": "DateDiff(time1, time2, units?) -> Number",
5818
+ "insertText": "DateDiff(${1:time1_}, ${2:time2_})$0",
5819
+ "insertTextMode": 2,
5820
+ "insertTextFormat": 2,
5821
+ "kind": 3,
5822
+ "documentation": {
5823
+ "kind": "markdown",
5824
+ "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)"
5825
+ }
5826
+ },
5827
+ "parametersInfo": {
5828
+ "min": 2,
5829
+ "max": 3
5830
+ }
5675
5831
  }
5676
- },
5677
- {
5832
+ ],
5833
+ [
5834
+ {
5835
+ "type": "function",
5836
+ "name": "dateonly",
5837
+ "bundle": "core",
5838
+ "sinceVersion": "1.24",
5839
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#dateonly1",
5840
+ "description": "Creates a DateOnly value based on the current date in the time zone of the profile's execution context.",
5841
+ "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",
5842
+ "completion": {
5843
+ "label": "DateOnly",
5844
+ "detail": "DateOnly() -> DateOnly",
5845
+ "insertText": "DateOnly($0)",
5846
+ "insertTextMode": 2,
5847
+ "insertTextFormat": 2,
5848
+ "kind": 3,
5849
+ "documentation": {
5850
+ "kind": "markdown",
5851
+ "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"
5852
+ }
5853
+ },
5854
+ "parametersInfo": {
5855
+ "min": 0,
5856
+ "max": 0
5857
+ }
5858
+ },
5859
+ {
5860
+ "type": "function",
5861
+ "name": "dateonly",
5862
+ "bundle": "core",
5863
+ "sinceVersion": "1.24",
5864
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#dateonly2",
5865
+ "description": "Creates a DateOnly value from a given date.",
5866
+ "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",
5867
+ "completion": {
5868
+ "label": "DateOnly",
5869
+ "detail": "DateOnly(dateValue) -> DateOnly",
5870
+ "insertText": "DateOnly(${1:dateValue_})$0",
5871
+ "insertTextMode": 2,
5872
+ "insertTextFormat": 2,
5873
+ "kind": 3,
5874
+ "documentation": {
5875
+ "kind": "markdown",
5876
+ "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"
5877
+ }
5878
+ },
5879
+ "parametersInfo": {
5880
+ "min": 1,
5881
+ "max": 1
5882
+ }
5883
+ },
5884
+ {
5885
+ "type": "function",
5886
+ "name": "dateonly",
5887
+ "bundle": "core",
5888
+ "sinceVersion": "1.24",
5889
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#dateonly3",
5890
+ "description": "Creates a DateOnly date with the given Unix epoch number.",
5891
+ "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",
5892
+ "completion": {
5893
+ "label": "DateOnly",
5894
+ "detail": "DateOnly(epoch) -> DateOnly",
5895
+ "insertText": "DateOnly(${1:epoch_})$0",
5896
+ "insertTextMode": 2,
5897
+ "insertTextFormat": 2,
5898
+ "kind": 3,
5899
+ "documentation": {
5900
+ "kind": "markdown",
5901
+ "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"
5902
+ }
5903
+ },
5904
+ "parametersInfo": {
5905
+ "min": 1,
5906
+ "max": 1
5907
+ }
5908
+ },
5909
+ {
5910
+ "type": "function",
5911
+ "name": "dateonly",
5912
+ "bundle": "core",
5913
+ "sinceVersion": "1.24",
5914
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#dateonly4",
5915
+ "description": "Creates a DateOnly value from inputs representing the year, month, and day.",
5916
+ "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",
5917
+ "completion": {
5918
+ "label": "DateOnly",
5919
+ "detail": "DateOnly(year, month, day) -> DateOnly",
5920
+ "insertText": "DateOnly(${1:year_}, ${2:month_}, ${3:day_})$0",
5921
+ "insertTextMode": 2,
5922
+ "insertTextFormat": 2,
5923
+ "kind": 3,
5924
+ "documentation": {
5925
+ "kind": "markdown",
5926
+ "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"
5927
+ }
5928
+ },
5929
+ "parametersInfo": {
5930
+ "min": 3,
5931
+ "max": 3
5932
+ }
5933
+ },
5934
+ {
5935
+ "type": "function",
5936
+ "name": "dateonly",
5937
+ "bundle": "core",
5938
+ "sinceVersion": "1.24",
5939
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#dateonly5",
5940
+ "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.",
5941
+ "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",
5942
+ "completion": {
5943
+ "label": "DateOnly",
5944
+ "detail": "DateOnly(dateValue, format?) -> DateOnly",
5945
+ "insertText": "DateOnly(${1:dateValue_})$0",
5946
+ "insertTextMode": 2,
5947
+ "insertTextFormat": 2,
5948
+ "kind": 3,
5949
+ "documentation": {
5950
+ "kind": "markdown",
5951
+ "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"
5952
+ }
5953
+ },
5954
+ "parametersInfo": {
5955
+ "min": 1,
5956
+ "max": 2
5957
+ }
5958
+ },
5959
+ {
5960
+ "type": "function",
5961
+ "name": "dateonly",
5962
+ "bundle": "core",
5963
+ "sinceVersion": "1.24",
5964
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#dateonly6",
5965
+ "description": "Creates a copy of a DateOnly value.",
5966
+ "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",
5967
+ "completion": {
5968
+ "label": "DateOnly",
5969
+ "detail": "DateOnly(dateOnlyValue) -> DateOnly",
5970
+ "insertText": "DateOnly(${1:dateOnlyValue_})$0",
5971
+ "insertTextMode": 2,
5972
+ "insertTextFormat": 2,
5973
+ "kind": 3,
5974
+ "documentation": {
5975
+ "kind": "markdown",
5976
+ "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"
5977
+ }
5978
+ },
5979
+ "parametersInfo": {
5980
+ "min": 1,
5981
+ "max": 1
5982
+ }
5983
+ }
5984
+ ],
5985
+ {
5678
5986
  "type": "function",
5679
- "name": "isoweek",
5987
+ "name": "day",
5680
5988
  "bundle": "core",
5681
- "sinceVersion": "1.12",
5682
- "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#isoweek",
5683
- "description": "ส่งคืนสัปดาห์ในปีของวันที่ที่กำหนด โดยอิงตามปฏิทินวันที่สัปดาห์ ISO 8601 ช่วงค่าตั้งแต่ 1-53 โดยที่สัปดาห์แรกของปีคือ `1` และสัปดาห์สุดท้ายของปีคือ `52` หรือ `53` ขึ้นอยู่กับปี",
5684
- "examples": "\n##### ตัวอย่าง\n\nรับสัปดาห์ของวันที่ที่กำหนด โดยอิงตามมาตรฐาน ISO 8601 ส่งคืน `1` เนื่องจากวันที่นี้รวมอยู่ในสัปดาห์แรกของปีถัดไป\n\n```arcade\nISOWeek(Date(1980, 11, 31))\n```\n\n",
5989
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#day",
5990
+ "description": "ส่งคืนวันของเดือนของวันที่ที่กำหนด",
5991
+ "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",
5685
5992
  "completion": {
5686
- "label": "ISOWeek",
5687
- "detail": "ISOWeek(dateValue) -> Number",
5688
- "insertText": "ISOWeek(${1:dateValue_})$0",
5993
+ "label": "Day",
5994
+ "detail": "Day(dateValue) -> Number",
5995
+ "insertText": "Day(${1:dateValue_})$0",
5689
5996
  "insertTextMode": 2,
5690
5997
  "insertTextFormat": 2,
5691
5998
  "kind": 3,
5692
5999
  "documentation": {
5693
6000
  "kind": "markdown",
5694
- "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)"
6001
+ "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)"
5695
6002
  }
5696
6003
  },
5697
6004
  "parametersInfo": {
@@ -5699,24 +6006,75 @@
5699
6006
  "max": 1
5700
6007
  }
5701
6008
  },
6009
+ [
6010
+ {
6011
+ "type": "function",
6012
+ "name": "hour",
6013
+ "bundle": "core",
6014
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#hour1",
6015
+ "description": "Returns the hour of the time in the given date (0-23).",
6016
+ "examples": "\n##### ตัวอย่าง\n\nGets the hour of the current time\n\n```arcade\nHour(Now())\n```\n\n",
6017
+ "completion": {
6018
+ "label": "Hour",
6019
+ "detail": "Hour(dateValue) -> Number",
6020
+ "insertText": "Hour(${1:dateValue_})$0",
6021
+ "insertTextMode": 2,
6022
+ "insertTextFormat": 2,
6023
+ "kind": 3,
6024
+ "documentation": {
6025
+ "kind": "markdown",
6026
+ "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)"
6027
+ }
6028
+ },
6029
+ "parametersInfo": {
6030
+ "min": 1,
6031
+ "max": 1
6032
+ }
6033
+ },
6034
+ {
6035
+ "type": "function",
6036
+ "name": "hour",
6037
+ "bundle": "core",
6038
+ "sinceVersion": "1.24",
6039
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#hour2",
6040
+ "description": "Returns the hour of the given time (0-23).",
6041
+ "examples": "\n##### ตัวอย่าง\n\nGets the hour of the time\n\n```arcade\nHour(Time(2, 59, 23))\n// returns 2\n```\n\n",
6042
+ "completion": {
6043
+ "label": "Hour",
6044
+ "detail": "Hour(timeValue) -> Number",
6045
+ "insertText": "Hour(${1:timeValue_})$0",
6046
+ "insertTextMode": 2,
6047
+ "insertTextFormat": 2,
6048
+ "kind": 3,
6049
+ "documentation": {
6050
+ "kind": "markdown",
6051
+ "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)"
6052
+ }
6053
+ },
6054
+ "parametersInfo": {
6055
+ "min": 1,
6056
+ "max": 1
6057
+ }
6058
+ }
6059
+ ],
5702
6060
  {
5703
6061
  "type": "function",
5704
- "name": "isoweekday",
6062
+ "name": "isomonth",
5705
6063
  "bundle": "core",
5706
6064
  "sinceVersion": "1.12",
5707
- "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#isoweekday",
5708
- "description": "ส่งคืนวันของสัปดาห์ของวันที่ที่กำหนด โดยอิงตามมาตรฐาน ISO 8601 ช่วงค่าจากวันที่ 1-7 โดยที่วันจันทร์คือ `1` และวันอาทิตย์คือ `7`",
5709
- "examples": "\n##### ตัวอย่าง\n\nส่งคืนวันของสัปดาห์ของวันที่ที่กำหนด โดยอิงตามมาตรฐาน ISO 8601 ส่งคืน `3` สำหรับวันพุธ\n\n```arcade\nISOWeekday(Date(1980, 11, 31))\n```\n\n",
6065
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#isomonth",
6066
+ "description": "ส่งคืนเดือนของวันที่ที่กำหนด โดยอิงตามมาตรฐาน ISO 8601 ช่วงค่าตั้งแต่ 1-12 โดยที่มกราคมคือ `1` และธันวาคมคือ `12`",
6067
+ "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",
5710
6068
  "completion": {
5711
- "label": "ISOWeekday",
5712
- "detail": "ISOWeekday(dateValue) -> Number",
5713
- "insertText": "ISOWeekday(${1:dateValue_})$0",
6069
+ "label": "ISOMonth",
6070
+ "detail": "ISOMonth(dateValue) -> Number",
6071
+ "insertText": "ISOMonth(${1:dateValue_})$0",
5714
6072
  "insertTextMode": 2,
5715
6073
  "insertTextFormat": 2,
5716
6074
  "kind": 3,
5717
6075
  "documentation": {
5718
6076
  "kind": "markdown",
5719
- "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)"
6077
+ "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)"
5720
6078
  }
5721
6079
  },
5722
6080
  "parametersInfo": {
@@ -5726,22 +6084,22 @@
5726
6084
  },
5727
6085
  {
5728
6086
  "type": "function",
5729
- "name": "isoyear",
6087
+ "name": "isoweek",
5730
6088
  "bundle": "core",
5731
6089
  "sinceVersion": "1.12",
5732
- "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#isoyear",
5733
- "description": "ส่งคืนปีของวันที่ที่กำหนด โดยอิงตามปฏิทินวันที่สัปดาห์ ISO 8601",
5734
- "examples": "\n##### ตัวอย่าง\n\nรับปีของวันที่ที่กำหนด โดยอิงตามปฏิทินวันที่สัปดาห์ ISO 8601 ส่งคืน `1981` เนื่องจากวันที่นี้รวมอยู่ในสัปดาห์แรกของปีถัดไป\n\n```arcade\nISOYear(Date(1980, 11, 31))\n```\n\n",
6090
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#isoweek",
6091
+ "description": "ส่งคืนสัปดาห์ในปีของวันที่ที่กำหนด โดยอิงตามปฏิทินวันที่สัปดาห์ ISO 8601 ช่วงค่าตั้งแต่ 1-53 โดยที่สัปดาห์แรกของปีคือ `1` และสัปดาห์สุดท้ายของปีคือ `52` หรือ `53` ขึ้นอยู่กับปี",
6092
+ "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",
5735
6093
  "completion": {
5736
- "label": "ISOYear",
5737
- "detail": "ISOYear(dateValue) -> Number",
5738
- "insertText": "ISOYear(${1:dateValue_})$0",
6094
+ "label": "ISOWeek",
6095
+ "detail": "ISOWeek(dateValue) -> Number",
6096
+ "insertText": "ISOWeek(${1:dateValue_})$0",
5739
6097
  "insertTextMode": 2,
5740
6098
  "insertTextFormat": 2,
5741
6099
  "kind": 3,
5742
6100
  "documentation": {
5743
6101
  "kind": "markdown",
5744
- "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)"
6102
+ "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)"
5745
6103
  }
5746
6104
  },
5747
6105
  "parametersInfo": {
@@ -5751,21 +6109,22 @@
5751
6109
  },
5752
6110
  {
5753
6111
  "type": "function",
5754
- "name": "millisecond",
6112
+ "name": "isoweekday",
5755
6113
  "bundle": "core",
5756
- "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#millisecond",
5757
- "description": "ส่งคืนมิลลิวินาทีของเวลาในวันที่",
5758
- "examples": "\n##### ตัวอย่าง\n\nรับมิลลิวินาทีของเวลาปัจจุบัน\n\n```arcade\nMillisecond(Now())\n```\n\n",
6114
+ "sinceVersion": "1.12",
6115
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#isoweekday",
6116
+ "description": "ส่งคืนวันของสัปดาห์ของวันที่ที่กำหนด โดยอิงตามมาตรฐาน ISO 8601 ช่วงค่าจากวันที่ 1-7 โดยที่วันจันทร์คือ `1` และวันอาทิตย์คือ `7`",
6117
+ "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",
5759
6118
  "completion": {
5760
- "label": "Millisecond",
5761
- "detail": "Millisecond(dateValue) -> Number",
5762
- "insertText": "Millisecond(${1:dateValue_})$0",
6119
+ "label": "ISOWeekday",
6120
+ "detail": "ISOWeekday(dateValue) -> Number",
6121
+ "insertText": "ISOWeekday(${1:dateValue_})$0",
5763
6122
  "insertTextMode": 2,
5764
6123
  "insertTextFormat": 2,
5765
6124
  "kind": 3,
5766
6125
  "documentation": {
5767
6126
  "kind": "markdown",
5768
- "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)"
6127
+ "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)"
5769
6128
  }
5770
6129
  },
5771
6130
  "parametersInfo": {
@@ -5775,21 +6134,22 @@
5775
6134
  },
5776
6135
  {
5777
6136
  "type": "function",
5778
- "name": "minute",
6137
+ "name": "isoyear",
5779
6138
  "bundle": "core",
5780
- "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#minute",
5781
- "description": "ส่งคืนนาทีของเวลาในวันที่ที่กำหนด",
5782
- "examples": "\n##### ตัวอย่าง\n\nรับนาทีของเวลาปัจจุบัน\n\n```arcade\nMinute(Now())\n```\n\n",
6139
+ "sinceVersion": "1.12",
6140
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#isoyear",
6141
+ "description": "ส่งคืนปีของวันที่ที่กำหนด โดยอิงตามปฏิทินวันที่สัปดาห์ ISO 8601",
6142
+ "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",
5783
6143
  "completion": {
5784
- "label": "Minute",
5785
- "detail": "Minute(dateValue) -> Number",
5786
- "insertText": "Minute(${1:dateValue_})$0",
6144
+ "label": "ISOYear",
6145
+ "detail": "ISOYear(dateValue) -> Number",
6146
+ "insertText": "ISOYear(${1:dateValue_})$0",
5787
6147
  "insertTextMode": 2,
5788
6148
  "insertTextFormat": 2,
5789
6149
  "kind": 3,
5790
6150
  "documentation": {
5791
6151
  "kind": "markdown",
5792
- "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)"
6152
+ "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)"
5793
6153
  }
5794
6154
  },
5795
6155
  "parametersInfo": {
@@ -5797,13 +6157,115 @@
5797
6157
  "max": 1
5798
6158
  }
5799
6159
  },
6160
+ [
6161
+ {
6162
+ "type": "function",
6163
+ "name": "millisecond",
6164
+ "bundle": "core",
6165
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#millisecond1",
6166
+ "description": "Returns the millisecond of the time in the date.",
6167
+ "examples": "\n##### ตัวอย่าง\n\nGets the millisecond of the current time\n\n```arcade\nMillisecond(Now())\n```\n\n",
6168
+ "completion": {
6169
+ "label": "Millisecond",
6170
+ "detail": "Millisecond(dateValue) -> Number",
6171
+ "insertText": "Millisecond(${1:dateValue_})$0",
6172
+ "insertTextMode": 2,
6173
+ "insertTextFormat": 2,
6174
+ "kind": 3,
6175
+ "documentation": {
6176
+ "kind": "markdown",
6177
+ "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)"
6178
+ }
6179
+ },
6180
+ "parametersInfo": {
6181
+ "min": 1,
6182
+ "max": 1
6183
+ }
6184
+ },
6185
+ {
6186
+ "type": "function",
6187
+ "name": "millisecond",
6188
+ "bundle": "core",
6189
+ "sinceVersion": "1.24",
6190
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#millisecond2",
6191
+ "description": "Returns the millisecond of the given time.",
6192
+ "examples": "\n##### ตัวอย่าง\n\nGets the millisecond of the time\n\n```arcade\nHour(Time(2, 59, 23, 450))\n// returns 450\n```\n\n",
6193
+ "completion": {
6194
+ "label": "Millisecond",
6195
+ "detail": "Millisecond(timeValue) -> Number",
6196
+ "insertText": "Millisecond(${1:timeValue_})$0",
6197
+ "insertTextMode": 2,
6198
+ "insertTextFormat": 2,
6199
+ "kind": 3,
6200
+ "documentation": {
6201
+ "kind": "markdown",
6202
+ "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)"
6203
+ }
6204
+ },
6205
+ "parametersInfo": {
6206
+ "min": 1,
6207
+ "max": 1
6208
+ }
6209
+ }
6210
+ ],
6211
+ [
6212
+ {
6213
+ "type": "function",
6214
+ "name": "minute",
6215
+ "bundle": "core",
6216
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#minute1",
6217
+ "description": "Returns the minute of the time in the given date.",
6218
+ "examples": "\n##### ตัวอย่าง\n\nGets the minute of the current time\n\n```arcade\nMinute(Now())\n```\n\n",
6219
+ "completion": {
6220
+ "label": "Minute",
6221
+ "detail": "Minute(dateValue) -> Number",
6222
+ "insertText": "Minute(${1:dateValue_})$0",
6223
+ "insertTextMode": 2,
6224
+ "insertTextFormat": 2,
6225
+ "kind": 3,
6226
+ "documentation": {
6227
+ "kind": "markdown",
6228
+ "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)"
6229
+ }
6230
+ },
6231
+ "parametersInfo": {
6232
+ "min": 1,
6233
+ "max": 1
6234
+ }
6235
+ },
6236
+ {
6237
+ "type": "function",
6238
+ "name": "minute",
6239
+ "bundle": "core",
6240
+ "sinceVersion": "1.24",
6241
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#minute2",
6242
+ "description": "Returns the minute of the given time.",
6243
+ "examples": "\n##### ตัวอย่าง\n\nGets the minute of the time\n\n```arcade\nHour(Time(2, 59, 23))\n// returns 59\n```\n\n",
6244
+ "completion": {
6245
+ "label": "Minute",
6246
+ "detail": "Minute(timeValue) -> Number",
6247
+ "insertText": "Minute(${1:timeValue_})$0",
6248
+ "insertTextMode": 2,
6249
+ "insertTextFormat": 2,
6250
+ "kind": 3,
6251
+ "documentation": {
6252
+ "kind": "markdown",
6253
+ "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)"
6254
+ }
6255
+ },
6256
+ "parametersInfo": {
6257
+ "min": 1,
6258
+ "max": 1
6259
+ }
6260
+ }
6261
+ ],
5800
6262
  {
5801
6263
  "type": "function",
5802
6264
  "name": "month",
5803
6265
  "bundle": "core",
5804
6266
  "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#month",
5805
6267
  "description": "ส่งคืนเดือนของวันที่ที่กำหนด ช่วงค่าตั้งแต่ 0-11 โดยที่มกราคมคือ `0` และธันวาคมคือ `11`",
5806
- "examples": "\n##### ตัวอย่าง\n\nรับเดือนของวันที่ที่กำหนด ส่งคืน 11 สำหรับเดือนธันวาคม\n\n```arcade\nMonth(Date(1980, 11, 31))\n```\n\n",
6268
+ "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",
5807
6269
  "completion": {
5808
6270
  "label": "Month",
5809
6271
  "detail": "Month(dateValue) -> Number",
@@ -5813,7 +6275,7 @@
5813
6275
  "kind": 3,
5814
6276
  "documentation": {
5815
6277
  "kind": "markdown",
5816
- "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)"
6278
+ "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)"
5817
6279
  }
5818
6280
  },
5819
6281
  "parametersInfo": {
@@ -5845,23 +6307,227 @@
5845
6307
  "max": 0
5846
6308
  }
5847
6309
  },
6310
+ [
6311
+ {
6312
+ "type": "function",
6313
+ "name": "second",
6314
+ "bundle": "core",
6315
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#second1",
6316
+ "description": "Returns the second of the time in the date.",
6317
+ "examples": "\n##### ตัวอย่าง\n\nGets the second of the current time\n\n```arcade\nSecond(Now())\n```\n\n",
6318
+ "completion": {
6319
+ "label": "Second",
6320
+ "detail": "Second(dateValue) -> Number",
6321
+ "insertText": "Second(${1:dateValue_})$0",
6322
+ "insertTextMode": 2,
6323
+ "insertTextFormat": 2,
6324
+ "kind": 3,
6325
+ "documentation": {
6326
+ "kind": "markdown",
6327
+ "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)"
6328
+ }
6329
+ },
6330
+ "parametersInfo": {
6331
+ "min": 1,
6332
+ "max": 1
6333
+ }
6334
+ },
6335
+ {
6336
+ "type": "function",
6337
+ "name": "second",
6338
+ "bundle": "core",
6339
+ "sinceVersion": "1.24",
6340
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#second2",
6341
+ "description": "Returns the second of the given time.",
6342
+ "examples": "\n##### ตัวอย่าง\n\nGets the second of the time\n\n```arcade\nHour(Time(2, 59, 23))\n// returns 23\n```\n\n",
6343
+ "completion": {
6344
+ "label": "Second",
6345
+ "detail": "Second(timeValue) -> Number",
6346
+ "insertText": "Second(${1:timeValue_})$0",
6347
+ "insertTextMode": 2,
6348
+ "insertTextFormat": 2,
6349
+ "kind": 3,
6350
+ "documentation": {
6351
+ "kind": "markdown",
6352
+ "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)"
6353
+ }
6354
+ },
6355
+ "parametersInfo": {
6356
+ "min": 1,
6357
+ "max": 1
6358
+ }
6359
+ }
6360
+ ],
6361
+ [
6362
+ {
6363
+ "type": "function",
6364
+ "name": "time",
6365
+ "bundle": "core",
6366
+ "sinceVersion": "1.24",
6367
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#time1",
6368
+ "description": "Creates a Time value representing the current time in the time zone of the profile's execution context.",
6369
+ "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",
6370
+ "completion": {
6371
+ "label": "Time",
6372
+ "detail": "Time() -> Time",
6373
+ "insertText": "Time($0)",
6374
+ "insertTextMode": 2,
6375
+ "insertTextFormat": 2,
6376
+ "kind": 3,
6377
+ "documentation": {
6378
+ "kind": "markdown",
6379
+ "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"
6380
+ }
6381
+ },
6382
+ "parametersInfo": {
6383
+ "min": 0,
6384
+ "max": 0
6385
+ }
6386
+ },
6387
+ {
6388
+ "type": "function",
6389
+ "name": "time",
6390
+ "bundle": "core",
6391
+ "sinceVersion": "1.24",
6392
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#time2",
6393
+ "description": "Creates a Time value from a given date.",
6394
+ "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",
6395
+ "completion": {
6396
+ "label": "Time",
6397
+ "detail": "Time(dateValue) -> Time",
6398
+ "insertText": "Time(${1:dateValue_})$0",
6399
+ "insertTextMode": 2,
6400
+ "insertTextFormat": 2,
6401
+ "kind": 3,
6402
+ "documentation": {
6403
+ "kind": "markdown",
6404
+ "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"
6405
+ }
6406
+ },
6407
+ "parametersInfo": {
6408
+ "min": 1,
6409
+ "max": 1
6410
+ }
6411
+ },
6412
+ {
6413
+ "type": "function",
6414
+ "name": "time",
6415
+ "bundle": "core",
6416
+ "sinceVersion": "1.24",
6417
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#time3",
6418
+ "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`.",
6419
+ "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",
6420
+ "completion": {
6421
+ "label": "Time",
6422
+ "detail": "Time(numValue) -> Time",
6423
+ "insertText": "Time(${1:numValue_})$0",
6424
+ "insertTextMode": 2,
6425
+ "insertTextFormat": 2,
6426
+ "kind": 3,
6427
+ "documentation": {
6428
+ "kind": "markdown",
6429
+ "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"
6430
+ }
6431
+ },
6432
+ "parametersInfo": {
6433
+ "min": 1,
6434
+ "max": 1
6435
+ }
6436
+ },
6437
+ {
6438
+ "type": "function",
6439
+ "name": "time",
6440
+ "bundle": "core",
6441
+ "sinceVersion": "1.24",
6442
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#time4",
6443
+ "description": "Creates a Time value from inputs representing hours, minutes, seconds, and milliseconds.",
6444
+ "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",
6445
+ "completion": {
6446
+ "label": "Time",
6447
+ "detail": "Time(hours, minutes, seconds?, milliseconds?) -> Time",
6448
+ "insertText": "Time(${1:hours_}, ${2:minutes_})$0",
6449
+ "insertTextMode": 2,
6450
+ "insertTextFormat": 2,
6451
+ "kind": 3,
6452
+ "documentation": {
6453
+ "kind": "markdown",
6454
+ "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"
6455
+ }
6456
+ },
6457
+ "parametersInfo": {
6458
+ "min": 2,
6459
+ "max": 4
6460
+ }
6461
+ },
6462
+ {
6463
+ "type": "function",
6464
+ "name": "time",
6465
+ "bundle": "core",
6466
+ "sinceVersion": "1.24",
6467
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#time5",
6468
+ "description": "Creates a Time value from a text input representing time, with an optional input indicating the text's format.",
6469
+ "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",
6470
+ "completion": {
6471
+ "label": "Time",
6472
+ "detail": "Time(timeValue, format?) -> Time",
6473
+ "insertText": "Time(${1:timeValue_})$0",
6474
+ "insertTextMode": 2,
6475
+ "insertTextFormat": 2,
6476
+ "kind": 3,
6477
+ "documentation": {
6478
+ "kind": "markdown",
6479
+ "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"
6480
+ }
6481
+ },
6482
+ "parametersInfo": {
6483
+ "min": 1,
6484
+ "max": 2
6485
+ }
6486
+ }
6487
+ ],
6488
+ {
6489
+ "type": "function",
6490
+ "name": "timestamp",
6491
+ "bundle": "core",
6492
+ "sinceVersion": "1.1",
6493
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#timestamp",
6494
+ "description": "สร้างค่าวันที่ซึ่งใช้แทนวันที่และเวลาปัจจุบันใน UTC",
6495
+ "examples": "\n##### ตัวอย่าง\n\nสร้างวันที่ในเวลา UTC\n\n```arcade\n// Date that represents Jan 27, 2023, 8:41:20 PM UTC\nTimestamp()\n```\n\n",
6496
+ "completion": {
6497
+ "label": "Timestamp",
6498
+ "detail": "Timestamp() -> Date",
6499
+ "insertText": "Timestamp($0)",
6500
+ "insertTextMode": 2,
6501
+ "insertTextFormat": 2,
6502
+ "kind": 3,
6503
+ "documentation": {
6504
+ "kind": "markdown",
6505
+ "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)"
6506
+ }
6507
+ },
6508
+ "parametersInfo": {
6509
+ "min": 0,
6510
+ "max": 0
6511
+ }
6512
+ },
5848
6513
  {
5849
6514
  "type": "function",
5850
- "name": "second",
6515
+ "name": "timezone",
5851
6516
  "bundle": "core",
5852
- "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#second",
5853
- "description": "ส่งคืนวินาทีของเวลาในวันที่",
5854
- "examples": "\n##### ตัวอย่าง\n\nรับวินาทีของเวลาปัจจุบัน\n\n```arcade\nSecond(Now())\n```\n\n",
6517
+ "sinceVersion": "1.24",
6518
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#timezone",
6519
+ "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",
6520
+ "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",
5855
6521
  "completion": {
5856
- "label": "Second",
5857
- "detail": "Second(dateValue) -> Number",
5858
- "insertText": "Second(${1:dateValue_})$0",
6522
+ "label": "TimeZone",
6523
+ "detail": "TimeZone(dateValue) -> Text",
6524
+ "insertText": "TimeZone(${1:dateValue_})$0",
5859
6525
  "insertTextMode": 2,
5860
6526
  "insertTextFormat": 2,
5861
6527
  "kind": 3,
5862
6528
  "documentation": {
5863
6529
  "kind": "markdown",
5864
- "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)"
6530
+ "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)"
5865
6531
  }
5866
6532
  },
5867
6533
  "parametersInfo": {
@@ -5871,27 +6537,27 @@
5871
6537
  },
5872
6538
  {
5873
6539
  "type": "function",
5874
- "name": "timestamp",
6540
+ "name": "timezoneoffset",
5875
6541
  "bundle": "core",
5876
- "sinceVersion": "1.1",
5877
- "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#timestamp",
5878
- "description": "สร้างค่าวันที่ซึ่งใช้แทนวันที่และเวลาปัจจุบันใน UTC",
5879
- "examples": "\n##### ตัวอย่าง\n\nสร้างวันที่ในเวลา UTC\n\n```arcade\n// Date that represents Jan 27, 2023, 8:41:20 PM UTC\nTimestamp()\n```\n\n",
6542
+ "sinceVersion": "1.24",
6543
+ "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#timezoneoffset",
6544
+ "description": "Returns the time zone offset in minutes from UTC for the given Date.",
6545
+ "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",
5880
6546
  "completion": {
5881
- "label": "Timestamp",
5882
- "detail": "Timestamp() -> Date",
5883
- "insertText": "Timestamp($0)",
6547
+ "label": "TimeZoneOffset",
6548
+ "detail": "TimeZoneOffset(dateValue) -> Number",
6549
+ "insertText": "TimeZoneOffset(${1:dateValue_})$0",
5884
6550
  "insertTextMode": 2,
5885
6551
  "insertTextFormat": 2,
5886
6552
  "kind": 3,
5887
6553
  "documentation": {
5888
6554
  "kind": "markdown",
5889
- "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)"
6555
+ "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)"
5890
6556
  }
5891
6557
  },
5892
6558
  "parametersInfo": {
5893
- "min": 0,
5894
- "max": 0
6559
+ "min": 1,
6560
+ "max": 1
5895
6561
  }
5896
6562
  },
5897
6563
  {
@@ -5975,7 +6641,7 @@
5975
6641
  "sinceVersion": "1.14",
5976
6642
  "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#week",
5977
6643
  "description": "ส่งคืนเลขสัปดาห์ในปีของวันที่ที่กำหนด ช่วงค่าตั้งแต่ 0-53 โดยที่สัปดาห์แรกของปีคือ `0` และสัปดาห์สุดท้ายของปีคือ `51` `52` หรือ `53` ขึ้นอยู่กับปี สัปดาห์แรกและสัปดาห์สุดท้าย อาจไม่ได้มีความยาวครบเจ็ดวัน",
5978
- "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",
6644
+ "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",
5979
6645
  "completion": {
5980
6646
  "label": "Week",
5981
6647
  "detail": "Week(dateValue, startDay?) -> Number",
@@ -5985,7 +6651,7 @@
5985
6651
  "kind": 3,
5986
6652
  "documentation": {
5987
6653
  "kind": "markdown",
5988
- "value": "**[ตั้งแต่เวอร์ชัน 1.14](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nส่งคืนเลขสัปดาห์ในปีของวันที่ที่กำหนด ช่วงค่าตั้งแต่ 0-53 โดยที่สัปดาห์แรกของปีคือ `0` และสัปดาห์สุดท้ายของปีคือ `51` `52` หรือ `53` ขึ้นอยู่กับปี สัปดาห์แรกและสัปดาห์สุดท้าย อาจไม่ได้มีความยาวครบเจ็ดวัน\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)"
6654
+ "value": "**[ตั้งแต่เวอร์ชัน 1.14](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nส่งคืนเลขสัปดาห์ในปีของวันที่ที่กำหนด ช่วงค่าตั้งแต่ 0-53 โดยที่สัปดาห์แรกของปีคือ `0` และสัปดาห์สุดท้ายของปีคือ `51` `52` หรือ `53` ขึ้นอยู่กับปี สัปดาห์แรกและสัปดาห์สุดท้าย อาจไม่ได้มีความยาวครบเจ็ดวัน\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)"
5989
6655
  }
5990
6656
  },
5991
6657
  "parametersInfo": {
@@ -5999,7 +6665,7 @@
5999
6665
  "bundle": "core",
6000
6666
  "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#weekday",
6001
6667
  "description": "ส่งคืนวันของสัปดาห์ของวันที่ที่กำหนด ช่วงค่าจาก 0-6 โดยที่วันอาทิตย์คือ `0` และวันเสาร์คือ `6`",
6002
- "examples": "\n##### ตัวอย่าง\n\nส่งคืนวันของสัปดาห์ของวันที่ที่กำหนด ส่งคืน `3` สำหรับวันพุธ\n\n```arcade\nWeekday(Date(1980, 11, 31))\n```\n\n",
6668
+ "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",
6003
6669
  "completion": {
6004
6670
  "label": "Weekday",
6005
6671
  "detail": "Weekday(dateValue) -> Number",
@@ -6009,7 +6675,7 @@
6009
6675
  "kind": 3,
6010
6676
  "documentation": {
6011
6677
  "kind": "markdown",
6012
- "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)"
6678
+ "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)"
6013
6679
  }
6014
6680
  },
6015
6681
  "parametersInfo": {
@@ -6023,7 +6689,7 @@
6023
6689
  "bundle": "core",
6024
6690
  "link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#year",
6025
6691
  "description": "ส่งคืนปีของวันที่ที่กำหนด",
6026
- "examples": "\n##### ตัวอย่าง\n\nรับปีของวันที่ปัจจุบัน\n\n```arcade\nYear(Now())\n```\n\n",
6692
+ "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",
6027
6693
  "completion": {
6028
6694
  "label": "Year",
6029
6695
  "detail": "Year(dateValue) -> Number",
@@ -6033,7 +6699,7 @@
6033
6699
  "kind": 3,
6034
6700
  "documentation": {
6035
6701
  "kind": "markdown",
6036
- "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)"
6702
+ "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)"
6037
6703
  }
6038
6704
  },
6039
6705
  "parametersInfo": {