@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.
- package/dist/arcgis-coding-components/arcgis-coding-components.esm.js +1 -1
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ar.json +858 -192
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.bg.json +821 -155
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.bs.json +829 -163
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ca.json +829 -163
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.cs.json +829 -163
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.da.json +829 -163
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.de.json +829 -163
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.el.json +858 -192
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.en.json +853 -187
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.es.json +829 -163
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.et.json +829 -163
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.fi.json +858 -192
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.fr.json +829 -163
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.he.json +858 -192
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.hr.json +829 -163
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.hu.json +829 -163
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.id.json +858 -192
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.it.json +821 -155
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ja.json +859 -193
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ko.json +859 -193
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.lt.json +829 -163
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.lv.json +829 -163
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.nb.json +829 -163
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.nl.json +829 -163
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.pl.json +829 -163
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.pt-BR.json +829 -163
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.pt-PT.json +829 -163
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ro.json +829 -163
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ru.json +858 -192
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.sk.json +829 -163
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.sl.json +829 -163
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.sr.json +845 -179
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.sv.json +829 -163
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.th.json +858 -192
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.tr.json +858 -192
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.uk.json +858 -192
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.vi.json +858 -192
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.zh-CN.json +859 -193
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.zh-HK.json +859 -193
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.zh-TW.json +859 -193
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.ar.json +1 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.bg.json +1 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.bs.json +1 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.ca.json +1 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.cs.json +1 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.da.json +1 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.de.json +1 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.el.json +1 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.en.json +1 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.es.json +1 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.et.json +1 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.fi.json +1 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.fr.json +1 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.he.json +1 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.hr.json +1 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.hu.json +1 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.id.json +1 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.it.json +1 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.ja.json +1 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.ko.json +1 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.lt.json +1 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.lv.json +1 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.nb.json +1 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.nl.json +1 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.pl.json +1 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.pt-BR.json +1 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.pt-PT.json +1 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.ro.json +1 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.ru.json +1 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.sk.json +1 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.sl.json +1 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.sr.json +1 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.sv.json +1 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.th.json +1 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.tr.json +1 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.uk.json +1 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.vi.json +1 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.zh-CN.json +1 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.zh-HK.json +1 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.zh-TW.json +1 -2
- package/dist/arcgis-coding-components/index.esm.js +1 -1
- package/dist/arcgis-coding-components/{p-ed254359.js → p-00c0b964.js} +1 -1
- package/dist/arcgis-coding-components/{p-616bcc2c.js → p-0f471c2c.js} +1 -1
- package/dist/arcgis-coding-components/{p-4d7cdaf4.js → p-2daa5deb.js} +1 -1
- package/dist/arcgis-coding-components/{p-b866ffa3.js → p-65933e8a.js} +1 -1
- package/dist/arcgis-coding-components/{p-2eee5b07.js → p-92019d78.js} +7 -7
- package/dist/arcgis-coding-components/{p-ee4aaf72.js → p-bcd478e3.js} +1 -1
- package/dist/arcgis-coding-components/{p-41feaa6e.js → p-be85ec3d.js} +1 -1
- package/dist/arcgis-coding-components/{p-63d6d128.js → p-bf83cfac.js} +1 -1
- package/dist/arcgis-coding-components/p-dd2d53e7.entry.js +1 -0
- package/dist/arcgis-coding-components/{p-c14a46af.js → p-f1b6ba59.js} +1 -1
- package/dist/cjs/{arcade-defaults-f77b7bae.js → arcade-defaults-990ceb0a.js} +51 -33
- package/dist/cjs/{arcade-mode-4b1d5adc.js → arcade-mode-6a101da0.js} +1 -1
- package/dist/cjs/arcgis-arcade-api_6.cjs.entry.js +40 -10
- package/dist/cjs/{cssMode-c21a8b34.js → cssMode-ef738198.js} +1 -1
- package/dist/cjs/{html-baddeebf.js → html-e97a8c1e.js} +1 -1
- package/dist/cjs/{htmlMode-3ca73779.js → htmlMode-0afb8251.js} +1 -1
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/{javascript-4226e8d4.js → javascript-09fbcb7d.js} +2 -2
- package/dist/cjs/{jsonMode-4496d6b9.js → jsonMode-9a315af5.js} +1 -1
- package/dist/cjs/{tsMode-6fa6f2f6.js → tsMode-000c3471.js} +1 -1
- package/dist/cjs/{typescript-5b6bab68.js → typescript-a9f8ce6c.js} +1 -1
- package/dist/components/arcade-api.js +2 -1
- package/dist/components/arcade-defaults.js +3 -23
- package/dist/components/arcade-results.js +40 -10
- package/dist/components/arcade-suggestions.js +2 -1
- package/dist/components/arcade-variables.js +1 -1
- package/dist/components/arcgis-arcade-editor.js +1 -1
- package/dist/components/code-editor.js +1 -1
- package/dist/components/fields.js +125 -0
- package/dist/components/index2.js +282 -32
- package/dist/components/utilities.js +2 -334
- package/dist/esm/{arcade-defaults-24670a1d.js → arcade-defaults-a8808d6a.js} +52 -33
- package/dist/esm/{arcade-mode-dc10ed9f.js → arcade-mode-6c8aff99.js} +1 -1
- package/dist/esm/arcgis-arcade-api_6.entry.js +40 -10
- package/dist/esm/{cssMode-0ae84348.js → cssMode-e19675cf.js} +1 -1
- package/dist/esm/{html-c18864a6.js → html-0e2f7c2f.js} +1 -1
- package/dist/esm/{htmlMode-426699f2.js → htmlMode-a4dd6993.js} +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/{javascript-982f2d73.js → javascript-9d754452.js} +2 -2
- package/dist/esm/{jsonMode-170e0a0e.js → jsonMode-cfafe91a.js} +1 -1
- package/dist/esm/{tsMode-99d2e8e5.js → tsMode-612386a7.js} +1 -1
- package/dist/esm/{typescript-de4f8a27.js → typescript-a17e2ba3.js} +1 -1
- package/dist/types/utils/arcade-executor.d.ts +35 -3
- package/dist/types/utils/fields.d.ts +10 -0
- package/dist/types/utils/profile/types.d.ts +2 -2
- package/dist/types/utils/utilities.d.ts +0 -6
- package/package.json +8 -8
- package/dist/arcgis-coding-components/p-9a6baa15.entry.js +0 -1
|
@@ -574,6 +574,31 @@
|
|
|
574
574
|
"max": 4
|
|
575
575
|
}
|
|
576
576
|
},
|
|
577
|
+
{
|
|
578
|
+
"type": "function",
|
|
579
|
+
"name": "featuresetbyrelationshipclass",
|
|
580
|
+
"bundle": "data-access",
|
|
581
|
+
"sinceVersion": "1.24",
|
|
582
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/featureset_functions/#featuresetbyrelationshipclass",
|
|
583
|
+
"description": "Returns the related records for a given feature as a FeatureSet based on the class name of the relationship.",
|
|
584
|
+
"examples": "\n##### 範例\n\nReturns the count of pole inspection related records\n\n```arcade\n// A calculation rule that returns the count of a pole inspection records.\n// When a pole feature is updated the calculation rule reads all its related inspections records from the comments field and returns the total inspection count for that feature.\nvar fsinspected = FeatureSetByRelationshipClass($feature, “pole_inspection”, [“comments”], false);\nreturn Count(fsinspected);\n```\n\n",
|
|
585
|
+
"completion": {
|
|
586
|
+
"label": "FeatureSetByRelationshipClass",
|
|
587
|
+
"detail": "FeatureSetByRelationshipClass(inputFeature, relationshipClass, fieldNames?, includeGeometry?) -> FeatureSet",
|
|
588
|
+
"insertText": "FeatureSetByRelationshipClass(${1:inputFeature_}, ${2:relationshipClass_})$0",
|
|
589
|
+
"insertTextMode": 2,
|
|
590
|
+
"insertTextFormat": 2,
|
|
591
|
+
"kind": 3,
|
|
592
|
+
"documentation": {
|
|
593
|
+
"kind": "markdown",
|
|
594
|
+
"value": "**[自版本 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nReturns the related records for a given feature as a FeatureSet based on the class name of the relationship.\n\n**參數**\n\n- **inputFeature**: [Feature](https://developers.arcgis.com/arcade/guide/types/#feature) - The feature from which to fetch related records. This feature must come from a feature service; feature collections are not supported.\n- **relationshipClass**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) - The class name of the relationship according to the feature service associated with the given feature.\n- **fieldNames** (_Optional_): [Array](https://developers.arcgis.com/arcade/guide/types/#array)<[Text](https://developers.arcgis.com/arcade/guide/types/#text)> - The fields to return in the FeatureSet. This list includes fields from both the relationship table and the input Feature.\n- **includeGeometry** (_Optional_): [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean) - Indicates whether to return the geometry for the resulting features.\n\n**返回值**: [FeatureSet](https://developers.arcgis.com/arcade/guide/types/#featureset)"
|
|
595
|
+
}
|
|
596
|
+
},
|
|
597
|
+
"parametersInfo": {
|
|
598
|
+
"min": 2,
|
|
599
|
+
"max": 4
|
|
600
|
+
}
|
|
601
|
+
},
|
|
577
602
|
{
|
|
578
603
|
"type": "function",
|
|
579
604
|
"name": "featuresetbyrelationshipname",
|
|
@@ -3848,7 +3873,7 @@
|
|
|
3848
3873
|
"kind": 3,
|
|
3849
3874
|
"documentation": {
|
|
3850
3875
|
"kind": "markdown",
|
|
3851
|
-
"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)"
|
|
3876
|
+
"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)"
|
|
3852
3877
|
}
|
|
3853
3878
|
},
|
|
3854
3879
|
"parametersInfo": {
|
|
@@ -4702,7 +4727,7 @@
|
|
|
4702
4727
|
"bundle": "core",
|
|
4703
4728
|
"link": "https://developers.arcgis.com/arcade/function-reference/text_functions/#text",
|
|
4704
4729
|
"description": "將其引數轉換成文字值,並選擇性地設定其格式。 若失敗則傳回 `null`。",
|
|
4705
|
-
"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(
|
|
4730
|
+
"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",
|
|
4706
4731
|
"completion": {
|
|
4707
4732
|
"label": "Text",
|
|
4708
4733
|
"detail": "Text(value, format?) -> Text",
|
|
@@ -4874,29 +4899,54 @@
|
|
|
4874
4899
|
"id": "date_functions",
|
|
4875
4900
|
"title": "日期函數",
|
|
4876
4901
|
"items": [
|
|
4902
|
+
{
|
|
4903
|
+
"type": "function",
|
|
4904
|
+
"name": "changetimezone",
|
|
4905
|
+
"bundle": "core",
|
|
4906
|
+
"sinceVersion": "1.24",
|
|
4907
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#changetimezone",
|
|
4908
|
+
"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`.",
|
|
4909
|
+
"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",
|
|
4910
|
+
"completion": {
|
|
4911
|
+
"label": "ChangeTimeZone",
|
|
4912
|
+
"detail": "ChangeTimeZone(dateValue, newTimeZone) -> Date",
|
|
4913
|
+
"insertText": "ChangeTimeZone(${1:dateValue_}, ${2:newTimeZone_})$0",
|
|
4914
|
+
"insertTextMode": 2,
|
|
4915
|
+
"insertTextFormat": 2,
|
|
4916
|
+
"kind": 3,
|
|
4917
|
+
"documentation": {
|
|
4918
|
+
"kind": "markdown",
|
|
4919
|
+
"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)"
|
|
4920
|
+
}
|
|
4921
|
+
},
|
|
4922
|
+
"parametersInfo": {
|
|
4923
|
+
"min": 2,
|
|
4924
|
+
"max": 2
|
|
4925
|
+
}
|
|
4926
|
+
},
|
|
4877
4927
|
[
|
|
4878
4928
|
{
|
|
4879
4929
|
"type": "function",
|
|
4880
4930
|
"name": "date",
|
|
4881
4931
|
"bundle": "core",
|
|
4882
4932
|
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#date1",
|
|
4883
|
-
"description": "
|
|
4884
|
-
"examples": "\n##### 範例\n\
|
|
4933
|
+
"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.",
|
|
4934
|
+
"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",
|
|
4885
4935
|
"completion": {
|
|
4886
4936
|
"label": "Date",
|
|
4887
|
-
"detail": "Date(year, month, day, hour?, minute?, second?, millisecond?) -> Date",
|
|
4937
|
+
"detail": "Date(year, month, day, hour?, minute?, second?, millisecond?, timeZone?) -> Date",
|
|
4888
4938
|
"insertText": "Date(${1:year_}, ${2:month_}, ${3:day_})$0",
|
|
4889
4939
|
"insertTextMode": 2,
|
|
4890
4940
|
"insertTextFormat": 2,
|
|
4891
4941
|
"kind": 3,
|
|
4892
4942
|
"documentation": {
|
|
4893
4943
|
"kind": "markdown",
|
|
4894
|
-
"value": "
|
|
4944
|
+
"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)"
|
|
4895
4945
|
}
|
|
4896
4946
|
},
|
|
4897
4947
|
"parametersInfo": {
|
|
4898
4948
|
"min": 3,
|
|
4899
|
-
"max":
|
|
4949
|
+
"max": 8
|
|
4900
4950
|
}
|
|
4901
4951
|
},
|
|
4902
4952
|
{
|
|
@@ -4904,8 +4954,8 @@
|
|
|
4904
4954
|
"name": "date",
|
|
4905
4955
|
"bundle": "core",
|
|
4906
4956
|
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#date2",
|
|
4907
|
-
"description": "
|
|
4908
|
-
"examples": "\n##### 範例\n\
|
|
4957
|
+
"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.",
|
|
4958
|
+
"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",
|
|
4909
4959
|
"completion": {
|
|
4910
4960
|
"label": "Date",
|
|
4911
4961
|
"detail": "Date(epoch?) -> Date",
|
|
@@ -4915,7 +4965,7 @@
|
|
|
4915
4965
|
"kind": 3,
|
|
4916
4966
|
"documentation": {
|
|
4917
4967
|
"kind": "markdown",
|
|
4918
|
-
"value": "
|
|
4968
|
+
"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)"
|
|
4919
4969
|
}
|
|
4920
4970
|
},
|
|
4921
4971
|
"parametersInfo": {
|
|
@@ -4928,8 +4978,8 @@
|
|
|
4928
4978
|
"name": "date",
|
|
4929
4979
|
"bundle": "core",
|
|
4930
4980
|
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#date3",
|
|
4931
|
-
"description": "
|
|
4932
|
-
"examples": "\n##### 範例\n\
|
|
4981
|
+
"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.",
|
|
4982
|
+
"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",
|
|
4933
4983
|
"completion": {
|
|
4934
4984
|
"label": "Date",
|
|
4935
4985
|
"detail": "Date(timestamp?) -> Date",
|
|
@@ -4939,154 +4989,386 @@
|
|
|
4939
4989
|
"kind": 3,
|
|
4940
4990
|
"documentation": {
|
|
4941
4991
|
"kind": "markdown",
|
|
4942
|
-
"value": "
|
|
4992
|
+
"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)"
|
|
4943
4993
|
}
|
|
4944
4994
|
},
|
|
4945
4995
|
"parametersInfo": {
|
|
4946
4996
|
"min": 0,
|
|
4947
4997
|
"max": 1
|
|
4948
4998
|
}
|
|
4999
|
+
},
|
|
5000
|
+
{
|
|
5001
|
+
"type": "function",
|
|
5002
|
+
"name": "date",
|
|
5003
|
+
"bundle": "core",
|
|
5004
|
+
"sinceVersion": "1.24",
|
|
5005
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#date4",
|
|
5006
|
+
"description": "Creates a Date from a DateOnly value, with an optional Time and time zone value.",
|
|
5007
|
+
"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",
|
|
5008
|
+
"completion": {
|
|
5009
|
+
"label": "Date",
|
|
5010
|
+
"detail": "Date(dateOnlyValue, timeValue?, timeZone?) -> Date",
|
|
5011
|
+
"insertText": "Date(${1:dateOnlyValue_})$0",
|
|
5012
|
+
"insertTextMode": 2,
|
|
5013
|
+
"insertTextFormat": 2,
|
|
5014
|
+
"kind": 3,
|
|
5015
|
+
"documentation": {
|
|
5016
|
+
"kind": "markdown",
|
|
5017
|
+
"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)"
|
|
5018
|
+
}
|
|
5019
|
+
},
|
|
5020
|
+
"parametersInfo": {
|
|
5021
|
+
"min": 1,
|
|
5022
|
+
"max": 3
|
|
5023
|
+
}
|
|
5024
|
+
},
|
|
5025
|
+
{
|
|
5026
|
+
"type": "function",
|
|
5027
|
+
"name": "date",
|
|
5028
|
+
"bundle": "core",
|
|
5029
|
+
"sinceVersion": "1.24",
|
|
5030
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#date5",
|
|
5031
|
+
"description": "Creates a copy of the given Date.",
|
|
5032
|
+
"examples": "\n##### 範例\n\nCreates a copy of the current Date value\n\n```arcade\nvar copiedDate = Date(Now())\n```\n\n",
|
|
5033
|
+
"completion": {
|
|
5034
|
+
"label": "Date",
|
|
5035
|
+
"detail": "Date(dateValue) -> Date",
|
|
5036
|
+
"insertText": "Date(${1:dateValue_})$0",
|
|
5037
|
+
"insertTextMode": 2,
|
|
5038
|
+
"insertTextFormat": 2,
|
|
5039
|
+
"kind": 3,
|
|
5040
|
+
"documentation": {
|
|
5041
|
+
"kind": "markdown",
|
|
5042
|
+
"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)"
|
|
5043
|
+
}
|
|
5044
|
+
},
|
|
5045
|
+
"parametersInfo": {
|
|
5046
|
+
"min": 1,
|
|
5047
|
+
"max": 1
|
|
5048
|
+
}
|
|
4949
5049
|
}
|
|
4950
5050
|
],
|
|
4951
|
-
|
|
4952
|
-
|
|
4953
|
-
|
|
4954
|
-
|
|
4955
|
-
|
|
4956
|
-
|
|
4957
|
-
|
|
4958
|
-
|
|
4959
|
-
"
|
|
4960
|
-
|
|
4961
|
-
|
|
4962
|
-
|
|
4963
|
-
|
|
4964
|
-
|
|
4965
|
-
|
|
4966
|
-
"
|
|
4967
|
-
|
|
5051
|
+
[
|
|
5052
|
+
{
|
|
5053
|
+
"type": "function",
|
|
5054
|
+
"name": "dateadd",
|
|
5055
|
+
"bundle": "core",
|
|
5056
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#dateadd1",
|
|
5057
|
+
"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.",
|
|
5058
|
+
"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",
|
|
5059
|
+
"completion": {
|
|
5060
|
+
"label": "DateAdd",
|
|
5061
|
+
"detail": "DateAdd(dateValue, addValue, units?) -> Date",
|
|
5062
|
+
"insertText": "DateAdd(${1:dateValue_}, ${2:addValue_})$0",
|
|
5063
|
+
"insertTextMode": 2,
|
|
5064
|
+
"insertTextFormat": 2,
|
|
5065
|
+
"kind": 3,
|
|
5066
|
+
"documentation": {
|
|
5067
|
+
"kind": "markdown",
|
|
5068
|
+
"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)"
|
|
5069
|
+
}
|
|
5070
|
+
},
|
|
5071
|
+
"parametersInfo": {
|
|
5072
|
+
"min": 2,
|
|
5073
|
+
"max": 3
|
|
4968
5074
|
}
|
|
4969
5075
|
},
|
|
4970
|
-
|
|
4971
|
-
"
|
|
4972
|
-
"
|
|
4973
|
-
|
|
4974
|
-
|
|
4975
|
-
|
|
4976
|
-
|
|
4977
|
-
|
|
4978
|
-
|
|
4979
|
-
|
|
4980
|
-
|
|
4981
|
-
|
|
4982
|
-
|
|
4983
|
-
|
|
4984
|
-
|
|
4985
|
-
|
|
4986
|
-
|
|
4987
|
-
|
|
4988
|
-
|
|
4989
|
-
|
|
4990
|
-
|
|
4991
|
-
"
|
|
5076
|
+
{
|
|
5077
|
+
"type": "function",
|
|
5078
|
+
"name": "dateadd",
|
|
5079
|
+
"bundle": "core",
|
|
5080
|
+
"sinceVersion": "1.24",
|
|
5081
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#dateadd2",
|
|
5082
|
+
"description": "Adds a specified amount of time in the given units to a DateOnly value and returns a new DateOnly value.",
|
|
5083
|
+
"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",
|
|
5084
|
+
"completion": {
|
|
5085
|
+
"label": "DateAdd",
|
|
5086
|
+
"detail": "DateAdd(dateOnlyValue, addValue, units?) -> DateOnly",
|
|
5087
|
+
"insertText": "DateAdd(${1:dateOnlyValue_}, ${2:addValue_})$0",
|
|
5088
|
+
"insertTextMode": 2,
|
|
5089
|
+
"insertTextFormat": 2,
|
|
5090
|
+
"kind": 3,
|
|
5091
|
+
"documentation": {
|
|
5092
|
+
"kind": "markdown",
|
|
5093
|
+
"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"
|
|
5094
|
+
}
|
|
5095
|
+
},
|
|
5096
|
+
"parametersInfo": {
|
|
5097
|
+
"min": 2,
|
|
5098
|
+
"max": 3
|
|
4992
5099
|
}
|
|
4993
5100
|
},
|
|
4994
|
-
|
|
4995
|
-
"
|
|
4996
|
-
"
|
|
5101
|
+
{
|
|
5102
|
+
"type": "function",
|
|
5103
|
+
"name": "dateadd",
|
|
5104
|
+
"bundle": "core",
|
|
5105
|
+
"sinceVersion": "1.24",
|
|
5106
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#dateadd3",
|
|
5107
|
+
"description": "Adds a specified amount of time in the given units to a Time value and returns a new Time value.",
|
|
5108
|
+
"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",
|
|
5109
|
+
"completion": {
|
|
5110
|
+
"label": "DateAdd",
|
|
5111
|
+
"detail": "DateAdd(timeValue, addValue, units?) -> Time",
|
|
5112
|
+
"insertText": "DateAdd(${1:timeValue_}, ${2:addValue_})$0",
|
|
5113
|
+
"insertTextMode": 2,
|
|
5114
|
+
"insertTextFormat": 2,
|
|
5115
|
+
"kind": 3,
|
|
5116
|
+
"documentation": {
|
|
5117
|
+
"kind": "markdown",
|
|
5118
|
+
"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"
|
|
5119
|
+
}
|
|
5120
|
+
},
|
|
5121
|
+
"parametersInfo": {
|
|
5122
|
+
"min": 2,
|
|
5123
|
+
"max": 3
|
|
5124
|
+
}
|
|
4997
5125
|
}
|
|
4998
|
-
|
|
4999
|
-
|
|
5000
|
-
|
|
5001
|
-
|
|
5002
|
-
|
|
5003
|
-
|
|
5004
|
-
|
|
5005
|
-
|
|
5006
|
-
|
|
5007
|
-
"
|
|
5008
|
-
|
|
5009
|
-
|
|
5010
|
-
|
|
5011
|
-
|
|
5012
|
-
|
|
5013
|
-
|
|
5014
|
-
"
|
|
5015
|
-
|
|
5126
|
+
],
|
|
5127
|
+
[
|
|
5128
|
+
{
|
|
5129
|
+
"type": "function",
|
|
5130
|
+
"name": "datediff",
|
|
5131
|
+
"bundle": "core",
|
|
5132
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#datediff1",
|
|
5133
|
+
"description": "Subtracts two Dates, and returns the difference in the specified units.",
|
|
5134
|
+
"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",
|
|
5135
|
+
"completion": {
|
|
5136
|
+
"label": "DateDiff",
|
|
5137
|
+
"detail": "DateDiff(date1, date2, units?, timeZone?) -> Number",
|
|
5138
|
+
"insertText": "DateDiff(${1:date1_}, ${2:date2_})$0",
|
|
5139
|
+
"insertTextMode": 2,
|
|
5140
|
+
"insertTextFormat": 2,
|
|
5141
|
+
"kind": 3,
|
|
5142
|
+
"documentation": {
|
|
5143
|
+
"kind": "markdown",
|
|
5144
|
+
"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)"
|
|
5145
|
+
}
|
|
5146
|
+
},
|
|
5147
|
+
"parametersInfo": {
|
|
5148
|
+
"min": 2,
|
|
5149
|
+
"max": 4
|
|
5016
5150
|
}
|
|
5017
5151
|
},
|
|
5018
|
-
|
|
5019
|
-
"
|
|
5020
|
-
"
|
|
5021
|
-
|
|
5022
|
-
|
|
5023
|
-
|
|
5024
|
-
|
|
5025
|
-
|
|
5026
|
-
|
|
5027
|
-
|
|
5028
|
-
|
|
5029
|
-
|
|
5030
|
-
|
|
5031
|
-
|
|
5032
|
-
|
|
5033
|
-
|
|
5034
|
-
|
|
5035
|
-
|
|
5036
|
-
|
|
5037
|
-
|
|
5038
|
-
|
|
5039
|
-
"
|
|
5152
|
+
{
|
|
5153
|
+
"type": "function",
|
|
5154
|
+
"name": "datediff",
|
|
5155
|
+
"bundle": "core",
|
|
5156
|
+
"sinceVersion": "1.24",
|
|
5157
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#datediff2",
|
|
5158
|
+
"description": "Subtracts two DateOnly values, and returns the difference in the specified units.",
|
|
5159
|
+
"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",
|
|
5160
|
+
"completion": {
|
|
5161
|
+
"label": "DateDiff",
|
|
5162
|
+
"detail": "DateDiff(dateOnly1, dateOnly2, units?) -> Number",
|
|
5163
|
+
"insertText": "DateDiff(${1:dateOnly1_}, ${2:dateOnly2_})$0",
|
|
5164
|
+
"insertTextMode": 2,
|
|
5165
|
+
"insertTextFormat": 2,
|
|
5166
|
+
"kind": 3,
|
|
5167
|
+
"documentation": {
|
|
5168
|
+
"kind": "markdown",
|
|
5169
|
+
"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)"
|
|
5170
|
+
}
|
|
5171
|
+
},
|
|
5172
|
+
"parametersInfo": {
|
|
5173
|
+
"min": 2,
|
|
5174
|
+
"max": 3
|
|
5040
5175
|
}
|
|
5041
5176
|
},
|
|
5042
|
-
|
|
5043
|
-
"
|
|
5044
|
-
"
|
|
5177
|
+
{
|
|
5178
|
+
"type": "function",
|
|
5179
|
+
"name": "datediff",
|
|
5180
|
+
"bundle": "core",
|
|
5181
|
+
"sinceVersion": "1.24",
|
|
5182
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#datediff3",
|
|
5183
|
+
"description": "Subtracts two Time values, and returns the difference in the specified units.",
|
|
5184
|
+
"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",
|
|
5185
|
+
"completion": {
|
|
5186
|
+
"label": "DateDiff",
|
|
5187
|
+
"detail": "DateDiff(time1, time2, units?) -> Number",
|
|
5188
|
+
"insertText": "DateDiff(${1:time1_}, ${2:time2_})$0",
|
|
5189
|
+
"insertTextMode": 2,
|
|
5190
|
+
"insertTextFormat": 2,
|
|
5191
|
+
"kind": 3,
|
|
5192
|
+
"documentation": {
|
|
5193
|
+
"kind": "markdown",
|
|
5194
|
+
"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)"
|
|
5195
|
+
}
|
|
5196
|
+
},
|
|
5197
|
+
"parametersInfo": {
|
|
5198
|
+
"min": 2,
|
|
5199
|
+
"max": 3
|
|
5200
|
+
}
|
|
5045
5201
|
}
|
|
5046
|
-
|
|
5047
|
-
|
|
5048
|
-
|
|
5049
|
-
|
|
5050
|
-
|
|
5051
|
-
|
|
5052
|
-
|
|
5053
|
-
|
|
5054
|
-
|
|
5055
|
-
|
|
5056
|
-
"
|
|
5057
|
-
|
|
5058
|
-
|
|
5059
|
-
|
|
5060
|
-
|
|
5061
|
-
|
|
5062
|
-
|
|
5063
|
-
"
|
|
5064
|
-
|
|
5202
|
+
],
|
|
5203
|
+
[
|
|
5204
|
+
{
|
|
5205
|
+
"type": "function",
|
|
5206
|
+
"name": "dateonly",
|
|
5207
|
+
"bundle": "core",
|
|
5208
|
+
"sinceVersion": "1.24",
|
|
5209
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#dateonly1",
|
|
5210
|
+
"description": "Creates a DateOnly value based on the current date in the time zone of the profile's execution context.",
|
|
5211
|
+
"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",
|
|
5212
|
+
"completion": {
|
|
5213
|
+
"label": "DateOnly",
|
|
5214
|
+
"detail": "DateOnly() -> DateOnly",
|
|
5215
|
+
"insertText": "DateOnly($0)",
|
|
5216
|
+
"insertTextMode": 2,
|
|
5217
|
+
"insertTextFormat": 2,
|
|
5218
|
+
"kind": 3,
|
|
5219
|
+
"documentation": {
|
|
5220
|
+
"kind": "markdown",
|
|
5221
|
+
"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"
|
|
5222
|
+
}
|
|
5223
|
+
},
|
|
5224
|
+
"parametersInfo": {
|
|
5225
|
+
"min": 0,
|
|
5226
|
+
"max": 0
|
|
5065
5227
|
}
|
|
5066
5228
|
},
|
|
5067
|
-
|
|
5068
|
-
"
|
|
5069
|
-
"
|
|
5070
|
-
|
|
5071
|
-
|
|
5072
|
-
|
|
5073
|
-
|
|
5074
|
-
|
|
5075
|
-
|
|
5076
|
-
|
|
5077
|
-
|
|
5078
|
-
|
|
5079
|
-
|
|
5229
|
+
{
|
|
5230
|
+
"type": "function",
|
|
5231
|
+
"name": "dateonly",
|
|
5232
|
+
"bundle": "core",
|
|
5233
|
+
"sinceVersion": "1.24",
|
|
5234
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#dateonly2",
|
|
5235
|
+
"description": "Creates a DateOnly value from a given date.",
|
|
5236
|
+
"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",
|
|
5237
|
+
"completion": {
|
|
5238
|
+
"label": "DateOnly",
|
|
5239
|
+
"detail": "DateOnly(dateValue) -> DateOnly",
|
|
5240
|
+
"insertText": "DateOnly(${1:dateValue_})$0",
|
|
5241
|
+
"insertTextMode": 2,
|
|
5242
|
+
"insertTextFormat": 2,
|
|
5243
|
+
"kind": 3,
|
|
5244
|
+
"documentation": {
|
|
5245
|
+
"kind": "markdown",
|
|
5246
|
+
"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"
|
|
5247
|
+
}
|
|
5248
|
+
},
|
|
5249
|
+
"parametersInfo": {
|
|
5250
|
+
"min": 1,
|
|
5251
|
+
"max": 1
|
|
5252
|
+
}
|
|
5253
|
+
},
|
|
5254
|
+
{
|
|
5255
|
+
"type": "function",
|
|
5256
|
+
"name": "dateonly",
|
|
5257
|
+
"bundle": "core",
|
|
5258
|
+
"sinceVersion": "1.24",
|
|
5259
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#dateonly3",
|
|
5260
|
+
"description": "Creates a DateOnly date with the given Unix epoch number.",
|
|
5261
|
+
"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",
|
|
5262
|
+
"completion": {
|
|
5263
|
+
"label": "DateOnly",
|
|
5264
|
+
"detail": "DateOnly(epoch) -> DateOnly",
|
|
5265
|
+
"insertText": "DateOnly(${1:epoch_})$0",
|
|
5266
|
+
"insertTextMode": 2,
|
|
5267
|
+
"insertTextFormat": 2,
|
|
5268
|
+
"kind": 3,
|
|
5269
|
+
"documentation": {
|
|
5270
|
+
"kind": "markdown",
|
|
5271
|
+
"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"
|
|
5272
|
+
}
|
|
5273
|
+
},
|
|
5274
|
+
"parametersInfo": {
|
|
5275
|
+
"min": 1,
|
|
5276
|
+
"max": 1
|
|
5277
|
+
}
|
|
5278
|
+
},
|
|
5279
|
+
{
|
|
5280
|
+
"type": "function",
|
|
5281
|
+
"name": "dateonly",
|
|
5282
|
+
"bundle": "core",
|
|
5283
|
+
"sinceVersion": "1.24",
|
|
5284
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#dateonly4",
|
|
5285
|
+
"description": "Creates a DateOnly value from inputs representing the year, month, and day.",
|
|
5286
|
+
"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",
|
|
5287
|
+
"completion": {
|
|
5288
|
+
"label": "DateOnly",
|
|
5289
|
+
"detail": "DateOnly(year, month, day) -> DateOnly",
|
|
5290
|
+
"insertText": "DateOnly(${1:year_}, ${2:month_}, ${3:day_})$0",
|
|
5291
|
+
"insertTextMode": 2,
|
|
5292
|
+
"insertTextFormat": 2,
|
|
5293
|
+
"kind": 3,
|
|
5294
|
+
"documentation": {
|
|
5295
|
+
"kind": "markdown",
|
|
5296
|
+
"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"
|
|
5297
|
+
}
|
|
5298
|
+
},
|
|
5299
|
+
"parametersInfo": {
|
|
5300
|
+
"min": 3,
|
|
5301
|
+
"max": 3
|
|
5302
|
+
}
|
|
5303
|
+
},
|
|
5304
|
+
{
|
|
5305
|
+
"type": "function",
|
|
5306
|
+
"name": "dateonly",
|
|
5307
|
+
"bundle": "core",
|
|
5308
|
+
"sinceVersion": "1.24",
|
|
5309
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#dateonly5",
|
|
5310
|
+
"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.",
|
|
5311
|
+
"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",
|
|
5312
|
+
"completion": {
|
|
5313
|
+
"label": "DateOnly",
|
|
5314
|
+
"detail": "DateOnly(dateValue, format?) -> DateOnly",
|
|
5315
|
+
"insertText": "DateOnly(${1:dateValue_})$0",
|
|
5316
|
+
"insertTextMode": 2,
|
|
5317
|
+
"insertTextFormat": 2,
|
|
5318
|
+
"kind": 3,
|
|
5319
|
+
"documentation": {
|
|
5320
|
+
"kind": "markdown",
|
|
5321
|
+
"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"
|
|
5322
|
+
}
|
|
5323
|
+
},
|
|
5324
|
+
"parametersInfo": {
|
|
5325
|
+
"min": 1,
|
|
5326
|
+
"max": 2
|
|
5327
|
+
}
|
|
5328
|
+
},
|
|
5329
|
+
{
|
|
5330
|
+
"type": "function",
|
|
5331
|
+
"name": "dateonly",
|
|
5332
|
+
"bundle": "core",
|
|
5333
|
+
"sinceVersion": "1.24",
|
|
5334
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#dateonly6",
|
|
5335
|
+
"description": "Creates a copy of a DateOnly value.",
|
|
5336
|
+
"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",
|
|
5337
|
+
"completion": {
|
|
5338
|
+
"label": "DateOnly",
|
|
5339
|
+
"detail": "DateOnly(dateOnlyValue) -> DateOnly",
|
|
5340
|
+
"insertText": "DateOnly(${1:dateOnlyValue_})$0",
|
|
5341
|
+
"insertTextMode": 2,
|
|
5342
|
+
"insertTextFormat": 2,
|
|
5343
|
+
"kind": 3,
|
|
5344
|
+
"documentation": {
|
|
5345
|
+
"kind": "markdown",
|
|
5346
|
+
"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"
|
|
5347
|
+
}
|
|
5348
|
+
},
|
|
5349
|
+
"parametersInfo": {
|
|
5350
|
+
"min": 1,
|
|
5351
|
+
"max": 1
|
|
5352
|
+
}
|
|
5353
|
+
}
|
|
5354
|
+
],
|
|
5355
|
+
{
|
|
5356
|
+
"type": "function",
|
|
5357
|
+
"name": "day",
|
|
5358
|
+
"bundle": "core",
|
|
5359
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#day",
|
|
5360
|
+
"description": "傳回指定日期的月中日期。",
|
|
5361
|
+
"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",
|
|
5080
5362
|
"completion": {
|
|
5081
|
-
"label": "
|
|
5082
|
-
"detail": "
|
|
5083
|
-
"insertText": "
|
|
5363
|
+
"label": "Day",
|
|
5364
|
+
"detail": "Day(dateValue) -> Number",
|
|
5365
|
+
"insertText": "Day(${1:dateValue_})$0",
|
|
5084
5366
|
"insertTextMode": 2,
|
|
5085
5367
|
"insertTextFormat": 2,
|
|
5086
5368
|
"kind": 3,
|
|
5087
5369
|
"documentation": {
|
|
5088
5370
|
"kind": "markdown",
|
|
5089
|
-
"value": "
|
|
5371
|
+
"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)"
|
|
5090
5372
|
}
|
|
5091
5373
|
},
|
|
5092
5374
|
"parametersInfo": {
|
|
@@ -5094,24 +5376,75 @@
|
|
|
5094
5376
|
"max": 1
|
|
5095
5377
|
}
|
|
5096
5378
|
},
|
|
5379
|
+
[
|
|
5380
|
+
{
|
|
5381
|
+
"type": "function",
|
|
5382
|
+
"name": "hour",
|
|
5383
|
+
"bundle": "core",
|
|
5384
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#hour1",
|
|
5385
|
+
"description": "Returns the hour of the time in the given date (0-23).",
|
|
5386
|
+
"examples": "\n##### 範例\n\nGets the hour of the current time\n\n```arcade\nHour(Now())\n```\n\n",
|
|
5387
|
+
"completion": {
|
|
5388
|
+
"label": "Hour",
|
|
5389
|
+
"detail": "Hour(dateValue) -> Number",
|
|
5390
|
+
"insertText": "Hour(${1:dateValue_})$0",
|
|
5391
|
+
"insertTextMode": 2,
|
|
5392
|
+
"insertTextFormat": 2,
|
|
5393
|
+
"kind": 3,
|
|
5394
|
+
"documentation": {
|
|
5395
|
+
"kind": "markdown",
|
|
5396
|
+
"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)"
|
|
5397
|
+
}
|
|
5398
|
+
},
|
|
5399
|
+
"parametersInfo": {
|
|
5400
|
+
"min": 1,
|
|
5401
|
+
"max": 1
|
|
5402
|
+
}
|
|
5403
|
+
},
|
|
5404
|
+
{
|
|
5405
|
+
"type": "function",
|
|
5406
|
+
"name": "hour",
|
|
5407
|
+
"bundle": "core",
|
|
5408
|
+
"sinceVersion": "1.24",
|
|
5409
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#hour2",
|
|
5410
|
+
"description": "Returns the hour of the given time (0-23).",
|
|
5411
|
+
"examples": "\n##### 範例\n\nGets the hour of the time\n\n```arcade\nHour(Time(2, 59, 23))\n// returns 2\n```\n\n",
|
|
5412
|
+
"completion": {
|
|
5413
|
+
"label": "Hour",
|
|
5414
|
+
"detail": "Hour(timeValue) -> Number",
|
|
5415
|
+
"insertText": "Hour(${1:timeValue_})$0",
|
|
5416
|
+
"insertTextMode": 2,
|
|
5417
|
+
"insertTextFormat": 2,
|
|
5418
|
+
"kind": 3,
|
|
5419
|
+
"documentation": {
|
|
5420
|
+
"kind": "markdown",
|
|
5421
|
+
"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)"
|
|
5422
|
+
}
|
|
5423
|
+
},
|
|
5424
|
+
"parametersInfo": {
|
|
5425
|
+
"min": 1,
|
|
5426
|
+
"max": 1
|
|
5427
|
+
}
|
|
5428
|
+
}
|
|
5429
|
+
],
|
|
5097
5430
|
{
|
|
5098
5431
|
"type": "function",
|
|
5099
|
-
"name": "
|
|
5432
|
+
"name": "isomonth",
|
|
5100
5433
|
"bundle": "core",
|
|
5101
5434
|
"sinceVersion": "1.12",
|
|
5102
|
-
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#
|
|
5103
|
-
"description": "根據 ISO 8601
|
|
5104
|
-
"examples": "\n##### 範例\n\n根據 ISO 8601
|
|
5435
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#isomonth",
|
|
5436
|
+
"description": "根據 ISO 8601 標準傳回指定日期的月份。 值範圍為 1-12,1 月為 `1`,12 月為 `12`。",
|
|
5437
|
+
"examples": "\n##### 範例\n\n根據 ISO 8601 標準取得指定日期的月份。 傳回 12,代表 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",
|
|
5105
5438
|
"completion": {
|
|
5106
|
-
"label": "
|
|
5107
|
-
"detail": "
|
|
5108
|
-
"insertText": "
|
|
5439
|
+
"label": "ISOMonth",
|
|
5440
|
+
"detail": "ISOMonth(dateValue) -> Number",
|
|
5441
|
+
"insertText": "ISOMonth(${1:dateValue_})$0",
|
|
5109
5442
|
"insertTextMode": 2,
|
|
5110
5443
|
"insertTextFormat": 2,
|
|
5111
5444
|
"kind": 3,
|
|
5112
5445
|
"documentation": {
|
|
5113
5446
|
"kind": "markdown",
|
|
5114
|
-
"value": "**[自版本 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\n根據 ISO 8601
|
|
5447
|
+
"value": "**[自版本 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\n根據 ISO 8601 標準傳回指定日期的月份。 值範圍為 1-12,1 月為 `1`,12 月為 `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)"
|
|
5115
5448
|
}
|
|
5116
5449
|
},
|
|
5117
5450
|
"parametersInfo": {
|
|
@@ -5121,22 +5454,22 @@
|
|
|
5121
5454
|
},
|
|
5122
5455
|
{
|
|
5123
5456
|
"type": "function",
|
|
5124
|
-
"name": "
|
|
5457
|
+
"name": "isoweek",
|
|
5125
5458
|
"bundle": "core",
|
|
5126
5459
|
"sinceVersion": "1.12",
|
|
5127
|
-
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#
|
|
5128
|
-
"description": "根據 ISO 8601
|
|
5129
|
-
"examples": "\n##### 範例\n\n根據 ISO 8601
|
|
5460
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#isoweek",
|
|
5461
|
+
"description": "根據 ISO 8601 週日期行事曆,傳回指定日期在一年當中的週次。 值範圍為 1-53,其中一年的第一週為 `1`,一年的最後一週為 `52` 或 `53` (根據年份而定)。",
|
|
5462
|
+
"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",
|
|
5130
5463
|
"completion": {
|
|
5131
|
-
"label": "
|
|
5132
|
-
"detail": "
|
|
5133
|
-
"insertText": "
|
|
5464
|
+
"label": "ISOWeek",
|
|
5465
|
+
"detail": "ISOWeek(dateValue) -> Number",
|
|
5466
|
+
"insertText": "ISOWeek(${1:dateValue_})$0",
|
|
5134
5467
|
"insertTextMode": 2,
|
|
5135
5468
|
"insertTextFormat": 2,
|
|
5136
5469
|
"kind": 3,
|
|
5137
5470
|
"documentation": {
|
|
5138
5471
|
"kind": "markdown",
|
|
5139
|
-
"value": "**[自版本 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\n根據 ISO 8601
|
|
5472
|
+
"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)"
|
|
5140
5473
|
}
|
|
5141
5474
|
},
|
|
5142
5475
|
"parametersInfo": {
|
|
@@ -5146,21 +5479,22 @@
|
|
|
5146
5479
|
},
|
|
5147
5480
|
{
|
|
5148
5481
|
"type": "function",
|
|
5149
|
-
"name": "
|
|
5482
|
+
"name": "isoweekday",
|
|
5150
5483
|
"bundle": "core",
|
|
5151
|
-
"
|
|
5152
|
-
"
|
|
5153
|
-
"
|
|
5484
|
+
"sinceVersion": "1.12",
|
|
5485
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#isoweekday",
|
|
5486
|
+
"description": "根據 ISO 8601 標準傳回指定日期的星期幾。 值範圍為 1-7,其中星期一為 `1,星期日為 `7`。",
|
|
5487
|
+
"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",
|
|
5154
5488
|
"completion": {
|
|
5155
|
-
"label": "
|
|
5156
|
-
"detail": "
|
|
5157
|
-
"insertText": "
|
|
5489
|
+
"label": "ISOWeekday",
|
|
5490
|
+
"detail": "ISOWeekday(dateValue) -> Number",
|
|
5491
|
+
"insertText": "ISOWeekday(${1:dateValue_})$0",
|
|
5158
5492
|
"insertTextMode": 2,
|
|
5159
5493
|
"insertTextFormat": 2,
|
|
5160
5494
|
"kind": 3,
|
|
5161
5495
|
"documentation": {
|
|
5162
5496
|
"kind": "markdown",
|
|
5163
|
-
"value": "
|
|
5497
|
+
"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)"
|
|
5164
5498
|
}
|
|
5165
5499
|
},
|
|
5166
5500
|
"parametersInfo": {
|
|
@@ -5170,21 +5504,22 @@
|
|
|
5170
5504
|
},
|
|
5171
5505
|
{
|
|
5172
5506
|
"type": "function",
|
|
5173
|
-
"name": "
|
|
5507
|
+
"name": "isoyear",
|
|
5174
5508
|
"bundle": "core",
|
|
5175
|
-
"
|
|
5176
|
-
"
|
|
5177
|
-
"
|
|
5509
|
+
"sinceVersion": "1.12",
|
|
5510
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#isoyear",
|
|
5511
|
+
"description": "根據 ISO 8601 週日期行事曆,傳回指定日期的年份。",
|
|
5512
|
+
"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",
|
|
5178
5513
|
"completion": {
|
|
5179
|
-
"label": "
|
|
5180
|
-
"detail": "
|
|
5181
|
-
"insertText": "
|
|
5514
|
+
"label": "ISOYear",
|
|
5515
|
+
"detail": "ISOYear(dateValue) -> Number",
|
|
5516
|
+
"insertText": "ISOYear(${1:dateValue_})$0",
|
|
5182
5517
|
"insertTextMode": 2,
|
|
5183
5518
|
"insertTextFormat": 2,
|
|
5184
5519
|
"kind": 3,
|
|
5185
5520
|
"documentation": {
|
|
5186
5521
|
"kind": "markdown",
|
|
5187
|
-
"value": "
|
|
5522
|
+
"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)"
|
|
5188
5523
|
}
|
|
5189
5524
|
},
|
|
5190
5525
|
"parametersInfo": {
|
|
@@ -5192,13 +5527,115 @@
|
|
|
5192
5527
|
"max": 1
|
|
5193
5528
|
}
|
|
5194
5529
|
},
|
|
5530
|
+
[
|
|
5531
|
+
{
|
|
5532
|
+
"type": "function",
|
|
5533
|
+
"name": "millisecond",
|
|
5534
|
+
"bundle": "core",
|
|
5535
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#millisecond1",
|
|
5536
|
+
"description": "Returns the millisecond of the time in the date.",
|
|
5537
|
+
"examples": "\n##### 範例\n\nGets the millisecond of the current time\n\n```arcade\nMillisecond(Now())\n```\n\n",
|
|
5538
|
+
"completion": {
|
|
5539
|
+
"label": "Millisecond",
|
|
5540
|
+
"detail": "Millisecond(dateValue) -> Number",
|
|
5541
|
+
"insertText": "Millisecond(${1:dateValue_})$0",
|
|
5542
|
+
"insertTextMode": 2,
|
|
5543
|
+
"insertTextFormat": 2,
|
|
5544
|
+
"kind": 3,
|
|
5545
|
+
"documentation": {
|
|
5546
|
+
"kind": "markdown",
|
|
5547
|
+
"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)"
|
|
5548
|
+
}
|
|
5549
|
+
},
|
|
5550
|
+
"parametersInfo": {
|
|
5551
|
+
"min": 1,
|
|
5552
|
+
"max": 1
|
|
5553
|
+
}
|
|
5554
|
+
},
|
|
5555
|
+
{
|
|
5556
|
+
"type": "function",
|
|
5557
|
+
"name": "millisecond",
|
|
5558
|
+
"bundle": "core",
|
|
5559
|
+
"sinceVersion": "1.24",
|
|
5560
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#millisecond2",
|
|
5561
|
+
"description": "Returns the millisecond of the given time.",
|
|
5562
|
+
"examples": "\n##### 範例\n\nGets the millisecond of the time\n\n```arcade\nHour(Time(2, 59, 23, 450))\n// returns 450\n```\n\n",
|
|
5563
|
+
"completion": {
|
|
5564
|
+
"label": "Millisecond",
|
|
5565
|
+
"detail": "Millisecond(timeValue) -> Number",
|
|
5566
|
+
"insertText": "Millisecond(${1:timeValue_})$0",
|
|
5567
|
+
"insertTextMode": 2,
|
|
5568
|
+
"insertTextFormat": 2,
|
|
5569
|
+
"kind": 3,
|
|
5570
|
+
"documentation": {
|
|
5571
|
+
"kind": "markdown",
|
|
5572
|
+
"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)"
|
|
5573
|
+
}
|
|
5574
|
+
},
|
|
5575
|
+
"parametersInfo": {
|
|
5576
|
+
"min": 1,
|
|
5577
|
+
"max": 1
|
|
5578
|
+
}
|
|
5579
|
+
}
|
|
5580
|
+
],
|
|
5581
|
+
[
|
|
5582
|
+
{
|
|
5583
|
+
"type": "function",
|
|
5584
|
+
"name": "minute",
|
|
5585
|
+
"bundle": "core",
|
|
5586
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#minute1",
|
|
5587
|
+
"description": "Returns the minute of the time in the given date.",
|
|
5588
|
+
"examples": "\n##### 範例\n\nGets the minute of the current time\n\n```arcade\nMinute(Now())\n```\n\n",
|
|
5589
|
+
"completion": {
|
|
5590
|
+
"label": "Minute",
|
|
5591
|
+
"detail": "Minute(dateValue) -> Number",
|
|
5592
|
+
"insertText": "Minute(${1:dateValue_})$0",
|
|
5593
|
+
"insertTextMode": 2,
|
|
5594
|
+
"insertTextFormat": 2,
|
|
5595
|
+
"kind": 3,
|
|
5596
|
+
"documentation": {
|
|
5597
|
+
"kind": "markdown",
|
|
5598
|
+
"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)"
|
|
5599
|
+
}
|
|
5600
|
+
},
|
|
5601
|
+
"parametersInfo": {
|
|
5602
|
+
"min": 1,
|
|
5603
|
+
"max": 1
|
|
5604
|
+
}
|
|
5605
|
+
},
|
|
5606
|
+
{
|
|
5607
|
+
"type": "function",
|
|
5608
|
+
"name": "minute",
|
|
5609
|
+
"bundle": "core",
|
|
5610
|
+
"sinceVersion": "1.24",
|
|
5611
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#minute2",
|
|
5612
|
+
"description": "Returns the minute of the given time.",
|
|
5613
|
+
"examples": "\n##### 範例\n\nGets the minute of the time\n\n```arcade\nHour(Time(2, 59, 23))\n// returns 59\n```\n\n",
|
|
5614
|
+
"completion": {
|
|
5615
|
+
"label": "Minute",
|
|
5616
|
+
"detail": "Minute(timeValue) -> Number",
|
|
5617
|
+
"insertText": "Minute(${1:timeValue_})$0",
|
|
5618
|
+
"insertTextMode": 2,
|
|
5619
|
+
"insertTextFormat": 2,
|
|
5620
|
+
"kind": 3,
|
|
5621
|
+
"documentation": {
|
|
5622
|
+
"kind": "markdown",
|
|
5623
|
+
"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)"
|
|
5624
|
+
}
|
|
5625
|
+
},
|
|
5626
|
+
"parametersInfo": {
|
|
5627
|
+
"min": 1,
|
|
5628
|
+
"max": 1
|
|
5629
|
+
}
|
|
5630
|
+
}
|
|
5631
|
+
],
|
|
5195
5632
|
{
|
|
5196
5633
|
"type": "function",
|
|
5197
5634
|
"name": "month",
|
|
5198
5635
|
"bundle": "core",
|
|
5199
5636
|
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#month",
|
|
5200
5637
|
"description": "傳回指定日期的月份。 值範圍從 0-11,其中一月是 `0`,十二月是 `11`。",
|
|
5201
|
-
"examples": "\n##### 範例\n\n取得指定日期的月份。 傳回 11,代表 11 月。\n\n```arcade\nMonth(Date(1980, 11, 31))\n```\n\n",
|
|
5638
|
+
"examples": "\n##### 範例\n\n取得指定日期的月份。 傳回 11,代表 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",
|
|
5202
5639
|
"completion": {
|
|
5203
5640
|
"label": "Month",
|
|
5204
5641
|
"detail": "Month(dateValue) -> Number",
|
|
@@ -5208,7 +5645,7 @@
|
|
|
5208
5645
|
"kind": 3,
|
|
5209
5646
|
"documentation": {
|
|
5210
5647
|
"kind": "markdown",
|
|
5211
|
-
"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)"
|
|
5648
|
+
"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)"
|
|
5212
5649
|
}
|
|
5213
5650
|
},
|
|
5214
5651
|
"parametersInfo": {
|
|
@@ -5240,23 +5677,227 @@
|
|
|
5240
5677
|
"max": 0
|
|
5241
5678
|
}
|
|
5242
5679
|
},
|
|
5680
|
+
[
|
|
5681
|
+
{
|
|
5682
|
+
"type": "function",
|
|
5683
|
+
"name": "second",
|
|
5684
|
+
"bundle": "core",
|
|
5685
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#second1",
|
|
5686
|
+
"description": "Returns the second of the time in the date.",
|
|
5687
|
+
"examples": "\n##### 範例\n\nGets the second of the current time\n\n```arcade\nSecond(Now())\n```\n\n",
|
|
5688
|
+
"completion": {
|
|
5689
|
+
"label": "Second",
|
|
5690
|
+
"detail": "Second(dateValue) -> Number",
|
|
5691
|
+
"insertText": "Second(${1:dateValue_})$0",
|
|
5692
|
+
"insertTextMode": 2,
|
|
5693
|
+
"insertTextFormat": 2,
|
|
5694
|
+
"kind": 3,
|
|
5695
|
+
"documentation": {
|
|
5696
|
+
"kind": "markdown",
|
|
5697
|
+
"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)"
|
|
5698
|
+
}
|
|
5699
|
+
},
|
|
5700
|
+
"parametersInfo": {
|
|
5701
|
+
"min": 1,
|
|
5702
|
+
"max": 1
|
|
5703
|
+
}
|
|
5704
|
+
},
|
|
5705
|
+
{
|
|
5706
|
+
"type": "function",
|
|
5707
|
+
"name": "second",
|
|
5708
|
+
"bundle": "core",
|
|
5709
|
+
"sinceVersion": "1.24",
|
|
5710
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#second2",
|
|
5711
|
+
"description": "Returns the second of the given time.",
|
|
5712
|
+
"examples": "\n##### 範例\n\nGets the second of the time\n\n```arcade\nHour(Time(2, 59, 23))\n// returns 23\n```\n\n",
|
|
5713
|
+
"completion": {
|
|
5714
|
+
"label": "Second",
|
|
5715
|
+
"detail": "Second(timeValue) -> Number",
|
|
5716
|
+
"insertText": "Second(${1:timeValue_})$0",
|
|
5717
|
+
"insertTextMode": 2,
|
|
5718
|
+
"insertTextFormat": 2,
|
|
5719
|
+
"kind": 3,
|
|
5720
|
+
"documentation": {
|
|
5721
|
+
"kind": "markdown",
|
|
5722
|
+
"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)"
|
|
5723
|
+
}
|
|
5724
|
+
},
|
|
5725
|
+
"parametersInfo": {
|
|
5726
|
+
"min": 1,
|
|
5727
|
+
"max": 1
|
|
5728
|
+
}
|
|
5729
|
+
}
|
|
5730
|
+
],
|
|
5731
|
+
[
|
|
5732
|
+
{
|
|
5733
|
+
"type": "function",
|
|
5734
|
+
"name": "time",
|
|
5735
|
+
"bundle": "core",
|
|
5736
|
+
"sinceVersion": "1.24",
|
|
5737
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#time1",
|
|
5738
|
+
"description": "Creates a Time value representing the current time in the time zone of the profile's execution context.",
|
|
5739
|
+
"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",
|
|
5740
|
+
"completion": {
|
|
5741
|
+
"label": "Time",
|
|
5742
|
+
"detail": "Time() -> Time",
|
|
5743
|
+
"insertText": "Time($0)",
|
|
5744
|
+
"insertTextMode": 2,
|
|
5745
|
+
"insertTextFormat": 2,
|
|
5746
|
+
"kind": 3,
|
|
5747
|
+
"documentation": {
|
|
5748
|
+
"kind": "markdown",
|
|
5749
|
+
"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"
|
|
5750
|
+
}
|
|
5751
|
+
},
|
|
5752
|
+
"parametersInfo": {
|
|
5753
|
+
"min": 0,
|
|
5754
|
+
"max": 0
|
|
5755
|
+
}
|
|
5756
|
+
},
|
|
5757
|
+
{
|
|
5758
|
+
"type": "function",
|
|
5759
|
+
"name": "time",
|
|
5760
|
+
"bundle": "core",
|
|
5761
|
+
"sinceVersion": "1.24",
|
|
5762
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#time2",
|
|
5763
|
+
"description": "Creates a Time value from a given date.",
|
|
5764
|
+
"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",
|
|
5765
|
+
"completion": {
|
|
5766
|
+
"label": "Time",
|
|
5767
|
+
"detail": "Time(dateValue) -> Time",
|
|
5768
|
+
"insertText": "Time(${1:dateValue_})$0",
|
|
5769
|
+
"insertTextMode": 2,
|
|
5770
|
+
"insertTextFormat": 2,
|
|
5771
|
+
"kind": 3,
|
|
5772
|
+
"documentation": {
|
|
5773
|
+
"kind": "markdown",
|
|
5774
|
+
"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"
|
|
5775
|
+
}
|
|
5776
|
+
},
|
|
5777
|
+
"parametersInfo": {
|
|
5778
|
+
"min": 1,
|
|
5779
|
+
"max": 1
|
|
5780
|
+
}
|
|
5781
|
+
},
|
|
5782
|
+
{
|
|
5783
|
+
"type": "function",
|
|
5784
|
+
"name": "time",
|
|
5785
|
+
"bundle": "core",
|
|
5786
|
+
"sinceVersion": "1.24",
|
|
5787
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#time3",
|
|
5788
|
+
"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`.",
|
|
5789
|
+
"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",
|
|
5790
|
+
"completion": {
|
|
5791
|
+
"label": "Time",
|
|
5792
|
+
"detail": "Time(numValue) -> Time",
|
|
5793
|
+
"insertText": "Time(${1:numValue_})$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\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"
|
|
5800
|
+
}
|
|
5801
|
+
},
|
|
5802
|
+
"parametersInfo": {
|
|
5803
|
+
"min": 1,
|
|
5804
|
+
"max": 1
|
|
5805
|
+
}
|
|
5806
|
+
},
|
|
5807
|
+
{
|
|
5808
|
+
"type": "function",
|
|
5809
|
+
"name": "time",
|
|
5810
|
+
"bundle": "core",
|
|
5811
|
+
"sinceVersion": "1.24",
|
|
5812
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#time4",
|
|
5813
|
+
"description": "Creates a Time value from inputs representing hours, minutes, seconds, and milliseconds.",
|
|
5814
|
+
"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",
|
|
5815
|
+
"completion": {
|
|
5816
|
+
"label": "Time",
|
|
5817
|
+
"detail": "Time(hours, minutes, seconds?, milliseconds?) -> Time",
|
|
5818
|
+
"insertText": "Time(${1:hours_}, ${2:minutes_})$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\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"
|
|
5825
|
+
}
|
|
5826
|
+
},
|
|
5827
|
+
"parametersInfo": {
|
|
5828
|
+
"min": 2,
|
|
5829
|
+
"max": 4
|
|
5830
|
+
}
|
|
5831
|
+
},
|
|
5832
|
+
{
|
|
5833
|
+
"type": "function",
|
|
5834
|
+
"name": "time",
|
|
5835
|
+
"bundle": "core",
|
|
5836
|
+
"sinceVersion": "1.24",
|
|
5837
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#time5",
|
|
5838
|
+
"description": "Creates a Time value from a text input representing time, with an optional input indicating the text's format.",
|
|
5839
|
+
"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",
|
|
5840
|
+
"completion": {
|
|
5841
|
+
"label": "Time",
|
|
5842
|
+
"detail": "Time(timeValue, format?) -> Time",
|
|
5843
|
+
"insertText": "Time(${1:timeValue_})$0",
|
|
5844
|
+
"insertTextMode": 2,
|
|
5845
|
+
"insertTextFormat": 2,
|
|
5846
|
+
"kind": 3,
|
|
5847
|
+
"documentation": {
|
|
5848
|
+
"kind": "markdown",
|
|
5849
|
+
"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"
|
|
5850
|
+
}
|
|
5851
|
+
},
|
|
5852
|
+
"parametersInfo": {
|
|
5853
|
+
"min": 1,
|
|
5854
|
+
"max": 2
|
|
5855
|
+
}
|
|
5856
|
+
}
|
|
5857
|
+
],
|
|
5243
5858
|
{
|
|
5244
5859
|
"type": "function",
|
|
5245
|
-
"name": "
|
|
5860
|
+
"name": "timestamp",
|
|
5246
5861
|
"bundle": "core",
|
|
5247
|
-
"
|
|
5248
|
-
"
|
|
5249
|
-
"
|
|
5862
|
+
"sinceVersion": "1.1",
|
|
5863
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#timestamp",
|
|
5864
|
+
"description": "建立日期值,表示 UTC 中的目前日期和時間。",
|
|
5865
|
+
"examples": "\n##### 範例\n\n以 UTC 時間建立日期\n\n```arcade\n// Date that represents Jan 27, 2023, 8:41:20 PM UTC\nTimestamp()\n```\n\n",
|
|
5250
5866
|
"completion": {
|
|
5251
|
-
"label": "
|
|
5252
|
-
"detail": "
|
|
5253
|
-
"insertText": "
|
|
5867
|
+
"label": "Timestamp",
|
|
5868
|
+
"detail": "Timestamp() -> Date",
|
|
5869
|
+
"insertText": "Timestamp($0)",
|
|
5254
5870
|
"insertTextMode": 2,
|
|
5255
5871
|
"insertTextFormat": 2,
|
|
5256
5872
|
"kind": 3,
|
|
5257
5873
|
"documentation": {
|
|
5258
5874
|
"kind": "markdown",
|
|
5259
|
-
"value": "
|
|
5875
|
+
"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)"
|
|
5876
|
+
}
|
|
5877
|
+
},
|
|
5878
|
+
"parametersInfo": {
|
|
5879
|
+
"min": 0,
|
|
5880
|
+
"max": 0
|
|
5881
|
+
}
|
|
5882
|
+
},
|
|
5883
|
+
{
|
|
5884
|
+
"type": "function",
|
|
5885
|
+
"name": "timezone",
|
|
5886
|
+
"bundle": "core",
|
|
5887
|
+
"sinceVersion": "1.24",
|
|
5888
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#timezone",
|
|
5889
|
+
"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",
|
|
5890
|
+
"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",
|
|
5891
|
+
"completion": {
|
|
5892
|
+
"label": "TimeZone",
|
|
5893
|
+
"detail": "TimeZone(dateValue) -> Text",
|
|
5894
|
+
"insertText": "TimeZone(${1:dateValue_})$0",
|
|
5895
|
+
"insertTextMode": 2,
|
|
5896
|
+
"insertTextFormat": 2,
|
|
5897
|
+
"kind": 3,
|
|
5898
|
+
"documentation": {
|
|
5899
|
+
"kind": "markdown",
|
|
5900
|
+
"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)"
|
|
5260
5901
|
}
|
|
5261
5902
|
},
|
|
5262
5903
|
"parametersInfo": {
|
|
@@ -5266,27 +5907,27 @@
|
|
|
5266
5907
|
},
|
|
5267
5908
|
{
|
|
5268
5909
|
"type": "function",
|
|
5269
|
-
"name": "
|
|
5910
|
+
"name": "timezoneoffset",
|
|
5270
5911
|
"bundle": "core",
|
|
5271
|
-
"sinceVersion": "1.
|
|
5272
|
-
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#
|
|
5273
|
-
"description": "
|
|
5274
|
-
"examples": "\n##### 範例\n\
|
|
5912
|
+
"sinceVersion": "1.24",
|
|
5913
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#timezoneoffset",
|
|
5914
|
+
"description": "Returns the time zone offset in minutes from UTC for the given Date.",
|
|
5915
|
+
"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",
|
|
5275
5916
|
"completion": {
|
|
5276
|
-
"label": "
|
|
5277
|
-
"detail": "
|
|
5278
|
-
"insertText": "
|
|
5917
|
+
"label": "TimeZoneOffset",
|
|
5918
|
+
"detail": "TimeZoneOffset(dateValue) -> Number",
|
|
5919
|
+
"insertText": "TimeZoneOffset(${1:dateValue_})$0",
|
|
5279
5920
|
"insertTextMode": 2,
|
|
5280
5921
|
"insertTextFormat": 2,
|
|
5281
5922
|
"kind": 3,
|
|
5282
5923
|
"documentation": {
|
|
5283
5924
|
"kind": "markdown",
|
|
5284
|
-
"value": "**[自版本 1.
|
|
5925
|
+
"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)"
|
|
5285
5926
|
}
|
|
5286
5927
|
},
|
|
5287
5928
|
"parametersInfo": {
|
|
5288
|
-
"min":
|
|
5289
|
-
"max":
|
|
5929
|
+
"min": 1,
|
|
5930
|
+
"max": 1
|
|
5290
5931
|
}
|
|
5291
5932
|
},
|
|
5292
5933
|
{
|
|
@@ -5370,7 +6011,7 @@
|
|
|
5370
6011
|
"sinceVersion": "1.14",
|
|
5371
6012
|
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#week",
|
|
5372
6013
|
"description": "傳回給定日期年份中的週數。 值範圍為 0-53,其中一年的第一週為 `0`,一年的最後一週為 `51`、 `52` 或 `53` (根據年份而定)。 第一週和最後一週的長度可能不是完整 7 天。",
|
|
5373
|
-
"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",
|
|
6014
|
+
"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",
|
|
5374
6015
|
"completion": {
|
|
5375
6016
|
"label": "Week",
|
|
5376
6017
|
"detail": "Week(dateValue, startDay?) -> Number",
|
|
@@ -5380,7 +6021,7 @@
|
|
|
5380
6021
|
"kind": 3,
|
|
5381
6022
|
"documentation": {
|
|
5382
6023
|
"kind": "markdown",
|
|
5383
|
-
"value": "**[自版本 1.14](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\n傳回給定日期年份中的週數。 值範圍為 0-53,其中一年的第一週為 `0`,一年的最後一週為 `51`、 `52` 或 `53` (根據年份而定)。 第一週和最後一週的長度可能不是完整 7 天。\n\n**參數**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - 要取得週次的日期值。\n- **startDay** (_Optional_): [Number](https://developers.arcgis.com/arcade/guide/types/#number) - 代表一週開始日期的數字。 星期日 = 0;星期一 = 1;星期二 = 2; 星期三 = 3;星期四 = 4;星期五 = 5;星期六 = 6。 預設值為 `0` (星期日)。\n\n**返回值**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
6024
|
+
"value": "**[自版本 1.14](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\n傳回給定日期年份中的週數。 值範圍為 0-53,其中一年的第一週為 `0`,一年的最後一週為 `51`、 `52` 或 `53` (根據年份而定)。 第一週和最後一週的長度可能不是完整 7 天。\n\n**參數**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) \\| DateOnly - 要取得週次的日期值。\n- **startDay** (_Optional_): [Number](https://developers.arcgis.com/arcade/guide/types/#number) - 代表一週開始日期的數字。 星期日 = 0;星期一 = 1;星期二 = 2; 星期三 = 3;星期四 = 4;星期五 = 5;星期六 = 6。 預設值為 `0` (星期日)。\n\n**返回值**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
5384
6025
|
}
|
|
5385
6026
|
},
|
|
5386
6027
|
"parametersInfo": {
|
|
@@ -5394,7 +6035,7 @@
|
|
|
5394
6035
|
"bundle": "core",
|
|
5395
6036
|
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#weekday",
|
|
5396
6037
|
"description": "傳回指定日期的星期幾。 值範圍為 0-6,其中星期日為 `0`,星期六為 `6`。",
|
|
5397
|
-
"examples": "\n##### 範例\n\n傳回指定日期的星期幾。 傳回 `3` 代表星期三。\n\n```arcade\nWeekday(Date(1980, 11, 31))\n```\n\n",
|
|
6038
|
+
"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",
|
|
5398
6039
|
"completion": {
|
|
5399
6040
|
"label": "Weekday",
|
|
5400
6041
|
"detail": "Weekday(dateValue) -> Number",
|
|
@@ -5404,7 +6045,7 @@
|
|
|
5404
6045
|
"kind": 3,
|
|
5405
6046
|
"documentation": {
|
|
5406
6047
|
"kind": "markdown",
|
|
5407
|
-
"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)"
|
|
6048
|
+
"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)"
|
|
5408
6049
|
}
|
|
5409
6050
|
},
|
|
5410
6051
|
"parametersInfo": {
|
|
@@ -5418,7 +6059,7 @@
|
|
|
5418
6059
|
"bundle": "core",
|
|
5419
6060
|
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#year",
|
|
5420
6061
|
"description": "傳回指定日期的年。",
|
|
5421
|
-
"examples": "\n##### 範例\n\n取得目前日期的年\n\n```arcade\nYear(Now())\n```\n\n",
|
|
6062
|
+
"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",
|
|
5422
6063
|
"completion": {
|
|
5423
6064
|
"label": "Year",
|
|
5424
6065
|
"detail": "Year(dateValue) -> Number",
|
|
@@ -5428,7 +6069,7 @@
|
|
|
5428
6069
|
"kind": 3,
|
|
5429
6070
|
"documentation": {
|
|
5430
6071
|
"kind": "markdown",
|
|
5431
|
-
"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)"
|
|
6072
|
+
"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)"
|
|
5432
6073
|
}
|
|
5433
6074
|
},
|
|
5434
6075
|
"parametersInfo": {
|
|
@@ -5920,6 +6561,31 @@
|
|
|
5920
6561
|
"max": 2
|
|
5921
6562
|
}
|
|
5922
6563
|
},
|
|
6564
|
+
{
|
|
6565
|
+
"type": "function",
|
|
6566
|
+
"name": "equals",
|
|
6567
|
+
"bundle": "core",
|
|
6568
|
+
"sinceVersion": "1.24",
|
|
6569
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/logical_functions/#equals",
|
|
6570
|
+
"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.",
|
|
6571
|
+
"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",
|
|
6572
|
+
"completion": {
|
|
6573
|
+
"label": "Equals",
|
|
6574
|
+
"detail": "Equals(value1, value2) -> Boolean",
|
|
6575
|
+
"insertText": "Equals(${1:value1_}, ${2:value2_})$0",
|
|
6576
|
+
"insertTextMode": 2,
|
|
6577
|
+
"insertTextFormat": 2,
|
|
6578
|
+
"kind": 3,
|
|
6579
|
+
"documentation": {
|
|
6580
|
+
"kind": "markdown",
|
|
6581
|
+
"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)"
|
|
6582
|
+
}
|
|
6583
|
+
},
|
|
6584
|
+
"parametersInfo": {
|
|
6585
|
+
"min": 2,
|
|
6586
|
+
"max": 2
|
|
6587
|
+
}
|
|
6588
|
+
},
|
|
5923
6589
|
{
|
|
5924
6590
|
"type": "function",
|
|
5925
6591
|
"name": "iif",
|