@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
|
@@ -1693,6 +1693,31 @@
|
|
|
1693
1693
|
"max": 4
|
|
1694
1694
|
}
|
|
1695
1695
|
},
|
|
1696
|
+
{
|
|
1697
|
+
"type": "function",
|
|
1698
|
+
"name": "featuresetbyrelationshipclass",
|
|
1699
|
+
"bundle": "data-access",
|
|
1700
|
+
"sinceVersion": "1.24",
|
|
1701
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/featureset_functions/#featuresetbyrelationshipclass",
|
|
1702
|
+
"description": "Returns the related records for a given feature as a FeatureSet based on the class name of the relationship.",
|
|
1703
|
+
"examples": "\n##### Ví dụ\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",
|
|
1704
|
+
"completion": {
|
|
1705
|
+
"label": "FeatureSetByRelationshipClass",
|
|
1706
|
+
"detail": "FeatureSetByRelationshipClass(inputFeature, relationshipClass, fieldNames?, includeGeometry?) -> FeatureSet",
|
|
1707
|
+
"insertText": "FeatureSetByRelationshipClass(${1:inputFeature_}, ${2:relationshipClass_})$0",
|
|
1708
|
+
"insertTextMode": 2,
|
|
1709
|
+
"insertTextFormat": 2,
|
|
1710
|
+
"kind": 3,
|
|
1711
|
+
"documentation": {
|
|
1712
|
+
"kind": "markdown",
|
|
1713
|
+
"value": "**[Kể từ phiên bản 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**Thông số**\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**Giá trị trả về**: [FeatureSet](https://developers.arcgis.com/arcade/guide/types/#featureset)"
|
|
1714
|
+
}
|
|
1715
|
+
},
|
|
1716
|
+
"parametersInfo": {
|
|
1717
|
+
"min": 2,
|
|
1718
|
+
"max": 4
|
|
1719
|
+
}
|
|
1720
|
+
},
|
|
1696
1721
|
{
|
|
1697
1722
|
"type": "function",
|
|
1698
1723
|
"name": "featuresetbyrelationshipname",
|
|
@@ -4031,6 +4056,31 @@
|
|
|
4031
4056
|
"max": 2
|
|
4032
4057
|
}
|
|
4033
4058
|
},
|
|
4059
|
+
{
|
|
4060
|
+
"type": "function",
|
|
4061
|
+
"name": "equals",
|
|
4062
|
+
"bundle": "core",
|
|
4063
|
+
"sinceVersion": "1.24",
|
|
4064
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/logical_functions/#equals",
|
|
4065
|
+
"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.",
|
|
4066
|
+
"examples": "\n##### Ví dụ\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",
|
|
4067
|
+
"completion": {
|
|
4068
|
+
"label": "Equals",
|
|
4069
|
+
"detail": "Equals(value1, value2) -> Boolean",
|
|
4070
|
+
"insertText": "Equals(${1:value1_}, ${2:value2_})$0",
|
|
4071
|
+
"insertTextMode": 2,
|
|
4072
|
+
"insertTextFormat": 2,
|
|
4073
|
+
"kind": 3,
|
|
4074
|
+
"documentation": {
|
|
4075
|
+
"kind": "markdown",
|
|
4076
|
+
"value": "**[Kể từ phiên bản 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**Thông số**\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**Giá trị trả về**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean)"
|
|
4077
|
+
}
|
|
4078
|
+
},
|
|
4079
|
+
"parametersInfo": {
|
|
4080
|
+
"min": 2,
|
|
4081
|
+
"max": 2
|
|
4082
|
+
}
|
|
4083
|
+
},
|
|
4034
4084
|
{
|
|
4035
4085
|
"type": "function",
|
|
4036
4086
|
"name": "iif",
|
|
@@ -4158,29 +4208,54 @@
|
|
|
4158
4208
|
"id": "date_functions",
|
|
4159
4209
|
"title": "Hàm ngày tháng",
|
|
4160
4210
|
"items": [
|
|
4211
|
+
{
|
|
4212
|
+
"type": "function",
|
|
4213
|
+
"name": "changetimezone",
|
|
4214
|
+
"bundle": "core",
|
|
4215
|
+
"sinceVersion": "1.24",
|
|
4216
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#changetimezone",
|
|
4217
|
+
"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`.",
|
|
4218
|
+
"examples": "\n##### Ví dụ\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",
|
|
4219
|
+
"completion": {
|
|
4220
|
+
"label": "ChangeTimeZone",
|
|
4221
|
+
"detail": "ChangeTimeZone(dateValue, newTimeZone) -> Date",
|
|
4222
|
+
"insertText": "ChangeTimeZone(${1:dateValue_}, ${2:newTimeZone_})$0",
|
|
4223
|
+
"insertTextMode": 2,
|
|
4224
|
+
"insertTextFormat": 2,
|
|
4225
|
+
"kind": 3,
|
|
4226
|
+
"documentation": {
|
|
4227
|
+
"kind": "markdown",
|
|
4228
|
+
"value": "**[Kể từ phiên bản 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**Thông số**\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**Giá trị trả về**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)"
|
|
4229
|
+
}
|
|
4230
|
+
},
|
|
4231
|
+
"parametersInfo": {
|
|
4232
|
+
"min": 2,
|
|
4233
|
+
"max": 2
|
|
4234
|
+
}
|
|
4235
|
+
},
|
|
4161
4236
|
[
|
|
4162
4237
|
{
|
|
4163
4238
|
"type": "function",
|
|
4164
4239
|
"name": "date",
|
|
4165
4240
|
"bundle": "core",
|
|
4166
4241
|
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#date1",
|
|
4167
|
-
"description": "
|
|
4168
|
-
"examples": "\n##### Ví dụ\n\
|
|
4242
|
+
"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.",
|
|
4243
|
+
"examples": "\n##### Ví dụ\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",
|
|
4169
4244
|
"completion": {
|
|
4170
4245
|
"label": "Date",
|
|
4171
|
-
"detail": "Date(year, month, day, hour?, minute?, second?, millisecond?) -> Date",
|
|
4246
|
+
"detail": "Date(year, month, day, hour?, minute?, second?, millisecond?, timeZone?) -> Date",
|
|
4172
4247
|
"insertText": "Date(${1:year_}, ${2:month_}, ${3:day_})$0",
|
|
4173
4248
|
"insertTextMode": 2,
|
|
4174
4249
|
"insertTextFormat": 2,
|
|
4175
4250
|
"kind": 3,
|
|
4176
4251
|
"documentation": {
|
|
4177
4252
|
"kind": "markdown",
|
|
4178
|
-
"value": "
|
|
4253
|
+
"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**Thông số**\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**Giá trị trả về**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)"
|
|
4179
4254
|
}
|
|
4180
4255
|
},
|
|
4181
4256
|
"parametersInfo": {
|
|
4182
4257
|
"min": 3,
|
|
4183
|
-
"max":
|
|
4258
|
+
"max": 8
|
|
4184
4259
|
}
|
|
4185
4260
|
},
|
|
4186
4261
|
{
|
|
@@ -4188,8 +4263,8 @@
|
|
|
4188
4263
|
"name": "date",
|
|
4189
4264
|
"bundle": "core",
|
|
4190
4265
|
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#date2",
|
|
4191
|
-
"description": "
|
|
4192
|
-
"examples": "\n##### Ví dụ\n\
|
|
4266
|
+
"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.",
|
|
4267
|
+
"examples": "\n##### Ví dụ\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",
|
|
4193
4268
|
"completion": {
|
|
4194
4269
|
"label": "Date",
|
|
4195
4270
|
"detail": "Date(epoch?) -> Date",
|
|
@@ -4199,7 +4274,7 @@
|
|
|
4199
4274
|
"kind": 3,
|
|
4200
4275
|
"documentation": {
|
|
4201
4276
|
"kind": "markdown",
|
|
4202
|
-
"value": "
|
|
4277
|
+
"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**Tham số**\n\n- **epoch** (_Optional_): [Number](https://developers.arcgis.com/arcade/guide/types/#number) - The number of milliseconds since January 1, 1970 UTC.\n\n**Giá trị trả về**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)"
|
|
4203
4278
|
}
|
|
4204
4279
|
},
|
|
4205
4280
|
"parametersInfo": {
|
|
@@ -4212,8 +4287,8 @@
|
|
|
4212
4287
|
"name": "date",
|
|
4213
4288
|
"bundle": "core",
|
|
4214
4289
|
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#date3",
|
|
4215
|
-
"description": "
|
|
4216
|
-
"examples": "\n##### Ví dụ\n\
|
|
4290
|
+
"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.",
|
|
4291
|
+
"examples": "\n##### Ví dụ\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",
|
|
4217
4292
|
"completion": {
|
|
4218
4293
|
"label": "Date",
|
|
4219
4294
|
"detail": "Date(timestamp?) -> Date",
|
|
@@ -4223,154 +4298,386 @@
|
|
|
4223
4298
|
"kind": 3,
|
|
4224
4299
|
"documentation": {
|
|
4225
4300
|
"kind": "markdown",
|
|
4226
|
-
"value": "
|
|
4301
|
+
"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**Tham số**\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**Giá trị trả về**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)"
|
|
4227
4302
|
}
|
|
4228
4303
|
},
|
|
4229
4304
|
"parametersInfo": {
|
|
4230
4305
|
"min": 0,
|
|
4231
4306
|
"max": 1
|
|
4232
4307
|
}
|
|
4233
|
-
}
|
|
4234
|
-
|
|
4235
|
-
|
|
4236
|
-
|
|
4237
|
-
|
|
4238
|
-
|
|
4239
|
-
|
|
4240
|
-
|
|
4241
|
-
|
|
4242
|
-
|
|
4243
|
-
|
|
4244
|
-
|
|
4245
|
-
|
|
4246
|
-
|
|
4247
|
-
|
|
4248
|
-
|
|
4249
|
-
|
|
4250
|
-
|
|
4251
|
-
|
|
4308
|
+
},
|
|
4309
|
+
{
|
|
4310
|
+
"type": "function",
|
|
4311
|
+
"name": "date",
|
|
4312
|
+
"bundle": "core",
|
|
4313
|
+
"sinceVersion": "1.24",
|
|
4314
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#date4",
|
|
4315
|
+
"description": "Creates a Date from a DateOnly value, with an optional Time and time zone value.",
|
|
4316
|
+
"examples": "\n##### Ví dụ\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",
|
|
4317
|
+
"completion": {
|
|
4318
|
+
"label": "Date",
|
|
4319
|
+
"detail": "Date(dateOnlyValue, timeValue?, timeZone?) -> Date",
|
|
4320
|
+
"insertText": "Date(${1:dateOnlyValue_})$0",
|
|
4321
|
+
"insertTextMode": 2,
|
|
4322
|
+
"insertTextFormat": 2,
|
|
4323
|
+
"kind": 3,
|
|
4324
|
+
"documentation": {
|
|
4325
|
+
"kind": "markdown",
|
|
4326
|
+
"value": "**[Kể từ phiên bản 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**Thông số**\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**Giá trị trả về**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)"
|
|
4327
|
+
}
|
|
4328
|
+
},
|
|
4329
|
+
"parametersInfo": {
|
|
4330
|
+
"min": 1,
|
|
4331
|
+
"max": 3
|
|
4252
4332
|
}
|
|
4253
4333
|
},
|
|
4254
|
-
|
|
4255
|
-
"
|
|
4256
|
-
"
|
|
4334
|
+
{
|
|
4335
|
+
"type": "function",
|
|
4336
|
+
"name": "date",
|
|
4337
|
+
"bundle": "core",
|
|
4338
|
+
"sinceVersion": "1.24",
|
|
4339
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#date5",
|
|
4340
|
+
"description": "Creates a copy of the given Date.",
|
|
4341
|
+
"examples": "\n##### Ví dụ\n\nCreates a copy of the current Date value\n\n```arcade\nvar copiedDate = Date(Now())\n```\n\n",
|
|
4342
|
+
"completion": {
|
|
4343
|
+
"label": "Date",
|
|
4344
|
+
"detail": "Date(dateValue) -> Date",
|
|
4345
|
+
"insertText": "Date(${1:dateValue_})$0",
|
|
4346
|
+
"insertTextMode": 2,
|
|
4347
|
+
"insertTextFormat": 2,
|
|
4348
|
+
"kind": 3,
|
|
4349
|
+
"documentation": {
|
|
4350
|
+
"kind": "markdown",
|
|
4351
|
+
"value": "**[Kể từ phiên bản 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nCreates a copy of the given Date.\n\n**Tham số**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - The Date to copy.\n\n**Giá trị trả về**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)"
|
|
4352
|
+
}
|
|
4353
|
+
},
|
|
4354
|
+
"parametersInfo": {
|
|
4355
|
+
"min": 1,
|
|
4356
|
+
"max": 1
|
|
4357
|
+
}
|
|
4257
4358
|
}
|
|
4258
|
-
|
|
4259
|
-
|
|
4260
|
-
|
|
4261
|
-
|
|
4262
|
-
|
|
4263
|
-
|
|
4264
|
-
|
|
4265
|
-
|
|
4266
|
-
|
|
4267
|
-
"
|
|
4268
|
-
|
|
4269
|
-
|
|
4270
|
-
|
|
4271
|
-
|
|
4272
|
-
|
|
4273
|
-
|
|
4274
|
-
"
|
|
4275
|
-
|
|
4359
|
+
],
|
|
4360
|
+
[
|
|
4361
|
+
{
|
|
4362
|
+
"type": "function",
|
|
4363
|
+
"name": "dateadd",
|
|
4364
|
+
"bundle": "core",
|
|
4365
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#dateadd1",
|
|
4366
|
+
"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.",
|
|
4367
|
+
"examples": "\n##### Ví dụ\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",
|
|
4368
|
+
"completion": {
|
|
4369
|
+
"label": "DateAdd",
|
|
4370
|
+
"detail": "DateAdd(dateValue, addValue, units?) -> Date",
|
|
4371
|
+
"insertText": "DateAdd(${1:dateValue_}, ${2:addValue_})$0",
|
|
4372
|
+
"insertTextMode": 2,
|
|
4373
|
+
"insertTextFormat": 2,
|
|
4374
|
+
"kind": 3,
|
|
4375
|
+
"documentation": {
|
|
4376
|
+
"kind": "markdown",
|
|
4377
|
+
"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**Thông số**\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**Giá trị trả về**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)"
|
|
4378
|
+
}
|
|
4379
|
+
},
|
|
4380
|
+
"parametersInfo": {
|
|
4381
|
+
"min": 2,
|
|
4382
|
+
"max": 3
|
|
4276
4383
|
}
|
|
4277
4384
|
},
|
|
4278
|
-
|
|
4279
|
-
"
|
|
4280
|
-
"
|
|
4281
|
-
|
|
4282
|
-
|
|
4283
|
-
|
|
4284
|
-
|
|
4285
|
-
|
|
4286
|
-
|
|
4287
|
-
|
|
4288
|
-
|
|
4289
|
-
|
|
4290
|
-
|
|
4291
|
-
|
|
4292
|
-
|
|
4293
|
-
|
|
4294
|
-
|
|
4295
|
-
|
|
4296
|
-
|
|
4297
|
-
|
|
4298
|
-
|
|
4299
|
-
"
|
|
4385
|
+
{
|
|
4386
|
+
"type": "function",
|
|
4387
|
+
"name": "dateadd",
|
|
4388
|
+
"bundle": "core",
|
|
4389
|
+
"sinceVersion": "1.24",
|
|
4390
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#dateadd2",
|
|
4391
|
+
"description": "Adds a specified amount of time in the given units to a DateOnly value and returns a new DateOnly value.",
|
|
4392
|
+
"examples": "\n##### Ví dụ\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",
|
|
4393
|
+
"completion": {
|
|
4394
|
+
"label": "DateAdd",
|
|
4395
|
+
"detail": "DateAdd(dateOnlyValue, addValue, units?) -> DateOnly",
|
|
4396
|
+
"insertText": "DateAdd(${1:dateOnlyValue_}, ${2:addValue_})$0",
|
|
4397
|
+
"insertTextMode": 2,
|
|
4398
|
+
"insertTextFormat": 2,
|
|
4399
|
+
"kind": 3,
|
|
4400
|
+
"documentation": {
|
|
4401
|
+
"kind": "markdown",
|
|
4402
|
+
"value": "**[Kể từ phiên bản 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**Thông số**\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**Giá trị trả về**: DateOnly"
|
|
4403
|
+
}
|
|
4404
|
+
},
|
|
4405
|
+
"parametersInfo": {
|
|
4406
|
+
"min": 2,
|
|
4407
|
+
"max": 3
|
|
4300
4408
|
}
|
|
4301
4409
|
},
|
|
4302
|
-
|
|
4303
|
-
"
|
|
4304
|
-
"
|
|
4410
|
+
{
|
|
4411
|
+
"type": "function",
|
|
4412
|
+
"name": "dateadd",
|
|
4413
|
+
"bundle": "core",
|
|
4414
|
+
"sinceVersion": "1.24",
|
|
4415
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#dateadd3",
|
|
4416
|
+
"description": "Adds a specified amount of time in the given units to a Time value and returns a new Time value.",
|
|
4417
|
+
"examples": "\n##### Ví dụ\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",
|
|
4418
|
+
"completion": {
|
|
4419
|
+
"label": "DateAdd",
|
|
4420
|
+
"detail": "DateAdd(timeValue, addValue, units?) -> Time",
|
|
4421
|
+
"insertText": "DateAdd(${1:timeValue_}, ${2:addValue_})$0",
|
|
4422
|
+
"insertTextMode": 2,
|
|
4423
|
+
"insertTextFormat": 2,
|
|
4424
|
+
"kind": 3,
|
|
4425
|
+
"documentation": {
|
|
4426
|
+
"kind": "markdown",
|
|
4427
|
+
"value": "**[Kể từ phiên bản 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**Thông số**\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**Giá trị trả về**: Time"
|
|
4428
|
+
}
|
|
4429
|
+
},
|
|
4430
|
+
"parametersInfo": {
|
|
4431
|
+
"min": 2,
|
|
4432
|
+
"max": 3
|
|
4433
|
+
}
|
|
4305
4434
|
}
|
|
4306
|
-
|
|
4307
|
-
|
|
4308
|
-
|
|
4309
|
-
|
|
4310
|
-
|
|
4311
|
-
|
|
4312
|
-
|
|
4313
|
-
|
|
4314
|
-
|
|
4315
|
-
"
|
|
4316
|
-
|
|
4317
|
-
|
|
4318
|
-
|
|
4319
|
-
|
|
4320
|
-
|
|
4321
|
-
|
|
4322
|
-
"
|
|
4323
|
-
|
|
4435
|
+
],
|
|
4436
|
+
[
|
|
4437
|
+
{
|
|
4438
|
+
"type": "function",
|
|
4439
|
+
"name": "datediff",
|
|
4440
|
+
"bundle": "core",
|
|
4441
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#datediff1",
|
|
4442
|
+
"description": "Subtracts two Dates, and returns the difference in the specified units.",
|
|
4443
|
+
"examples": "\n##### Ví dụ\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",
|
|
4444
|
+
"completion": {
|
|
4445
|
+
"label": "DateDiff",
|
|
4446
|
+
"detail": "DateDiff(date1, date2, units?, timeZone?) -> Number",
|
|
4447
|
+
"insertText": "DateDiff(${1:date1_}, ${2:date2_})$0",
|
|
4448
|
+
"insertTextMode": 2,
|
|
4449
|
+
"insertTextFormat": 2,
|
|
4450
|
+
"kind": 3,
|
|
4451
|
+
"documentation": {
|
|
4452
|
+
"kind": "markdown",
|
|
4453
|
+
"value": "Subtracts two Dates, and returns the difference in the specified units.\n\n**Thông số**\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**Giá trị trả về**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
4454
|
+
}
|
|
4455
|
+
},
|
|
4456
|
+
"parametersInfo": {
|
|
4457
|
+
"min": 2,
|
|
4458
|
+
"max": 4
|
|
4324
4459
|
}
|
|
4325
4460
|
},
|
|
4326
|
-
|
|
4327
|
-
"
|
|
4328
|
-
"
|
|
4329
|
-
|
|
4330
|
-
|
|
4331
|
-
|
|
4332
|
-
|
|
4333
|
-
|
|
4334
|
-
|
|
4335
|
-
|
|
4336
|
-
|
|
4337
|
-
|
|
4338
|
-
|
|
4339
|
-
|
|
4340
|
-
|
|
4341
|
-
|
|
4342
|
-
|
|
4343
|
-
|
|
4344
|
-
|
|
4345
|
-
|
|
4346
|
-
"
|
|
4347
|
-
"
|
|
4348
|
-
"
|
|
4461
|
+
{
|
|
4462
|
+
"type": "function",
|
|
4463
|
+
"name": "datediff",
|
|
4464
|
+
"bundle": "core",
|
|
4465
|
+
"sinceVersion": "1.24",
|
|
4466
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#datediff2",
|
|
4467
|
+
"description": "Subtracts two DateOnly values, and returns the difference in the specified units.",
|
|
4468
|
+
"examples": "\n##### Ví dụ\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",
|
|
4469
|
+
"completion": {
|
|
4470
|
+
"label": "DateDiff",
|
|
4471
|
+
"detail": "DateDiff(dateOnly1, dateOnly2, units?) -> Number",
|
|
4472
|
+
"insertText": "DateDiff(${1:dateOnly1_}, ${2:dateOnly2_})$0",
|
|
4473
|
+
"insertTextMode": 2,
|
|
4474
|
+
"insertTextFormat": 2,
|
|
4475
|
+
"kind": 3,
|
|
4476
|
+
"documentation": {
|
|
4477
|
+
"kind": "markdown",
|
|
4478
|
+
"value": "**[Kể từ phiên bản 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**Thông số**\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**Giá trị trả về**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
4479
|
+
}
|
|
4480
|
+
},
|
|
4481
|
+
"parametersInfo": {
|
|
4482
|
+
"min": 2,
|
|
4483
|
+
"max": 3
|
|
4349
4484
|
}
|
|
4350
4485
|
},
|
|
4351
|
-
|
|
4352
|
-
"
|
|
4353
|
-
"
|
|
4486
|
+
{
|
|
4487
|
+
"type": "function",
|
|
4488
|
+
"name": "datediff",
|
|
4489
|
+
"bundle": "core",
|
|
4490
|
+
"sinceVersion": "1.24",
|
|
4491
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#datediff3",
|
|
4492
|
+
"description": "Subtracts two Time values, and returns the difference in the specified units.",
|
|
4493
|
+
"examples": "\n##### Ví dụ\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",
|
|
4494
|
+
"completion": {
|
|
4495
|
+
"label": "DateDiff",
|
|
4496
|
+
"detail": "DateDiff(time1, time2, units?) -> Number",
|
|
4497
|
+
"insertText": "DateDiff(${1:time1_}, ${2:time2_})$0",
|
|
4498
|
+
"insertTextMode": 2,
|
|
4499
|
+
"insertTextFormat": 2,
|
|
4500
|
+
"kind": 3,
|
|
4501
|
+
"documentation": {
|
|
4502
|
+
"kind": "markdown",
|
|
4503
|
+
"value": "**[Kể từ phiên bản 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**Thông số**\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**Giá trị trả về**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
4504
|
+
}
|
|
4505
|
+
},
|
|
4506
|
+
"parametersInfo": {
|
|
4507
|
+
"min": 2,
|
|
4508
|
+
"max": 3
|
|
4509
|
+
}
|
|
4354
4510
|
}
|
|
4355
|
-
|
|
4356
|
-
|
|
4511
|
+
],
|
|
4512
|
+
[
|
|
4513
|
+
{
|
|
4514
|
+
"type": "function",
|
|
4515
|
+
"name": "dateonly",
|
|
4516
|
+
"bundle": "core",
|
|
4517
|
+
"sinceVersion": "1.24",
|
|
4518
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#dateonly1",
|
|
4519
|
+
"description": "Creates a DateOnly value based on the current date in the time zone of the profile's execution context.",
|
|
4520
|
+
"examples": "\n##### Ví dụ\n\nReturns the current DateOnly (no time)\n\n```arcade\nDateOnly()\n// returns the current date, i.e. 2023-09-12\n```\n\n",
|
|
4521
|
+
"completion": {
|
|
4522
|
+
"label": "DateOnly",
|
|
4523
|
+
"detail": "DateOnly() -> DateOnly",
|
|
4524
|
+
"insertText": "DateOnly($0)",
|
|
4525
|
+
"insertTextMode": 2,
|
|
4526
|
+
"insertTextFormat": 2,
|
|
4527
|
+
"kind": 3,
|
|
4528
|
+
"documentation": {
|
|
4529
|
+
"kind": "markdown",
|
|
4530
|
+
"value": "**[Kể từ phiên bản 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**Giá trị trả về**: DateOnly"
|
|
4531
|
+
}
|
|
4532
|
+
},
|
|
4533
|
+
"parametersInfo": {
|
|
4534
|
+
"min": 0,
|
|
4535
|
+
"max": 0
|
|
4536
|
+
}
|
|
4537
|
+
},
|
|
4538
|
+
{
|
|
4539
|
+
"type": "function",
|
|
4540
|
+
"name": "dateonly",
|
|
4541
|
+
"bundle": "core",
|
|
4542
|
+
"sinceVersion": "1.24",
|
|
4543
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#dateonly2",
|
|
4544
|
+
"description": "Creates a DateOnly value from a given date.",
|
|
4545
|
+
"examples": "\n##### Ví dụ\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",
|
|
4546
|
+
"completion": {
|
|
4547
|
+
"label": "DateOnly",
|
|
4548
|
+
"detail": "DateOnly(dateValue) -> DateOnly",
|
|
4549
|
+
"insertText": "DateOnly(${1:dateValue_})$0",
|
|
4550
|
+
"insertTextMode": 2,
|
|
4551
|
+
"insertTextFormat": 2,
|
|
4552
|
+
"kind": 3,
|
|
4553
|
+
"documentation": {
|
|
4554
|
+
"kind": "markdown",
|
|
4555
|
+
"value": "**[Kể từ phiên bản 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nCreates a DateOnly value from a given date.\n\n**Tham số**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - The date from which to create the DateOnly value.\n\n**Giá trị trả về**: DateOnly"
|
|
4556
|
+
}
|
|
4557
|
+
},
|
|
4558
|
+
"parametersInfo": {
|
|
4559
|
+
"min": 1,
|
|
4560
|
+
"max": 1
|
|
4561
|
+
}
|
|
4562
|
+
},
|
|
4563
|
+
{
|
|
4564
|
+
"type": "function",
|
|
4565
|
+
"name": "dateonly",
|
|
4566
|
+
"bundle": "core",
|
|
4567
|
+
"sinceVersion": "1.24",
|
|
4568
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#dateonly3",
|
|
4569
|
+
"description": "Creates a DateOnly date with the given Unix epoch number.",
|
|
4570
|
+
"examples": "\n##### Ví dụ\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",
|
|
4571
|
+
"completion": {
|
|
4572
|
+
"label": "DateOnly",
|
|
4573
|
+
"detail": "DateOnly(epoch) -> DateOnly",
|
|
4574
|
+
"insertText": "DateOnly(${1:epoch_})$0",
|
|
4575
|
+
"insertTextMode": 2,
|
|
4576
|
+
"insertTextFormat": 2,
|
|
4577
|
+
"kind": 3,
|
|
4578
|
+
"documentation": {
|
|
4579
|
+
"kind": "markdown",
|
|
4580
|
+
"value": "**[Kể từ phiên bản 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nCreates a DateOnly date with the given Unix epoch number.\n\n**Tham số**\n\n- **epoch**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - The number of milliseconds since January 1, 1970 UTC.\n\n**Giá trị trả về**: DateOnly"
|
|
4581
|
+
}
|
|
4582
|
+
},
|
|
4583
|
+
"parametersInfo": {
|
|
4584
|
+
"min": 1,
|
|
4585
|
+
"max": 1
|
|
4586
|
+
}
|
|
4587
|
+
},
|
|
4588
|
+
{
|
|
4589
|
+
"type": "function",
|
|
4590
|
+
"name": "dateonly",
|
|
4591
|
+
"bundle": "core",
|
|
4592
|
+
"sinceVersion": "1.24",
|
|
4593
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#dateonly4",
|
|
4594
|
+
"description": "Creates a DateOnly value from inputs representing the year, month, and day.",
|
|
4595
|
+
"examples": "\n##### Ví dụ\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",
|
|
4596
|
+
"completion": {
|
|
4597
|
+
"label": "DateOnly",
|
|
4598
|
+
"detail": "DateOnly(year, month, day) -> DateOnly",
|
|
4599
|
+
"insertText": "DateOnly(${1:year_}, ${2:month_}, ${3:day_})$0",
|
|
4600
|
+
"insertTextMode": 2,
|
|
4601
|
+
"insertTextFormat": 2,
|
|
4602
|
+
"kind": 3,
|
|
4603
|
+
"documentation": {
|
|
4604
|
+
"kind": "markdown",
|
|
4605
|
+
"value": "**[Kể từ phiên bản 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**Thông số**\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**Giá trị trả về**: DateOnly"
|
|
4606
|
+
}
|
|
4607
|
+
},
|
|
4608
|
+
"parametersInfo": {
|
|
4609
|
+
"min": 3,
|
|
4610
|
+
"max": 3
|
|
4611
|
+
}
|
|
4612
|
+
},
|
|
4613
|
+
{
|
|
4614
|
+
"type": "function",
|
|
4615
|
+
"name": "dateonly",
|
|
4616
|
+
"bundle": "core",
|
|
4617
|
+
"sinceVersion": "1.24",
|
|
4618
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#dateonly5",
|
|
4619
|
+
"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.",
|
|
4620
|
+
"examples": "\n##### Ví dụ\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",
|
|
4621
|
+
"completion": {
|
|
4622
|
+
"label": "DateOnly",
|
|
4623
|
+
"detail": "DateOnly(dateValue, format?) -> DateOnly",
|
|
4624
|
+
"insertText": "DateOnly(${1:dateValue_})$0",
|
|
4625
|
+
"insertTextMode": 2,
|
|
4626
|
+
"insertTextFormat": 2,
|
|
4627
|
+
"kind": 3,
|
|
4628
|
+
"documentation": {
|
|
4629
|
+
"kind": "markdown",
|
|
4630
|
+
"value": "**[Kể từ phiên bản 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**Thông số**\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**Giá trị trả về**: DateOnly"
|
|
4631
|
+
}
|
|
4632
|
+
},
|
|
4633
|
+
"parametersInfo": {
|
|
4634
|
+
"min": 1,
|
|
4635
|
+
"max": 2
|
|
4636
|
+
}
|
|
4637
|
+
},
|
|
4638
|
+
{
|
|
4639
|
+
"type": "function",
|
|
4640
|
+
"name": "dateonly",
|
|
4641
|
+
"bundle": "core",
|
|
4642
|
+
"sinceVersion": "1.24",
|
|
4643
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#dateonly6",
|
|
4644
|
+
"description": "Creates a copy of a DateOnly value.",
|
|
4645
|
+
"examples": "\n##### Ví dụ\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",
|
|
4646
|
+
"completion": {
|
|
4647
|
+
"label": "DateOnly",
|
|
4648
|
+
"detail": "DateOnly(dateOnlyValue) -> DateOnly",
|
|
4649
|
+
"insertText": "DateOnly(${1:dateOnlyValue_})$0",
|
|
4650
|
+
"insertTextMode": 2,
|
|
4651
|
+
"insertTextFormat": 2,
|
|
4652
|
+
"kind": 3,
|
|
4653
|
+
"documentation": {
|
|
4654
|
+
"kind": "markdown",
|
|
4655
|
+
"value": "**[Kể từ phiên bản 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nCreates a copy of a DateOnly value.\n\n**Tham số**\n\n- **dateOnlyValue**: DateOnly - The DateOnly value to copy.\n\n**Giá trị trả về**: DateOnly"
|
|
4656
|
+
}
|
|
4657
|
+
},
|
|
4658
|
+
"parametersInfo": {
|
|
4659
|
+
"min": 1,
|
|
4660
|
+
"max": 1
|
|
4661
|
+
}
|
|
4662
|
+
}
|
|
4663
|
+
],
|
|
4664
|
+
{
|
|
4357
4665
|
"type": "function",
|
|
4358
|
-
"name": "
|
|
4666
|
+
"name": "day",
|
|
4359
4667
|
"bundle": "core",
|
|
4360
|
-
"
|
|
4361
|
-
"
|
|
4362
|
-
"
|
|
4363
|
-
"examples": "\n##### Ví dụ\n\nLấy giá trị tuần của ngày cho trước theo tiêu chuẩn ISO 8601. Trả về giá trị `1` do ngày này thuộc tuần đầu tiên của năm tiếp theo.\n\n```arcade\nISOWeek(Date(1980, 11, 31))\n```\n\n",
|
|
4668
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#day",
|
|
4669
|
+
"description": "Trả về phần ngày trong tháng của ngày cho trước.",
|
|
4670
|
+
"examples": "\n##### Ví dụ\n\nLấy phần ngày trong tháng của ngày hiện tại\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",
|
|
4364
4671
|
"completion": {
|
|
4365
|
-
"label": "
|
|
4366
|
-
"detail": "
|
|
4367
|
-
"insertText": "
|
|
4672
|
+
"label": "Day",
|
|
4673
|
+
"detail": "Day(dateValue) -> Number",
|
|
4674
|
+
"insertText": "Day(${1:dateValue_})$0",
|
|
4368
4675
|
"insertTextMode": 2,
|
|
4369
4676
|
"insertTextFormat": 2,
|
|
4370
4677
|
"kind": 3,
|
|
4371
4678
|
"documentation": {
|
|
4372
4679
|
"kind": "markdown",
|
|
4373
|
-
"value": "
|
|
4680
|
+
"value": "Trả về phần ngày trong tháng của ngày cho trước.\n\n**Tham số**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) \\| DateOnly - Giá trị ngày để lấy ngày trong tháng.\n\n**Giá trị trả về**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
4374
4681
|
}
|
|
4375
4682
|
},
|
|
4376
4683
|
"parametersInfo": {
|
|
@@ -4378,24 +4685,75 @@
|
|
|
4378
4685
|
"max": 1
|
|
4379
4686
|
}
|
|
4380
4687
|
},
|
|
4688
|
+
[
|
|
4689
|
+
{
|
|
4690
|
+
"type": "function",
|
|
4691
|
+
"name": "hour",
|
|
4692
|
+
"bundle": "core",
|
|
4693
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#hour1",
|
|
4694
|
+
"description": "Returns the hour of the time in the given date (0-23).",
|
|
4695
|
+
"examples": "\n##### Ví dụ\n\nGets the hour of the current time\n\n```arcade\nHour(Now())\n```\n\n",
|
|
4696
|
+
"completion": {
|
|
4697
|
+
"label": "Hour",
|
|
4698
|
+
"detail": "Hour(dateValue) -> Number",
|
|
4699
|
+
"insertText": "Hour(${1:dateValue_})$0",
|
|
4700
|
+
"insertTextMode": 2,
|
|
4701
|
+
"insertTextFormat": 2,
|
|
4702
|
+
"kind": 3,
|
|
4703
|
+
"documentation": {
|
|
4704
|
+
"kind": "markdown",
|
|
4705
|
+
"value": "Returns the hour of the time in the given date (0-23).\n\n**Tham số**\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**Giá trị trả về**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
4706
|
+
}
|
|
4707
|
+
},
|
|
4708
|
+
"parametersInfo": {
|
|
4709
|
+
"min": 1,
|
|
4710
|
+
"max": 1
|
|
4711
|
+
}
|
|
4712
|
+
},
|
|
4713
|
+
{
|
|
4714
|
+
"type": "function",
|
|
4715
|
+
"name": "hour",
|
|
4716
|
+
"bundle": "core",
|
|
4717
|
+
"sinceVersion": "1.24",
|
|
4718
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#hour2",
|
|
4719
|
+
"description": "Returns the hour of the given time (0-23).",
|
|
4720
|
+
"examples": "\n##### Ví dụ\n\nGets the hour of the time\n\n```arcade\nHour(Time(2, 59, 23))\n// returns 2\n```\n\n",
|
|
4721
|
+
"completion": {
|
|
4722
|
+
"label": "Hour",
|
|
4723
|
+
"detail": "Hour(timeValue) -> Number",
|
|
4724
|
+
"insertText": "Hour(${1:timeValue_})$0",
|
|
4725
|
+
"insertTextMode": 2,
|
|
4726
|
+
"insertTextFormat": 2,
|
|
4727
|
+
"kind": 3,
|
|
4728
|
+
"documentation": {
|
|
4729
|
+
"kind": "markdown",
|
|
4730
|
+
"value": "**[Kể từ phiên bản 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nReturns the hour of the given time (0-23).\n\n**Tham số**\n\n- **timeValue**: Time - A Time value from which to get the hour.\n\n**Giá trị trả về**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
4731
|
+
}
|
|
4732
|
+
},
|
|
4733
|
+
"parametersInfo": {
|
|
4734
|
+
"min": 1,
|
|
4735
|
+
"max": 1
|
|
4736
|
+
}
|
|
4737
|
+
}
|
|
4738
|
+
],
|
|
4381
4739
|
{
|
|
4382
4740
|
"type": "function",
|
|
4383
|
-
"name": "
|
|
4741
|
+
"name": "isomonth",
|
|
4384
4742
|
"bundle": "core",
|
|
4385
4743
|
"sinceVersion": "1.12",
|
|
4386
|
-
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#
|
|
4387
|
-
"description": "Trả về giá trị
|
|
4388
|
-
"examples": "\n##### Ví dụ\n\
|
|
4744
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#isomonth",
|
|
4745
|
+
"description": "Trả về giá trị tháng của ngày cho trước theo tiêu chuẩn ISO 8601. Khoảng giá trị từ 1-12 trong đó tháng Một là `1` và tháng Mười hai là `12`.",
|
|
4746
|
+
"examples": "\n##### Ví dụ\n\nLấy giá trị tháng của ngày cho trước theo tiêu chuẩn ISO 8601. Trả về giá trị `12`, đối với tháng Mười hai.\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",
|
|
4389
4747
|
"completion": {
|
|
4390
|
-
"label": "
|
|
4391
|
-
"detail": "
|
|
4392
|
-
"insertText": "
|
|
4748
|
+
"label": "ISOMonth",
|
|
4749
|
+
"detail": "ISOMonth(dateValue) -> Number",
|
|
4750
|
+
"insertText": "ISOMonth(${1:dateValue_})$0",
|
|
4393
4751
|
"insertTextMode": 2,
|
|
4394
4752
|
"insertTextFormat": 2,
|
|
4395
4753
|
"kind": 3,
|
|
4396
4754
|
"documentation": {
|
|
4397
4755
|
"kind": "markdown",
|
|
4398
|
-
"value": "**[Kể từ phiên bản 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nTrả về giá trị
|
|
4756
|
+
"value": "**[Kể từ phiên bản 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nTrả về giá trị tháng của ngày cho trước theo tiêu chuẩn ISO 8601. Khoảng giá trị từ 1-12 trong đó tháng Một là `1` và tháng Mười hai là `12`.\n\n**Tham số**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) \\| DateOnly - Giá trị ngày để lấy tháng.\n\n**Giá trị trả về**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
4399
4757
|
}
|
|
4400
4758
|
},
|
|
4401
4759
|
"parametersInfo": {
|
|
@@ -4405,22 +4763,22 @@
|
|
|
4405
4763
|
},
|
|
4406
4764
|
{
|
|
4407
4765
|
"type": "function",
|
|
4408
|
-
"name": "
|
|
4766
|
+
"name": "isoweek",
|
|
4409
4767
|
"bundle": "core",
|
|
4410
4768
|
"sinceVersion": "1.12",
|
|
4411
|
-
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#
|
|
4412
|
-
"description": "Trả về giá trị năm của ngày cho trước theo lịch ngày tuần
|
|
4413
|
-
"examples": "\n##### Ví dụ\n\nLấy giá trị
|
|
4769
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#isoweek",
|
|
4770
|
+
"description": "Trả về giá trị tuần trong năm của ngày cho trước theo lịch ngày tuần ISO 8601. Khoảng giá trị từ 1-53 trong đó tuần đầu tiên của năm là `1` còn tuần cuối cùng của năm là `52` hoặc `53` tùy theo từng năm.",
|
|
4771
|
+
"examples": "\n##### Ví dụ\n\nLấy giá trị tuần của ngày cho trước theo tiêu chuẩn ISO 8601. Trả về giá trị `1` do ngày này thuộc tuần đầu tiên của năm tiếp theo.\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",
|
|
4414
4772
|
"completion": {
|
|
4415
|
-
"label": "
|
|
4416
|
-
"detail": "
|
|
4417
|
-
"insertText": "
|
|
4773
|
+
"label": "ISOWeek",
|
|
4774
|
+
"detail": "ISOWeek(dateValue) -> Number",
|
|
4775
|
+
"insertText": "ISOWeek(${1:dateValue_})$0",
|
|
4418
4776
|
"insertTextMode": 2,
|
|
4419
4777
|
"insertTextFormat": 2,
|
|
4420
4778
|
"kind": 3,
|
|
4421
4779
|
"documentation": {
|
|
4422
4780
|
"kind": "markdown",
|
|
4423
|
-
"value": "**[Kể từ phiên bản 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nTrả về giá trị năm của ngày cho trước theo lịch ngày tuần
|
|
4781
|
+
"value": "**[Kể từ phiên bản 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nTrả về giá trị tuần trong năm của ngày cho trước theo lịch ngày tuần ISO 8601. Khoảng giá trị từ 1-53 trong đó tuần đầu tiên của năm là `1` còn tuần cuối cùng của năm là `52` hoặc `53` tùy theo từng năm.\n\n**Tham số**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) \\| DateOnly - Giá trị ngày để lấy giá trị tuần.\n\n**Giá trị trả về**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
4424
4782
|
}
|
|
4425
4783
|
},
|
|
4426
4784
|
"parametersInfo": {
|
|
@@ -4430,21 +4788,22 @@
|
|
|
4430
4788
|
},
|
|
4431
4789
|
{
|
|
4432
4790
|
"type": "function",
|
|
4433
|
-
"name": "
|
|
4791
|
+
"name": "isoweekday",
|
|
4434
4792
|
"bundle": "core",
|
|
4435
|
-
"
|
|
4436
|
-
"
|
|
4437
|
-
"
|
|
4793
|
+
"sinceVersion": "1.12",
|
|
4794
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#isoweekday",
|
|
4795
|
+
"description": "Trả về giá trị ngày trong tuần của ngày cho trước theo tiêu chuẩn ISO 8601. Khoảng giá trị từ 1-7 trong đó Thứ Hai là `1` còn Chủ Nhật là `7`.",
|
|
4796
|
+
"examples": "\n##### Ví dụ\n\nTrả về giá trị ngày trong tuần của ngày cho trước theo tiêu chuẩn ISO 8601. Trả về giá trị `3` đối với Thứ Tư.\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",
|
|
4438
4797
|
"completion": {
|
|
4439
|
-
"label": "
|
|
4440
|
-
"detail": "
|
|
4441
|
-
"insertText": "
|
|
4798
|
+
"label": "ISOWeekday",
|
|
4799
|
+
"detail": "ISOWeekday(dateValue) -> Number",
|
|
4800
|
+
"insertText": "ISOWeekday(${1:dateValue_})$0",
|
|
4442
4801
|
"insertTextMode": 2,
|
|
4443
4802
|
"insertTextFormat": 2,
|
|
4444
4803
|
"kind": 3,
|
|
4445
4804
|
"documentation": {
|
|
4446
4805
|
"kind": "markdown",
|
|
4447
|
-
"value": "
|
|
4806
|
+
"value": "**[Kể từ phiên bản 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nTrả về giá trị ngày trong tuần của ngày cho trước theo tiêu chuẩn ISO 8601. Khoảng giá trị từ 1-7 trong đó Thứ Hai là `1` còn Chủ Nhật là `7`.\n\n**Tham số**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) \\| DateOnly - Giá trị ngày để trả về ngày trong tuần.\n\n**Giá trị trả về**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
4448
4807
|
}
|
|
4449
4808
|
},
|
|
4450
4809
|
"parametersInfo": {
|
|
@@ -4454,21 +4813,22 @@
|
|
|
4454
4813
|
},
|
|
4455
4814
|
{
|
|
4456
4815
|
"type": "function",
|
|
4457
|
-
"name": "
|
|
4816
|
+
"name": "isoyear",
|
|
4458
4817
|
"bundle": "core",
|
|
4459
|
-
"
|
|
4460
|
-
"
|
|
4461
|
-
"
|
|
4818
|
+
"sinceVersion": "1.12",
|
|
4819
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#isoyear",
|
|
4820
|
+
"description": "Trả về giá trị năm của ngày cho trước theo lịch ngày tuần chuẩn ISO 8601.",
|
|
4821
|
+
"examples": "\n##### Ví dụ\n\nLấy giá trị năm của ngày cho trước theo lịch ngày tuần ISO 8601. Trả về giá trị `1981` do ngày này thuộc tuần đầu tiên của năm tiếp theo.\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",
|
|
4462
4822
|
"completion": {
|
|
4463
|
-
"label": "
|
|
4464
|
-
"detail": "
|
|
4465
|
-
"insertText": "
|
|
4823
|
+
"label": "ISOYear",
|
|
4824
|
+
"detail": "ISOYear(dateValue) -> Number",
|
|
4825
|
+
"insertText": "ISOYear(${1:dateValue_})$0",
|
|
4466
4826
|
"insertTextMode": 2,
|
|
4467
4827
|
"insertTextFormat": 2,
|
|
4468
4828
|
"kind": 3,
|
|
4469
4829
|
"documentation": {
|
|
4470
4830
|
"kind": "markdown",
|
|
4471
|
-
"value": "
|
|
4831
|
+
"value": "**[Kể từ phiên bản 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nTrả về giá trị năm của ngày cho trước theo lịch ngày tuần chuẩn ISO 8601.\n\n**Tham số**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) \\| DateOnly - Giá trị ngày để lấy năm.\n\n**Giá trị trả về**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
4472
4832
|
}
|
|
4473
4833
|
},
|
|
4474
4834
|
"parametersInfo": {
|
|
@@ -4476,13 +4836,115 @@
|
|
|
4476
4836
|
"max": 1
|
|
4477
4837
|
}
|
|
4478
4838
|
},
|
|
4839
|
+
[
|
|
4840
|
+
{
|
|
4841
|
+
"type": "function",
|
|
4842
|
+
"name": "millisecond",
|
|
4843
|
+
"bundle": "core",
|
|
4844
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#millisecond1",
|
|
4845
|
+
"description": "Returns the millisecond of the time in the date.",
|
|
4846
|
+
"examples": "\n##### Ví dụ\n\nGets the millisecond of the current time\n\n```arcade\nMillisecond(Now())\n```\n\n",
|
|
4847
|
+
"completion": {
|
|
4848
|
+
"label": "Millisecond",
|
|
4849
|
+
"detail": "Millisecond(dateValue) -> Number",
|
|
4850
|
+
"insertText": "Millisecond(${1:dateValue_})$0",
|
|
4851
|
+
"insertTextMode": 2,
|
|
4852
|
+
"insertTextFormat": 2,
|
|
4853
|
+
"kind": 3,
|
|
4854
|
+
"documentation": {
|
|
4855
|
+
"kind": "markdown",
|
|
4856
|
+
"value": "Returns the millisecond of the time in the date.\n\n**Tham số**\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**Giá trị trả về**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
4857
|
+
}
|
|
4858
|
+
},
|
|
4859
|
+
"parametersInfo": {
|
|
4860
|
+
"min": 1,
|
|
4861
|
+
"max": 1
|
|
4862
|
+
}
|
|
4863
|
+
},
|
|
4864
|
+
{
|
|
4865
|
+
"type": "function",
|
|
4866
|
+
"name": "millisecond",
|
|
4867
|
+
"bundle": "core",
|
|
4868
|
+
"sinceVersion": "1.24",
|
|
4869
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#millisecond2",
|
|
4870
|
+
"description": "Returns the millisecond of the given time.",
|
|
4871
|
+
"examples": "\n##### Ví dụ\n\nGets the millisecond of the time\n\n```arcade\nHour(Time(2, 59, 23, 450))\n// returns 450\n```\n\n",
|
|
4872
|
+
"completion": {
|
|
4873
|
+
"label": "Millisecond",
|
|
4874
|
+
"detail": "Millisecond(timeValue) -> Number",
|
|
4875
|
+
"insertText": "Millisecond(${1:timeValue_})$0",
|
|
4876
|
+
"insertTextMode": 2,
|
|
4877
|
+
"insertTextFormat": 2,
|
|
4878
|
+
"kind": 3,
|
|
4879
|
+
"documentation": {
|
|
4880
|
+
"kind": "markdown",
|
|
4881
|
+
"value": "**[Kể từ phiên bản 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nReturns the millisecond of the given time.\n\n**Tham số**\n\n- **timeValue**: Time - A Time value from which to get the millisecond.\n\n**Giá trị trả về**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
4882
|
+
}
|
|
4883
|
+
},
|
|
4884
|
+
"parametersInfo": {
|
|
4885
|
+
"min": 1,
|
|
4886
|
+
"max": 1
|
|
4887
|
+
}
|
|
4888
|
+
}
|
|
4889
|
+
],
|
|
4890
|
+
[
|
|
4891
|
+
{
|
|
4892
|
+
"type": "function",
|
|
4893
|
+
"name": "minute",
|
|
4894
|
+
"bundle": "core",
|
|
4895
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#minute1",
|
|
4896
|
+
"description": "Returns the minute of the time in the given date.",
|
|
4897
|
+
"examples": "\n##### Ví dụ\n\nGets the minute of the current time\n\n```arcade\nMinute(Now())\n```\n\n",
|
|
4898
|
+
"completion": {
|
|
4899
|
+
"label": "Minute",
|
|
4900
|
+
"detail": "Minute(dateValue) -> Number",
|
|
4901
|
+
"insertText": "Minute(${1:dateValue_})$0",
|
|
4902
|
+
"insertTextMode": 2,
|
|
4903
|
+
"insertTextFormat": 2,
|
|
4904
|
+
"kind": 3,
|
|
4905
|
+
"documentation": {
|
|
4906
|
+
"kind": "markdown",
|
|
4907
|
+
"value": "Returns the minute of the time in the given date.\n\n**Tham số**\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**Giá trị trả về**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
4908
|
+
}
|
|
4909
|
+
},
|
|
4910
|
+
"parametersInfo": {
|
|
4911
|
+
"min": 1,
|
|
4912
|
+
"max": 1
|
|
4913
|
+
}
|
|
4914
|
+
},
|
|
4915
|
+
{
|
|
4916
|
+
"type": "function",
|
|
4917
|
+
"name": "minute",
|
|
4918
|
+
"bundle": "core",
|
|
4919
|
+
"sinceVersion": "1.24",
|
|
4920
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#minute2",
|
|
4921
|
+
"description": "Returns the minute of the given time.",
|
|
4922
|
+
"examples": "\n##### Ví dụ\n\nGets the minute of the time\n\n```arcade\nHour(Time(2, 59, 23))\n// returns 59\n```\n\n",
|
|
4923
|
+
"completion": {
|
|
4924
|
+
"label": "Minute",
|
|
4925
|
+
"detail": "Minute(timeValue) -> Number",
|
|
4926
|
+
"insertText": "Minute(${1:timeValue_})$0",
|
|
4927
|
+
"insertTextMode": 2,
|
|
4928
|
+
"insertTextFormat": 2,
|
|
4929
|
+
"kind": 3,
|
|
4930
|
+
"documentation": {
|
|
4931
|
+
"kind": "markdown",
|
|
4932
|
+
"value": "**[Kể từ phiên bản 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nReturns the minute of the given time.\n\n**Tham số**\n\n- **timeValue**: Time - A Time value from which to get the minute.\n\n**Giá trị trả về**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
4933
|
+
}
|
|
4934
|
+
},
|
|
4935
|
+
"parametersInfo": {
|
|
4936
|
+
"min": 1,
|
|
4937
|
+
"max": 1
|
|
4938
|
+
}
|
|
4939
|
+
}
|
|
4940
|
+
],
|
|
4479
4941
|
{
|
|
4480
4942
|
"type": "function",
|
|
4481
4943
|
"name": "month",
|
|
4482
4944
|
"bundle": "core",
|
|
4483
4945
|
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#month",
|
|
4484
4946
|
"description": "Trả về phần tháng của ngày cho trước. Khoảng giá trị từ 0-11 trong đó tháng 01 là `0` và tháng 12 là `11`.",
|
|
4485
|
-
"examples": "\n##### Ví dụ\n\nLấy phần tháng của Ngày đã cho. Trả về giá trị 11 đối với tháng Mười hai.\n\n```arcade\nMonth(Date(1980, 11, 31))\n```\n\n",
|
|
4947
|
+
"examples": "\n##### Ví dụ\n\nLấy phần tháng của Ngày đã cho. Trả về giá trị 11 đối với tháng Mười hai.\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",
|
|
4486
4948
|
"completion": {
|
|
4487
4949
|
"label": "Month",
|
|
4488
4950
|
"detail": "Month(dateValue) -> Number",
|
|
@@ -4492,7 +4954,7 @@
|
|
|
4492
4954
|
"kind": 3,
|
|
4493
4955
|
"documentation": {
|
|
4494
4956
|
"kind": "markdown",
|
|
4495
|
-
"value": "Trả về phần tháng của ngày cho trước. Khoảng giá trị từ 0-11 trong đó tháng 01 là `0` và tháng 12 là `11`.\n\n**Tham số**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - Giá trị ngày để lấy tháng.\n\n**Giá trị trả về**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
4957
|
+
"value": "Trả về phần tháng của ngày cho trước. Khoảng giá trị từ 0-11 trong đó tháng 01 là `0` và tháng 12 là `11`.\n\n**Tham số**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) \\| DateOnly - Giá trị ngày để lấy tháng.\n\n**Giá trị trả về**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
4496
4958
|
}
|
|
4497
4959
|
},
|
|
4498
4960
|
"parametersInfo": {
|
|
@@ -4524,23 +4986,227 @@
|
|
|
4524
4986
|
"max": 0
|
|
4525
4987
|
}
|
|
4526
4988
|
},
|
|
4989
|
+
[
|
|
4990
|
+
{
|
|
4991
|
+
"type": "function",
|
|
4992
|
+
"name": "second",
|
|
4993
|
+
"bundle": "core",
|
|
4994
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#second1",
|
|
4995
|
+
"description": "Returns the second of the time in the date.",
|
|
4996
|
+
"examples": "\n##### Ví dụ\n\nGets the second of the current time\n\n```arcade\nSecond(Now())\n```\n\n",
|
|
4997
|
+
"completion": {
|
|
4998
|
+
"label": "Second",
|
|
4999
|
+
"detail": "Second(dateValue) -> Number",
|
|
5000
|
+
"insertText": "Second(${1:dateValue_})$0",
|
|
5001
|
+
"insertTextMode": 2,
|
|
5002
|
+
"insertTextFormat": 2,
|
|
5003
|
+
"kind": 3,
|
|
5004
|
+
"documentation": {
|
|
5005
|
+
"kind": "markdown",
|
|
5006
|
+
"value": "Returns the second of the time in the date.\n\n**Tham số**\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**Giá trị trả về**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
5007
|
+
}
|
|
5008
|
+
},
|
|
5009
|
+
"parametersInfo": {
|
|
5010
|
+
"min": 1,
|
|
5011
|
+
"max": 1
|
|
5012
|
+
}
|
|
5013
|
+
},
|
|
5014
|
+
{
|
|
5015
|
+
"type": "function",
|
|
5016
|
+
"name": "second",
|
|
5017
|
+
"bundle": "core",
|
|
5018
|
+
"sinceVersion": "1.24",
|
|
5019
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#second2",
|
|
5020
|
+
"description": "Returns the second of the given time.",
|
|
5021
|
+
"examples": "\n##### Ví dụ\n\nGets the second of the time\n\n```arcade\nHour(Time(2, 59, 23))\n// returns 23\n```\n\n",
|
|
5022
|
+
"completion": {
|
|
5023
|
+
"label": "Second",
|
|
5024
|
+
"detail": "Second(timeValue) -> Number",
|
|
5025
|
+
"insertText": "Second(${1:timeValue_})$0",
|
|
5026
|
+
"insertTextMode": 2,
|
|
5027
|
+
"insertTextFormat": 2,
|
|
5028
|
+
"kind": 3,
|
|
5029
|
+
"documentation": {
|
|
5030
|
+
"kind": "markdown",
|
|
5031
|
+
"value": "**[Kể từ phiên bản 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nReturns the second of the given time.\n\n**Tham số**\n\n- **timeValue**: Time - A Time value from which to get the second.\n\n**Giá trị trả về**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
5032
|
+
}
|
|
5033
|
+
},
|
|
5034
|
+
"parametersInfo": {
|
|
5035
|
+
"min": 1,
|
|
5036
|
+
"max": 1
|
|
5037
|
+
}
|
|
5038
|
+
}
|
|
5039
|
+
],
|
|
5040
|
+
[
|
|
5041
|
+
{
|
|
5042
|
+
"type": "function",
|
|
5043
|
+
"name": "time",
|
|
5044
|
+
"bundle": "core",
|
|
5045
|
+
"sinceVersion": "1.24",
|
|
5046
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#time1",
|
|
5047
|
+
"description": "Creates a Time value representing the current time in the time zone of the profile's execution context.",
|
|
5048
|
+
"examples": "\n##### Ví dụ\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",
|
|
5049
|
+
"completion": {
|
|
5050
|
+
"label": "Time",
|
|
5051
|
+
"detail": "Time() -> Time",
|
|
5052
|
+
"insertText": "Time($0)",
|
|
5053
|
+
"insertTextMode": 2,
|
|
5054
|
+
"insertTextFormat": 2,
|
|
5055
|
+
"kind": 3,
|
|
5056
|
+
"documentation": {
|
|
5057
|
+
"kind": "markdown",
|
|
5058
|
+
"value": "**[Kể từ phiên bản 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**Giá trị trả về**: Time"
|
|
5059
|
+
}
|
|
5060
|
+
},
|
|
5061
|
+
"parametersInfo": {
|
|
5062
|
+
"min": 0,
|
|
5063
|
+
"max": 0
|
|
5064
|
+
}
|
|
5065
|
+
},
|
|
5066
|
+
{
|
|
5067
|
+
"type": "function",
|
|
5068
|
+
"name": "time",
|
|
5069
|
+
"bundle": "core",
|
|
5070
|
+
"sinceVersion": "1.24",
|
|
5071
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#time2",
|
|
5072
|
+
"description": "Creates a Time value from a given date.",
|
|
5073
|
+
"examples": "\n##### Ví dụ\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",
|
|
5074
|
+
"completion": {
|
|
5075
|
+
"label": "Time",
|
|
5076
|
+
"detail": "Time(dateValue) -> Time",
|
|
5077
|
+
"insertText": "Time(${1:dateValue_})$0",
|
|
5078
|
+
"insertTextMode": 2,
|
|
5079
|
+
"insertTextFormat": 2,
|
|
5080
|
+
"kind": 3,
|
|
5081
|
+
"documentation": {
|
|
5082
|
+
"kind": "markdown",
|
|
5083
|
+
"value": "**[Kể từ phiên bản 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nCreates a Time value from a given date.\n\n**Tham số**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - The date from which to get the time.\n\n**Giá trị trả về**: Time"
|
|
5084
|
+
}
|
|
5085
|
+
},
|
|
5086
|
+
"parametersInfo": {
|
|
5087
|
+
"min": 1,
|
|
5088
|
+
"max": 1
|
|
5089
|
+
}
|
|
5090
|
+
},
|
|
5091
|
+
{
|
|
5092
|
+
"type": "function",
|
|
5093
|
+
"name": "time",
|
|
5094
|
+
"bundle": "core",
|
|
5095
|
+
"sinceVersion": "1.24",
|
|
5096
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#time3",
|
|
5097
|
+
"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`.",
|
|
5098
|
+
"examples": "\n##### Ví dụ\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",
|
|
5099
|
+
"completion": {
|
|
5100
|
+
"label": "Time",
|
|
5101
|
+
"detail": "Time(numValue) -> Time",
|
|
5102
|
+
"insertText": "Time(${1:numValue_})$0",
|
|
5103
|
+
"insertTextMode": 2,
|
|
5104
|
+
"insertTextFormat": 2,
|
|
5105
|
+
"kind": 3,
|
|
5106
|
+
"documentation": {
|
|
5107
|
+
"kind": "markdown",
|
|
5108
|
+
"value": "**[Kể từ phiên bản 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**Tham số**\n\n- **numValue**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - The number of milliseconds since midnight.\n\n**Giá trị trả về**: Time"
|
|
5109
|
+
}
|
|
5110
|
+
},
|
|
5111
|
+
"parametersInfo": {
|
|
5112
|
+
"min": 1,
|
|
5113
|
+
"max": 1
|
|
5114
|
+
}
|
|
5115
|
+
},
|
|
5116
|
+
{
|
|
5117
|
+
"type": "function",
|
|
5118
|
+
"name": "time",
|
|
5119
|
+
"bundle": "core",
|
|
5120
|
+
"sinceVersion": "1.24",
|
|
5121
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#time4",
|
|
5122
|
+
"description": "Creates a Time value from inputs representing hours, minutes, seconds, and milliseconds.",
|
|
5123
|
+
"examples": "\n##### Ví dụ\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",
|
|
5124
|
+
"completion": {
|
|
5125
|
+
"label": "Time",
|
|
5126
|
+
"detail": "Time(hours, minutes, seconds?, milliseconds?) -> Time",
|
|
5127
|
+
"insertText": "Time(${1:hours_}, ${2:minutes_})$0",
|
|
5128
|
+
"insertTextMode": 2,
|
|
5129
|
+
"insertTextFormat": 2,
|
|
5130
|
+
"kind": 3,
|
|
5131
|
+
"documentation": {
|
|
5132
|
+
"kind": "markdown",
|
|
5133
|
+
"value": "**[Kể từ phiên bản 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**Thông số**\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**Giá trị trả về**: Time"
|
|
5134
|
+
}
|
|
5135
|
+
},
|
|
5136
|
+
"parametersInfo": {
|
|
5137
|
+
"min": 2,
|
|
5138
|
+
"max": 4
|
|
5139
|
+
}
|
|
5140
|
+
},
|
|
5141
|
+
{
|
|
5142
|
+
"type": "function",
|
|
5143
|
+
"name": "time",
|
|
5144
|
+
"bundle": "core",
|
|
5145
|
+
"sinceVersion": "1.24",
|
|
5146
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#time5",
|
|
5147
|
+
"description": "Creates a Time value from a text input representing time, with an optional input indicating the text's format.",
|
|
5148
|
+
"examples": "\n##### Ví dụ\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",
|
|
5149
|
+
"completion": {
|
|
5150
|
+
"label": "Time",
|
|
5151
|
+
"detail": "Time(timeValue, format?) -> Time",
|
|
5152
|
+
"insertText": "Time(${1:timeValue_})$0",
|
|
5153
|
+
"insertTextMode": 2,
|
|
5154
|
+
"insertTextFormat": 2,
|
|
5155
|
+
"kind": 3,
|
|
5156
|
+
"documentation": {
|
|
5157
|
+
"kind": "markdown",
|
|
5158
|
+
"value": "**[Kể từ phiên bản 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**Thông số**\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**Giá trị trả về**: Time"
|
|
5159
|
+
}
|
|
5160
|
+
},
|
|
5161
|
+
"parametersInfo": {
|
|
5162
|
+
"min": 1,
|
|
5163
|
+
"max": 2
|
|
5164
|
+
}
|
|
5165
|
+
}
|
|
5166
|
+
],
|
|
5167
|
+
{
|
|
5168
|
+
"type": "function",
|
|
5169
|
+
"name": "timestamp",
|
|
5170
|
+
"bundle": "core",
|
|
5171
|
+
"sinceVersion": "1.1",
|
|
5172
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#timestamp",
|
|
5173
|
+
"description": "Tạo giá trị ngày biểu thị ngày và giờ hiện tại theo giờ UTC.",
|
|
5174
|
+
"examples": "\n##### Ví dụ\n\nTạo ngày theo giờ UTC\n\n```arcade\n// Date that represents Jan 27, 2023, 8:41:20 PM UTC\nTimestamp()\n```\n\n",
|
|
5175
|
+
"completion": {
|
|
5176
|
+
"label": "Timestamp",
|
|
5177
|
+
"detail": "Timestamp() -> Date",
|
|
5178
|
+
"insertText": "Timestamp($0)",
|
|
5179
|
+
"insertTextMode": 2,
|
|
5180
|
+
"insertTextFormat": 2,
|
|
5181
|
+
"kind": 3,
|
|
5182
|
+
"documentation": {
|
|
5183
|
+
"kind": "markdown",
|
|
5184
|
+
"value": "**[Kể từ phiên bản 1.1](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nTạo giá trị ngày biểu thị ngày và giờ hiện tại theo giờ UTC.\n\n**Giá trị trả về**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)"
|
|
5185
|
+
}
|
|
5186
|
+
},
|
|
5187
|
+
"parametersInfo": {
|
|
5188
|
+
"min": 0,
|
|
5189
|
+
"max": 0
|
|
5190
|
+
}
|
|
5191
|
+
},
|
|
4527
5192
|
{
|
|
4528
5193
|
"type": "function",
|
|
4529
|
-
"name": "
|
|
5194
|
+
"name": "timezone",
|
|
4530
5195
|
"bundle": "core",
|
|
4531
|
-
"
|
|
4532
|
-
"
|
|
4533
|
-
"
|
|
5196
|
+
"sinceVersion": "1.24",
|
|
5197
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#timezone",
|
|
5198
|
+
"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",
|
|
5199
|
+
"examples": "\n##### Ví dụ\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",
|
|
4534
5200
|
"completion": {
|
|
4535
|
-
"label": "
|
|
4536
|
-
"detail": "
|
|
4537
|
-
"insertText": "
|
|
5201
|
+
"label": "TimeZone",
|
|
5202
|
+
"detail": "TimeZone(dateValue) -> Text",
|
|
5203
|
+
"insertText": "TimeZone(${1:dateValue_})$0",
|
|
4538
5204
|
"insertTextMode": 2,
|
|
4539
5205
|
"insertTextFormat": 2,
|
|
4540
5206
|
"kind": 3,
|
|
4541
5207
|
"documentation": {
|
|
4542
5208
|
"kind": "markdown",
|
|
4543
|
-
"value": "
|
|
5209
|
+
"value": "**[Kể từ phiên bản 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**Tham số**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - A Date value from which to get the time zone.\n\n**Giá trị trả về**: [Text](https://developers.arcgis.com/arcade/guide/types/#text)"
|
|
4544
5210
|
}
|
|
4545
5211
|
},
|
|
4546
5212
|
"parametersInfo": {
|
|
@@ -4550,27 +5216,27 @@
|
|
|
4550
5216
|
},
|
|
4551
5217
|
{
|
|
4552
5218
|
"type": "function",
|
|
4553
|
-
"name": "
|
|
5219
|
+
"name": "timezoneoffset",
|
|
4554
5220
|
"bundle": "core",
|
|
4555
|
-
"sinceVersion": "1.
|
|
4556
|
-
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#
|
|
4557
|
-
"description": "
|
|
4558
|
-
"examples": "\n##### Ví dụ\n\
|
|
5221
|
+
"sinceVersion": "1.24",
|
|
5222
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#timezoneoffset",
|
|
5223
|
+
"description": "Returns the time zone offset in minutes from UTC for the given Date.",
|
|
5224
|
+
"examples": "\n##### Ví dụ\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",
|
|
4559
5225
|
"completion": {
|
|
4560
|
-
"label": "
|
|
4561
|
-
"detail": "
|
|
4562
|
-
"insertText": "
|
|
5226
|
+
"label": "TimeZoneOffset",
|
|
5227
|
+
"detail": "TimeZoneOffset(dateValue) -> Number",
|
|
5228
|
+
"insertText": "TimeZoneOffset(${1:dateValue_})$0",
|
|
4563
5229
|
"insertTextMode": 2,
|
|
4564
5230
|
"insertTextFormat": 2,
|
|
4565
5231
|
"kind": 3,
|
|
4566
5232
|
"documentation": {
|
|
4567
5233
|
"kind": "markdown",
|
|
4568
|
-
"value": "**[Kể từ phiên bản 1.
|
|
5234
|
+
"value": "**[Kể từ phiên bản 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**Tham số**\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**Giá trị trả về**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
4569
5235
|
}
|
|
4570
5236
|
},
|
|
4571
5237
|
"parametersInfo": {
|
|
4572
|
-
"min":
|
|
4573
|
-
"max":
|
|
5238
|
+
"min": 1,
|
|
5239
|
+
"max": 1
|
|
4574
5240
|
}
|
|
4575
5241
|
},
|
|
4576
5242
|
{
|
|
@@ -4654,7 +5320,7 @@
|
|
|
4654
5320
|
"sinceVersion": "1.14",
|
|
4655
5321
|
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#week",
|
|
4656
5322
|
"description": "Trả về số tuần trong năm của ngày cho trước. Khoảng giá trị từ 0-53 trong đó tuần đầu tiên của năm là `0` còn tuần cuối cùng của năm là `51`, `52` hoặc `53` tùy theo từng năm. Tuần đầu tiên và tuần cuối cùng có thể không dài đủ bảy ngày.",
|
|
4657
|
-
"examples": "\n##### Ví dụ\n\nSử dụng ngày bắt đầu mặc định trong tuần (Chủ Nhật)\n\n```arcade\nWeek( Date(1974,0,3) )\n// Returns 0\n```\n\nThiết lập ngày bắt đầu trong tuần thành Thứ Năm\n\n```arcade\nWeek( Date(1974,0,3), 4 )\n// Returns 1\n```\n\nThiết lập ngày bắt đầu trong tuần thành Thứ Sáu\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",
|
|
5323
|
+
"examples": "\n##### Ví dụ\n\nSử dụng ngày bắt đầu mặc định trong tuần (Chủ Nhật)\n\n```arcade\nWeek( Date(1974,0,3) )\n// Returns 0\n```\n\nThiết lập ngày bắt đầu trong tuần thành Thứ Năm\n\n```arcade\nWeek( Date(1974,0,3), 4 )\n// Returns 1\n```\n\nThiết lập ngày bắt đầu trong tuần thành Thứ Sáu\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",
|
|
4658
5324
|
"completion": {
|
|
4659
5325
|
"label": "Week",
|
|
4660
5326
|
"detail": "Week(dateValue, startDay?) -> Number",
|
|
@@ -4664,7 +5330,7 @@
|
|
|
4664
5330
|
"kind": 3,
|
|
4665
5331
|
"documentation": {
|
|
4666
5332
|
"kind": "markdown",
|
|
4667
|
-
"value": "**[Kể từ phiên bản 1.14](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nTrả về số tuần trong năm của ngày cho trước. Khoảng giá trị từ 0-53 trong đó tuần đầu tiên của năm là `0` còn tuần cuối cùng của năm là `51`, `52` hoặc `53` tùy theo từng năm. Tuần đầu tiên và tuần cuối cùng có thể không dài đủ bảy ngày.\n\n**Thông số**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - Giá trị ngày để lấy giá trị tuần.\n- **startDay** (_Optional_): [Number](https://developers.arcgis.com/arcade/guide/types/#number) - Số thể hiện ngày bắt đầu trong tuần. Chủ Nhật = 0; Thứ Hai = 1; Thứ Ba = 2; Thứ 4 = 3; Thứ Năm = 4; Thứ Sáu = 5; Thứ Bảy = 6. Mặc định là `0` (Chủ Nhật).\n\n**Giá trị trả về**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
5333
|
+
"value": "**[Kể từ phiên bản 1.14](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nTrả về số tuần trong năm của ngày cho trước. Khoảng giá trị từ 0-53 trong đó tuần đầu tiên của năm là `0` còn tuần cuối cùng của năm là `51`, `52` hoặc `53` tùy theo từng năm. Tuần đầu tiên và tuần cuối cùng có thể không dài đủ bảy ngày.\n\n**Thông số**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) \\| DateOnly - Giá trị ngày để lấy giá trị tuần.\n- **startDay** (_Optional_): [Number](https://developers.arcgis.com/arcade/guide/types/#number) - Số thể hiện ngày bắt đầu trong tuần. Chủ Nhật = 0; Thứ Hai = 1; Thứ Ba = 2; Thứ 4 = 3; Thứ Năm = 4; Thứ Sáu = 5; Thứ Bảy = 6. Mặc định là `0` (Chủ Nhật).\n\n**Giá trị trả về**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
4668
5334
|
}
|
|
4669
5335
|
},
|
|
4670
5336
|
"parametersInfo": {
|
|
@@ -4678,7 +5344,7 @@
|
|
|
4678
5344
|
"bundle": "core",
|
|
4679
5345
|
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#weekday",
|
|
4680
5346
|
"description": "Trả về giá trị ngày trong tuần của ngày cho trước. Khoảng giá trị từ 0-6 trong đó Chủ nhật là `0` và thứ Bảy là `6`.",
|
|
4681
|
-
"examples": "\n##### Ví dụ\n\nTrả về giá trị ngày trong tuần của ngày cho trước. Trả về giá trị `3` đối với Thứ Tư.\n\n```arcade\nWeekday(Date(1980, 11, 31))\n```\n\n",
|
|
5347
|
+
"examples": "\n##### Ví dụ\n\nTrả về giá trị ngày trong tuần của ngày cho trước. Trả về giá trị `3` đối với Thứ Tư.\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",
|
|
4682
5348
|
"completion": {
|
|
4683
5349
|
"label": "Weekday",
|
|
4684
5350
|
"detail": "Weekday(dateValue) -> Number",
|
|
@@ -4688,7 +5354,7 @@
|
|
|
4688
5354
|
"kind": 3,
|
|
4689
5355
|
"documentation": {
|
|
4690
5356
|
"kind": "markdown",
|
|
4691
|
-
"value": "Trả về giá trị ngày trong tuần của ngày cho trước. Khoảng giá trị từ 0-6 trong đó Chủ nhật là `0` và thứ Bảy là `6`.\n\n**Tham số**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - Giá trị ngày để trả về ngày trong tuần.\n\n**Giá trị trả về**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
5357
|
+
"value": "Trả về giá trị ngày trong tuần của ngày cho trước. Khoảng giá trị từ 0-6 trong đó Chủ nhật là `0` và thứ Bảy là `6`.\n\n**Tham số**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) \\| DateOnly - Giá trị ngày để trả về ngày trong tuần.\n\n**Giá trị trả về**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
4692
5358
|
}
|
|
4693
5359
|
},
|
|
4694
5360
|
"parametersInfo": {
|
|
@@ -4702,7 +5368,7 @@
|
|
|
4702
5368
|
"bundle": "core",
|
|
4703
5369
|
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#year",
|
|
4704
5370
|
"description": "Trả về phần năm của ngày cho trước.",
|
|
4705
|
-
"examples": "\n##### Ví dụ\n\nLấy phần năm của ngày hiện tại\n\n```arcade\nYear(Now())\n```\n\n",
|
|
5371
|
+
"examples": "\n##### Ví dụ\n\nLấy phần năm của ngày hiện tại\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",
|
|
4706
5372
|
"completion": {
|
|
4707
5373
|
"label": "Year",
|
|
4708
5374
|
"detail": "Year(dateValue) -> Number",
|
|
@@ -4712,7 +5378,7 @@
|
|
|
4712
5378
|
"kind": 3,
|
|
4713
5379
|
"documentation": {
|
|
4714
5380
|
"kind": "markdown",
|
|
4715
|
-
"value": "Trả về phần năm của ngày cho trước.\n\n**Tham số**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - Giá trị ngày để lấy năm.\n\n**Giá trị trả về**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
5381
|
+
"value": "Trả về phần năm của ngày cho trước.\n\n**Tham số**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) \\| DateOnly - Giá trị ngày để lấy năm.\n\n**Giá trị trả về**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
4716
5382
|
}
|
|
4717
5383
|
},
|
|
4718
5384
|
"parametersInfo": {
|
|
@@ -5471,7 +6137,7 @@
|
|
|
5471
6137
|
"kind": 3,
|
|
5472
6138
|
"documentation": {
|
|
5473
6139
|
"kind": "markdown",
|
|
5474
|
-
"value": "**[Kể từ phiên bản 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nTạo giá trị mã hash cho biến đã cho.\n\n**Tham số**\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) - Biến số để được hash.\n\n**Giá trị trả về**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
6140
|
+
"value": "**[Kể từ phiên bản 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nTạo giá trị mã hash cho biến đã cho.\n\n**Tham số**\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 - Biến số để được hash.\n\n**Giá trị trả về**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
5475
6141
|
}
|
|
5476
6142
|
},
|
|
5477
6143
|
"parametersInfo": {
|
|
@@ -6531,7 +7197,7 @@
|
|
|
6531
7197
|
"bundle": "core",
|
|
6532
7198
|
"link": "https://developers.arcgis.com/arcade/function-reference/text_functions/#text",
|
|
6533
7199
|
"description": "Chuyển đổi đối số thành một giá trị văn bản và định dạng tùy chọn. Trả về giá trị `null` nếu sai.",
|
|
6534
|
-
"examples": "\n##### Ví dụ\n\nĐẩy số sang bên trái dấu thập phân\n\n```arcade\nText(123, '0000') // '0123'\n```\n\nGiới hạn số bên trái dấu thập phân\n\n```arcade\nText(123, '00') // '23'\n```\n\nNhóm số theo hàng nghìn\n\n```arcade\nText(1234, '#,###') // '1,234'\n```\n\nLàm tròn số đến hai vị trí thập phân\n\n```arcade\nText(12345678.123, '#,###.00') // '12,345,678.12'\n```\n\nĐịnh dạng số thành kiểu tiền tệ\n\n```arcade\nText(1234.55, '$#,###.00') // '$1,234.55'\n```\n\nLàm tròn số đến hai vị trí thập phân\n\n```arcade\nText(1.236, '#.00') // '1.24'\n```\n\nGiữ các chữ số quan trọng và nhóm theo hàng nghìn\n\n```arcade\nText(1234.5678, '#,##0.00#') // '1,234.568'\n```\n\nĐịnh dạng số và định dạng số âm/dương - nếu mẫu phụ âm, nó chỉ dùng để xác định tiền tố và hậu tố âm\n\n```arcade\nText(-2, 'Floor #;Basement #') // 'Basement 2'\n```\n\n\n\n```arcade\nText(2, 'Floor #;Basement #') // 'Floor 2'\n```\n\nNhân với 100 và định dạng theo tỷ lệ phần trăm\n\n```arcade\nText(0.3, '#%') // '30%'\n```\n\nĐịnh dạng ngày và giờ tại một thời điểm, ví dụ 'Tuesday, October 25, 2016 @ 08:43:11'\n\n```arcade\nText(Now(), 'dddd, MMMM D, Y @ h:m:s')\n```\n\nNgày được lưu trữ trong trường `datetime` đại diện cho giờ địa phương, nhưng Arcade giả định đó là UTC. Bù trừ giờ địa phương với UTC để tránh áp dụng độ lệch múi giờ hai lần.\n\n```arcade\nText(
|
|
7200
|
+
"examples": "\n##### Ví dụ\n\nĐẩy số sang bên trái dấu thập phân\n\n```arcade\nText(123, '0000') // '0123'\n```\n\nGiới hạn số bên trái dấu thập phân\n\n```arcade\nText(123, '00') // '23'\n```\n\nNhóm số theo hàng nghìn\n\n```arcade\nText(1234, '#,###') // '1,234'\n```\n\nLàm tròn số đến hai vị trí thập phân\n\n```arcade\nText(12345678.123, '#,###.00') // '12,345,678.12'\n```\n\nĐịnh dạng số thành kiểu tiền tệ\n\n```arcade\nText(1234.55, '$#,###.00') // '$1,234.55'\n```\n\nLàm tròn số đến hai vị trí thập phân\n\n```arcade\nText(1.236, '#.00') // '1.24'\n```\n\nGiữ các chữ số quan trọng và nhóm theo hàng nghìn\n\n```arcade\nText(1234.5678, '#,##0.00#') // '1,234.568'\n```\n\nĐịnh dạng số và định dạng số âm/dương - nếu mẫu phụ âm, nó chỉ dùng để xác định tiền tố và hậu tố âm\n\n```arcade\nText(-2, 'Floor #;Basement #') // 'Basement 2'\n```\n\n\n\n```arcade\nText(2, 'Floor #;Basement #') // 'Floor 2'\n```\n\nNhân với 100 và định dạng theo tỷ lệ phần trăm\n\n```arcade\nText(0.3, '#%') // '30%'\n```\n\nĐịnh dạng ngày và giờ tại một thời điểm, ví dụ 'Tuesday, October 25, 2016 @ 08:43:11'\n\n```arcade\nText(Now(), 'dddd, MMMM D, Y @ h:m:s')\n```\n\nNgày được lưu trữ trong trường `datetime` đại diện cho giờ địa phương, nhưng Arcade giả định đó là UTC. Bù trừ giờ địa phương với UTC để tránh áp dụng độ lệch múi giờ hai lần.\n\n```arcade\nText(startDate, 'ddd, MMM D, Y h:mm:ss A ZZZZ')\n// returns Thu, Sep 14, 2023 10:04:49 AM PDT\n```\n\n",
|
|
6535
7201
|
"completion": {
|
|
6536
7202
|
"label": "Text",
|
|
6537
7203
|
"detail": "Text(value, format?) -> Text",
|