@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
|
@@ -149,29 +149,54 @@
|
|
|
149
149
|
"id": "date_functions",
|
|
150
150
|
"title": "Datos funkcijos",
|
|
151
151
|
"items": [
|
|
152
|
+
{
|
|
153
|
+
"type": "function",
|
|
154
|
+
"name": "changetimezone",
|
|
155
|
+
"bundle": "core",
|
|
156
|
+
"sinceVersion": "1.24",
|
|
157
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#changetimezone",
|
|
158
|
+
"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`.",
|
|
159
|
+
"examples": "\n##### Pavyzdžiai\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",
|
|
160
|
+
"completion": {
|
|
161
|
+
"label": "ChangeTimeZone",
|
|
162
|
+
"detail": "ChangeTimeZone(dateValue, newTimeZone) -> Date",
|
|
163
|
+
"insertText": "ChangeTimeZone(${1:dateValue_}, ${2:newTimeZone_})$0",
|
|
164
|
+
"insertTextMode": 2,
|
|
165
|
+
"insertTextFormat": 2,
|
|
166
|
+
"kind": 3,
|
|
167
|
+
"documentation": {
|
|
168
|
+
"kind": "markdown",
|
|
169
|
+
"value": "**[Nuo versijos 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**Parametrai**\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**Pateikiama reikšmė**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)"
|
|
170
|
+
}
|
|
171
|
+
},
|
|
172
|
+
"parametersInfo": {
|
|
173
|
+
"min": 2,
|
|
174
|
+
"max": 2
|
|
175
|
+
}
|
|
176
|
+
},
|
|
152
177
|
[
|
|
153
178
|
{
|
|
154
179
|
"type": "function",
|
|
155
180
|
"name": "date",
|
|
156
181
|
"bundle": "core",
|
|
157
182
|
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#date1",
|
|
158
|
-
"description": "
|
|
159
|
-
"examples": "\n##### Pavyzdžiai\n\
|
|
183
|
+
"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.",
|
|
184
|
+
"examples": "\n##### Pavyzdžiai\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",
|
|
160
185
|
"completion": {
|
|
161
186
|
"label": "Date",
|
|
162
|
-
"detail": "Date(year, month, day, hour?, minute?, second?, millisecond?) -> Date",
|
|
187
|
+
"detail": "Date(year, month, day, hour?, minute?, second?, millisecond?, timeZone?) -> Date",
|
|
163
188
|
"insertText": "Date(${1:year_}, ${2:month_}, ${3:day_})$0",
|
|
164
189
|
"insertTextMode": 2,
|
|
165
190
|
"insertTextFormat": 2,
|
|
166
191
|
"kind": 3,
|
|
167
192
|
"documentation": {
|
|
168
193
|
"kind": "markdown",
|
|
169
|
-
"value": "
|
|
194
|
+
"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**Parametrai**\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**Pateikiama reikšmė**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)"
|
|
170
195
|
}
|
|
171
196
|
},
|
|
172
197
|
"parametersInfo": {
|
|
173
198
|
"min": 3,
|
|
174
|
-
"max":
|
|
199
|
+
"max": 8
|
|
175
200
|
}
|
|
176
201
|
},
|
|
177
202
|
{
|
|
@@ -179,8 +204,8 @@
|
|
|
179
204
|
"name": "date",
|
|
180
205
|
"bundle": "core",
|
|
181
206
|
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#date2",
|
|
182
|
-
"description": "
|
|
183
|
-
"examples": "\n#####
|
|
207
|
+
"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.",
|
|
208
|
+
"examples": "\n##### Pavyzdžiai\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",
|
|
184
209
|
"completion": {
|
|
185
210
|
"label": "Date",
|
|
186
211
|
"detail": "Date(epoch?) -> Date",
|
|
@@ -190,7 +215,7 @@
|
|
|
190
215
|
"kind": 3,
|
|
191
216
|
"documentation": {
|
|
192
217
|
"kind": "markdown",
|
|
193
|
-
"value": "
|
|
218
|
+
"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**Parametras**\n\n- **epoch** (_Optional_): [Number](https://developers.arcgis.com/arcade/guide/types/#number) - The number of milliseconds since January 1, 1970 UTC.\n\n**Pateikiama reikšmė**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)"
|
|
194
219
|
}
|
|
195
220
|
},
|
|
196
221
|
"parametersInfo": {
|
|
@@ -203,8 +228,8 @@
|
|
|
203
228
|
"name": "date",
|
|
204
229
|
"bundle": "core",
|
|
205
230
|
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#date3",
|
|
206
|
-
"description": "
|
|
207
|
-
"examples": "\n#####
|
|
231
|
+
"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.",
|
|
232
|
+
"examples": "\n##### Pavyzdžiai\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",
|
|
208
233
|
"completion": {
|
|
209
234
|
"label": "Date",
|
|
210
235
|
"detail": "Date(timestamp?) -> Date",
|
|
@@ -214,70 +239,376 @@
|
|
|
214
239
|
"kind": 3,
|
|
215
240
|
"documentation": {
|
|
216
241
|
"kind": "markdown",
|
|
217
|
-
"value": "
|
|
242
|
+
"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**Parametras**\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**Pateikiama reikšmė**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)"
|
|
218
243
|
}
|
|
219
244
|
},
|
|
220
245
|
"parametersInfo": {
|
|
221
246
|
"min": 0,
|
|
222
247
|
"max": 1
|
|
223
248
|
}
|
|
249
|
+
},
|
|
250
|
+
{
|
|
251
|
+
"type": "function",
|
|
252
|
+
"name": "date",
|
|
253
|
+
"bundle": "core",
|
|
254
|
+
"sinceVersion": "1.24",
|
|
255
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#date4",
|
|
256
|
+
"description": "Creates a Date from a DateOnly value, with an optional Time and time zone value.",
|
|
257
|
+
"examples": "\n##### Pavyzdys\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",
|
|
258
|
+
"completion": {
|
|
259
|
+
"label": "Date",
|
|
260
|
+
"detail": "Date(dateOnlyValue, timeValue?, timeZone?) -> Date",
|
|
261
|
+
"insertText": "Date(${1:dateOnlyValue_})$0",
|
|
262
|
+
"insertTextMode": 2,
|
|
263
|
+
"insertTextFormat": 2,
|
|
264
|
+
"kind": 3,
|
|
265
|
+
"documentation": {
|
|
266
|
+
"kind": "markdown",
|
|
267
|
+
"value": "**[Nuo versijos 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**Parametrai**\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**Pateikiama reikšmė**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)"
|
|
268
|
+
}
|
|
269
|
+
},
|
|
270
|
+
"parametersInfo": {
|
|
271
|
+
"min": 1,
|
|
272
|
+
"max": 3
|
|
273
|
+
}
|
|
274
|
+
},
|
|
275
|
+
{
|
|
276
|
+
"type": "function",
|
|
277
|
+
"name": "date",
|
|
278
|
+
"bundle": "core",
|
|
279
|
+
"sinceVersion": "1.24",
|
|
280
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#date5",
|
|
281
|
+
"description": "Creates a copy of the given Date.",
|
|
282
|
+
"examples": "\n##### Pavyzdys\n\nCreates a copy of the current Date value\n\n```arcade\nvar copiedDate = Date(Now())\n```\n\n",
|
|
283
|
+
"completion": {
|
|
284
|
+
"label": "Date",
|
|
285
|
+
"detail": "Date(dateValue) -> Date",
|
|
286
|
+
"insertText": "Date(${1:dateValue_})$0",
|
|
287
|
+
"insertTextMode": 2,
|
|
288
|
+
"insertTextFormat": 2,
|
|
289
|
+
"kind": 3,
|
|
290
|
+
"documentation": {
|
|
291
|
+
"kind": "markdown",
|
|
292
|
+
"value": "**[Nuo versijos 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nCreates a copy of the given Date.\n\n**Parametras**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - The Date to copy.\n\n**Pateikiama reikšmė**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)"
|
|
293
|
+
}
|
|
294
|
+
},
|
|
295
|
+
"parametersInfo": {
|
|
296
|
+
"min": 1,
|
|
297
|
+
"max": 1
|
|
298
|
+
}
|
|
224
299
|
}
|
|
225
300
|
],
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
"
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
"
|
|
242
|
-
|
|
301
|
+
[
|
|
302
|
+
{
|
|
303
|
+
"type": "function",
|
|
304
|
+
"name": "dateadd",
|
|
305
|
+
"bundle": "core",
|
|
306
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#dateadd1",
|
|
307
|
+
"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.",
|
|
308
|
+
"examples": "\n##### Pavyzdys\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",
|
|
309
|
+
"completion": {
|
|
310
|
+
"label": "DateAdd",
|
|
311
|
+
"detail": "DateAdd(dateValue, addValue, units?) -> Date",
|
|
312
|
+
"insertText": "DateAdd(${1:dateValue_}, ${2:addValue_})$0",
|
|
313
|
+
"insertTextMode": 2,
|
|
314
|
+
"insertTextFormat": 2,
|
|
315
|
+
"kind": 3,
|
|
316
|
+
"documentation": {
|
|
317
|
+
"kind": "markdown",
|
|
318
|
+
"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**Parametrai**\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**Pateikiama reikšmė**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)"
|
|
319
|
+
}
|
|
320
|
+
},
|
|
321
|
+
"parametersInfo": {
|
|
322
|
+
"min": 2,
|
|
323
|
+
"max": 3
|
|
243
324
|
}
|
|
244
325
|
},
|
|
245
|
-
|
|
246
|
-
"
|
|
247
|
-
"
|
|
326
|
+
{
|
|
327
|
+
"type": "function",
|
|
328
|
+
"name": "dateadd",
|
|
329
|
+
"bundle": "core",
|
|
330
|
+
"sinceVersion": "1.24",
|
|
331
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#dateadd2",
|
|
332
|
+
"description": "Adds a specified amount of time in the given units to a DateOnly value and returns a new DateOnly value.",
|
|
333
|
+
"examples": "\n##### Pavyzdžiai\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",
|
|
334
|
+
"completion": {
|
|
335
|
+
"label": "DateAdd",
|
|
336
|
+
"detail": "DateAdd(dateOnlyValue, addValue, units?) -> DateOnly",
|
|
337
|
+
"insertText": "DateAdd(${1:dateOnlyValue_}, ${2:addValue_})$0",
|
|
338
|
+
"insertTextMode": 2,
|
|
339
|
+
"insertTextFormat": 2,
|
|
340
|
+
"kind": 3,
|
|
341
|
+
"documentation": {
|
|
342
|
+
"kind": "markdown",
|
|
343
|
+
"value": "**[Nuo versijos 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**Parametrai**\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**Pateikiama reikšmė**: DateOnly"
|
|
344
|
+
}
|
|
345
|
+
},
|
|
346
|
+
"parametersInfo": {
|
|
347
|
+
"min": 2,
|
|
348
|
+
"max": 3
|
|
349
|
+
}
|
|
350
|
+
},
|
|
351
|
+
{
|
|
352
|
+
"type": "function",
|
|
353
|
+
"name": "dateadd",
|
|
354
|
+
"bundle": "core",
|
|
355
|
+
"sinceVersion": "1.24",
|
|
356
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#dateadd3",
|
|
357
|
+
"description": "Adds a specified amount of time in the given units to a Time value and returns a new Time value.",
|
|
358
|
+
"examples": "\n##### Pavyzdžiai\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",
|
|
359
|
+
"completion": {
|
|
360
|
+
"label": "DateAdd",
|
|
361
|
+
"detail": "DateAdd(timeValue, addValue, units?) -> Time",
|
|
362
|
+
"insertText": "DateAdd(${1:timeValue_}, ${2:addValue_})$0",
|
|
363
|
+
"insertTextMode": 2,
|
|
364
|
+
"insertTextFormat": 2,
|
|
365
|
+
"kind": 3,
|
|
366
|
+
"documentation": {
|
|
367
|
+
"kind": "markdown",
|
|
368
|
+
"value": "**[Nuo versijos 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**Parametrai**\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**Pateikiama reikšmė**: Time"
|
|
369
|
+
}
|
|
370
|
+
},
|
|
371
|
+
"parametersInfo": {
|
|
372
|
+
"min": 2,
|
|
373
|
+
"max": 3
|
|
374
|
+
}
|
|
248
375
|
}
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
"
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
"
|
|
266
|
-
|
|
376
|
+
],
|
|
377
|
+
[
|
|
378
|
+
{
|
|
379
|
+
"type": "function",
|
|
380
|
+
"name": "datediff",
|
|
381
|
+
"bundle": "core",
|
|
382
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#datediff1",
|
|
383
|
+
"description": "Subtracts two Dates, and returns the difference in the specified units.",
|
|
384
|
+
"examples": "\n##### Pavyzdžiai\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",
|
|
385
|
+
"completion": {
|
|
386
|
+
"label": "DateDiff",
|
|
387
|
+
"detail": "DateDiff(date1, date2, units?, timeZone?) -> Number",
|
|
388
|
+
"insertText": "DateDiff(${1:date1_}, ${2:date2_})$0",
|
|
389
|
+
"insertTextMode": 2,
|
|
390
|
+
"insertTextFormat": 2,
|
|
391
|
+
"kind": 3,
|
|
392
|
+
"documentation": {
|
|
393
|
+
"kind": "markdown",
|
|
394
|
+
"value": "Subtracts two Dates, and returns the difference in the specified units.\n\n**Parametrai**\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**Pateikiama reikšmė**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
395
|
+
}
|
|
396
|
+
},
|
|
397
|
+
"parametersInfo": {
|
|
398
|
+
"min": 2,
|
|
399
|
+
"max": 4
|
|
267
400
|
}
|
|
268
401
|
},
|
|
269
|
-
|
|
270
|
-
"
|
|
271
|
-
"
|
|
402
|
+
{
|
|
403
|
+
"type": "function",
|
|
404
|
+
"name": "datediff",
|
|
405
|
+
"bundle": "core",
|
|
406
|
+
"sinceVersion": "1.24",
|
|
407
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#datediff2",
|
|
408
|
+
"description": "Subtracts two DateOnly values, and returns the difference in the specified units.",
|
|
409
|
+
"examples": "\n##### Pavyzdys\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",
|
|
410
|
+
"completion": {
|
|
411
|
+
"label": "DateDiff",
|
|
412
|
+
"detail": "DateDiff(dateOnly1, dateOnly2, units?) -> Number",
|
|
413
|
+
"insertText": "DateDiff(${1:dateOnly1_}, ${2:dateOnly2_})$0",
|
|
414
|
+
"insertTextMode": 2,
|
|
415
|
+
"insertTextFormat": 2,
|
|
416
|
+
"kind": 3,
|
|
417
|
+
"documentation": {
|
|
418
|
+
"kind": "markdown",
|
|
419
|
+
"value": "**[Nuo versijos 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**Parametrai**\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**Pateikiama reikšmė**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
420
|
+
}
|
|
421
|
+
},
|
|
422
|
+
"parametersInfo": {
|
|
423
|
+
"min": 2,
|
|
424
|
+
"max": 3
|
|
425
|
+
}
|
|
426
|
+
},
|
|
427
|
+
{
|
|
428
|
+
"type": "function",
|
|
429
|
+
"name": "datediff",
|
|
430
|
+
"bundle": "core",
|
|
431
|
+
"sinceVersion": "1.24",
|
|
432
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#datediff3",
|
|
433
|
+
"description": "Subtracts two Time values, and returns the difference in the specified units.",
|
|
434
|
+
"examples": "\n##### Pavyzdys\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",
|
|
435
|
+
"completion": {
|
|
436
|
+
"label": "DateDiff",
|
|
437
|
+
"detail": "DateDiff(time1, time2, units?) -> Number",
|
|
438
|
+
"insertText": "DateDiff(${1:time1_}, ${2:time2_})$0",
|
|
439
|
+
"insertTextMode": 2,
|
|
440
|
+
"insertTextFormat": 2,
|
|
441
|
+
"kind": 3,
|
|
442
|
+
"documentation": {
|
|
443
|
+
"kind": "markdown",
|
|
444
|
+
"value": "**[Nuo versijos 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**Parametrai**\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**Pateikiama reikšmė**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
445
|
+
}
|
|
446
|
+
},
|
|
447
|
+
"parametersInfo": {
|
|
448
|
+
"min": 2,
|
|
449
|
+
"max": 3
|
|
450
|
+
}
|
|
272
451
|
}
|
|
273
|
-
|
|
452
|
+
],
|
|
453
|
+
[
|
|
454
|
+
{
|
|
455
|
+
"type": "function",
|
|
456
|
+
"name": "dateonly",
|
|
457
|
+
"bundle": "core",
|
|
458
|
+
"sinceVersion": "1.24",
|
|
459
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#dateonly1",
|
|
460
|
+
"description": "Creates a DateOnly value based on the current date in the time zone of the profile's execution context.",
|
|
461
|
+
"examples": "\n##### Pavyzdys\n\nReturns the current DateOnly (no time)\n\n```arcade\nDateOnly()\n// returns the current date, i.e. 2023-09-12\n```\n\n",
|
|
462
|
+
"completion": {
|
|
463
|
+
"label": "DateOnly",
|
|
464
|
+
"detail": "DateOnly() -> DateOnly",
|
|
465
|
+
"insertText": "DateOnly($0)",
|
|
466
|
+
"insertTextMode": 2,
|
|
467
|
+
"insertTextFormat": 2,
|
|
468
|
+
"kind": 3,
|
|
469
|
+
"documentation": {
|
|
470
|
+
"kind": "markdown",
|
|
471
|
+
"value": "**[Nuo versijos 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**Pateikiama reikšmė**: DateOnly"
|
|
472
|
+
}
|
|
473
|
+
},
|
|
474
|
+
"parametersInfo": {
|
|
475
|
+
"min": 0,
|
|
476
|
+
"max": 0
|
|
477
|
+
}
|
|
478
|
+
},
|
|
479
|
+
{
|
|
480
|
+
"type": "function",
|
|
481
|
+
"name": "dateonly",
|
|
482
|
+
"bundle": "core",
|
|
483
|
+
"sinceVersion": "1.24",
|
|
484
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#dateonly2",
|
|
485
|
+
"description": "Creates a DateOnly value from a given date.",
|
|
486
|
+
"examples": "\n##### Pavyzdys\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",
|
|
487
|
+
"completion": {
|
|
488
|
+
"label": "DateOnly",
|
|
489
|
+
"detail": "DateOnly(dateValue) -> DateOnly",
|
|
490
|
+
"insertText": "DateOnly(${1:dateValue_})$0",
|
|
491
|
+
"insertTextMode": 2,
|
|
492
|
+
"insertTextFormat": 2,
|
|
493
|
+
"kind": 3,
|
|
494
|
+
"documentation": {
|
|
495
|
+
"kind": "markdown",
|
|
496
|
+
"value": "**[Nuo versijos 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nCreates a DateOnly value from a given date.\n\n**Parametras**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - The date from which to create the DateOnly value.\n\n**Pateikiama reikšmė**: DateOnly"
|
|
497
|
+
}
|
|
498
|
+
},
|
|
499
|
+
"parametersInfo": {
|
|
500
|
+
"min": 1,
|
|
501
|
+
"max": 1
|
|
502
|
+
}
|
|
503
|
+
},
|
|
504
|
+
{
|
|
505
|
+
"type": "function",
|
|
506
|
+
"name": "dateonly",
|
|
507
|
+
"bundle": "core",
|
|
508
|
+
"sinceVersion": "1.24",
|
|
509
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#dateonly3",
|
|
510
|
+
"description": "Creates a DateOnly date with the given Unix epoch number.",
|
|
511
|
+
"examples": "\n##### Pavyzdys\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",
|
|
512
|
+
"completion": {
|
|
513
|
+
"label": "DateOnly",
|
|
514
|
+
"detail": "DateOnly(epoch) -> DateOnly",
|
|
515
|
+
"insertText": "DateOnly(${1:epoch_})$0",
|
|
516
|
+
"insertTextMode": 2,
|
|
517
|
+
"insertTextFormat": 2,
|
|
518
|
+
"kind": 3,
|
|
519
|
+
"documentation": {
|
|
520
|
+
"kind": "markdown",
|
|
521
|
+
"value": "**[Nuo versijos 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nCreates a DateOnly date with the given Unix epoch number.\n\n**Parametras**\n\n- **epoch**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - The number of milliseconds since January 1, 1970 UTC.\n\n**Pateikiama reikšmė**: DateOnly"
|
|
522
|
+
}
|
|
523
|
+
},
|
|
524
|
+
"parametersInfo": {
|
|
525
|
+
"min": 1,
|
|
526
|
+
"max": 1
|
|
527
|
+
}
|
|
528
|
+
},
|
|
529
|
+
{
|
|
530
|
+
"type": "function",
|
|
531
|
+
"name": "dateonly",
|
|
532
|
+
"bundle": "core",
|
|
533
|
+
"sinceVersion": "1.24",
|
|
534
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#dateonly4",
|
|
535
|
+
"description": "Creates a DateOnly value from inputs representing the year, month, and day.",
|
|
536
|
+
"examples": "\n##### Pavyzdys\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",
|
|
537
|
+
"completion": {
|
|
538
|
+
"label": "DateOnly",
|
|
539
|
+
"detail": "DateOnly(year, month, day) -> DateOnly",
|
|
540
|
+
"insertText": "DateOnly(${1:year_}, ${2:month_}, ${3:day_})$0",
|
|
541
|
+
"insertTextMode": 2,
|
|
542
|
+
"insertTextFormat": 2,
|
|
543
|
+
"kind": 3,
|
|
544
|
+
"documentation": {
|
|
545
|
+
"kind": "markdown",
|
|
546
|
+
"value": "**[Nuo versijos 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**Parametrai**\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**Pateikiama reikšmė**: DateOnly"
|
|
547
|
+
}
|
|
548
|
+
},
|
|
549
|
+
"parametersInfo": {
|
|
550
|
+
"min": 3,
|
|
551
|
+
"max": 3
|
|
552
|
+
}
|
|
553
|
+
},
|
|
554
|
+
{
|
|
555
|
+
"type": "function",
|
|
556
|
+
"name": "dateonly",
|
|
557
|
+
"bundle": "core",
|
|
558
|
+
"sinceVersion": "1.24",
|
|
559
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#dateonly5",
|
|
560
|
+
"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.",
|
|
561
|
+
"examples": "\n##### Pavyzdžiai\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",
|
|
562
|
+
"completion": {
|
|
563
|
+
"label": "DateOnly",
|
|
564
|
+
"detail": "DateOnly(dateValue, format?) -> DateOnly",
|
|
565
|
+
"insertText": "DateOnly(${1:dateValue_})$0",
|
|
566
|
+
"insertTextMode": 2,
|
|
567
|
+
"insertTextFormat": 2,
|
|
568
|
+
"kind": 3,
|
|
569
|
+
"documentation": {
|
|
570
|
+
"kind": "markdown",
|
|
571
|
+
"value": "**[Nuo versijos 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**Parametrai**\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**Pateikiama reikšmė**: DateOnly"
|
|
572
|
+
}
|
|
573
|
+
},
|
|
574
|
+
"parametersInfo": {
|
|
575
|
+
"min": 1,
|
|
576
|
+
"max": 2
|
|
577
|
+
}
|
|
578
|
+
},
|
|
579
|
+
{
|
|
580
|
+
"type": "function",
|
|
581
|
+
"name": "dateonly",
|
|
582
|
+
"bundle": "core",
|
|
583
|
+
"sinceVersion": "1.24",
|
|
584
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#dateonly6",
|
|
585
|
+
"description": "Creates a copy of a DateOnly value.",
|
|
586
|
+
"examples": "\n##### Pavyzdys\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",
|
|
587
|
+
"completion": {
|
|
588
|
+
"label": "DateOnly",
|
|
589
|
+
"detail": "DateOnly(dateOnlyValue) -> DateOnly",
|
|
590
|
+
"insertText": "DateOnly(${1:dateOnlyValue_})$0",
|
|
591
|
+
"insertTextMode": 2,
|
|
592
|
+
"insertTextFormat": 2,
|
|
593
|
+
"kind": 3,
|
|
594
|
+
"documentation": {
|
|
595
|
+
"kind": "markdown",
|
|
596
|
+
"value": "**[Nuo versijos 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nCreates a copy of a DateOnly value.\n\n**Parametras**\n\n- **dateOnlyValue**: DateOnly - The DateOnly value to copy.\n\n**Pateikiama reikšmė**: DateOnly"
|
|
597
|
+
}
|
|
598
|
+
},
|
|
599
|
+
"parametersInfo": {
|
|
600
|
+
"min": 1,
|
|
601
|
+
"max": 1
|
|
602
|
+
}
|
|
603
|
+
}
|
|
604
|
+
],
|
|
274
605
|
{
|
|
275
606
|
"type": "function",
|
|
276
607
|
"name": "day",
|
|
277
608
|
"bundle": "core",
|
|
278
609
|
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#day",
|
|
279
610
|
"description": "Pateikia duotos datos mėnesio dieną.",
|
|
280
|
-
"examples": "\n#####
|
|
611
|
+
"examples": "\n##### Pavyzdžiai\n\nGaunama dabartinės datos mėnesio diena\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",
|
|
281
612
|
"completion": {
|
|
282
613
|
"label": "Day",
|
|
283
614
|
"detail": "Day(dateValue) -> Number",
|
|
@@ -287,7 +618,7 @@
|
|
|
287
618
|
"kind": 3,
|
|
288
619
|
"documentation": {
|
|
289
620
|
"kind": "markdown",
|
|
290
|
-
"value": "Pateikia duotos datos mėnesio dieną.\n\n**Parametras**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - Datos reikšmė, iš kurios gaunama mėnesio diena.\n\n**Pateikiama reikšmė**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
621
|
+
"value": "Pateikia duotos datos mėnesio dieną.\n\n**Parametras**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) \\| DateOnly - Datos reikšmė, iš kurios gaunama mėnesio diena.\n\n**Pateikiama reikšmė**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
291
622
|
}
|
|
292
623
|
},
|
|
293
624
|
"parametersInfo": {
|
|
@@ -295,30 +626,57 @@
|
|
|
295
626
|
"max": 1
|
|
296
627
|
}
|
|
297
628
|
},
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
"
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
"
|
|
314
|
-
|
|
629
|
+
[
|
|
630
|
+
{
|
|
631
|
+
"type": "function",
|
|
632
|
+
"name": "hour",
|
|
633
|
+
"bundle": "core",
|
|
634
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#hour1",
|
|
635
|
+
"description": "Returns the hour of the time in the given date (0-23).",
|
|
636
|
+
"examples": "\n##### Pavyzdys\n\nGets the hour of the current time\n\n```arcade\nHour(Now())\n```\n\n",
|
|
637
|
+
"completion": {
|
|
638
|
+
"label": "Hour",
|
|
639
|
+
"detail": "Hour(dateValue) -> Number",
|
|
640
|
+
"insertText": "Hour(${1:dateValue_})$0",
|
|
641
|
+
"insertTextMode": 2,
|
|
642
|
+
"insertTextFormat": 2,
|
|
643
|
+
"kind": 3,
|
|
644
|
+
"documentation": {
|
|
645
|
+
"kind": "markdown",
|
|
646
|
+
"value": "Returns the hour of the time in the given date (0-23).\n\n**Parametras**\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**Pateikiama reikšmė**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
647
|
+
}
|
|
648
|
+
},
|
|
649
|
+
"parametersInfo": {
|
|
650
|
+
"min": 1,
|
|
651
|
+
"max": 1
|
|
315
652
|
}
|
|
316
653
|
},
|
|
317
|
-
|
|
318
|
-
"
|
|
319
|
-
"
|
|
654
|
+
{
|
|
655
|
+
"type": "function",
|
|
656
|
+
"name": "hour",
|
|
657
|
+
"bundle": "core",
|
|
658
|
+
"sinceVersion": "1.24",
|
|
659
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#hour2",
|
|
660
|
+
"description": "Returns the hour of the given time (0-23).",
|
|
661
|
+
"examples": "\n##### Pavyzdys\n\nGets the hour of the time\n\n```arcade\nHour(Time(2, 59, 23))\n// returns 2\n```\n\n",
|
|
662
|
+
"completion": {
|
|
663
|
+
"label": "Hour",
|
|
664
|
+
"detail": "Hour(timeValue) -> Number",
|
|
665
|
+
"insertText": "Hour(${1:timeValue_})$0",
|
|
666
|
+
"insertTextMode": 2,
|
|
667
|
+
"insertTextFormat": 2,
|
|
668
|
+
"kind": 3,
|
|
669
|
+
"documentation": {
|
|
670
|
+
"kind": "markdown",
|
|
671
|
+
"value": "**[Nuo versijos 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nReturns the hour of the given time (0-23).\n\n**Parametras**\n\n- **timeValue**: Time - A Time value from which to get the hour.\n\n**Pateikiama reikšmė**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
672
|
+
}
|
|
673
|
+
},
|
|
674
|
+
"parametersInfo": {
|
|
675
|
+
"min": 1,
|
|
676
|
+
"max": 1
|
|
677
|
+
}
|
|
320
678
|
}
|
|
321
|
-
|
|
679
|
+
],
|
|
322
680
|
{
|
|
323
681
|
"type": "function",
|
|
324
682
|
"name": "isomonth",
|
|
@@ -326,7 +684,7 @@
|
|
|
326
684
|
"sinceVersion": "1.12",
|
|
327
685
|
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#isomonth",
|
|
328
686
|
"description": "Pateikiamas duotos datos mėnuo pagal ISO 8601 standartą. Reikšmių diapazonas 1–12, čia sausis yra 1, o gruodis 12.",
|
|
329
|
-
"examples": "\n#####
|
|
687
|
+
"examples": "\n##### Pavyzdžiai\n\nGaunamas duotos datos mėnuo pagal ISO 8601 standartą. Gruodžio mėnesiui pateikia 12.\n\n```arcade\nISOMonth(Date(1980, 11, 31))\n```\n\nGets the month of the given DateOnly value, based on the ISO 8601 standard.\n\n```arcade\nISOMonth(DateOnly(1996, 0, 10))\n// returns 1, for January\n```\n\n",
|
|
330
688
|
"completion": {
|
|
331
689
|
"label": "ISOMonth",
|
|
332
690
|
"detail": "ISOMonth(dateValue) -> Number",
|
|
@@ -336,7 +694,7 @@
|
|
|
336
694
|
"kind": 3,
|
|
337
695
|
"documentation": {
|
|
338
696
|
"kind": "markdown",
|
|
339
|
-
"value": "**[Nuo versijos 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nPateikiamas duotos datos mėnuo pagal ISO 8601 standartą. Reikšmių diapazonas 1–12, čia sausis yra 1, o gruodis 12.\n\n**Parametras**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - Datos reikšmė, iš kurios gaunamas mėnuo.\n\n**Pateikiama reikšmė**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
697
|
+
"value": "**[Nuo versijos 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nPateikiamas duotos datos mėnuo pagal ISO 8601 standartą. Reikšmių diapazonas 1–12, čia sausis yra 1, o gruodis 12.\n\n**Parametras**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) \\| DateOnly - Datos reikšmė, iš kurios gaunamas mėnuo.\n\n**Pateikiama reikšmė**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
340
698
|
}
|
|
341
699
|
},
|
|
342
700
|
"parametersInfo": {
|
|
@@ -351,7 +709,7 @@
|
|
|
351
709
|
"sinceVersion": "1.12",
|
|
352
710
|
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#isoweek",
|
|
353
711
|
"description": "Pateikiama duotos datos metų savaitė pagal ISO 8601 savaitės datos kalendorių. Reikšmių diapazonas 1–53, čia pirmoji metų savaitė yra 1, o paskutinė metų savaitė, priklausomai nuo metų, yra 52 arba 53.",
|
|
354
|
-
"examples": "\n#####
|
|
712
|
+
"examples": "\n##### Pavyzdžiai\n\nGaunamas duotos datos savaitė pagal ISO 8601 standartą. Pateikiama 1, nes ši data patenka į pirmąją tolesnių metų savaitę.\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",
|
|
355
713
|
"completion": {
|
|
356
714
|
"label": "ISOWeek",
|
|
357
715
|
"detail": "ISOWeek(dateValue) -> Number",
|
|
@@ -361,7 +719,7 @@
|
|
|
361
719
|
"kind": 3,
|
|
362
720
|
"documentation": {
|
|
363
721
|
"kind": "markdown",
|
|
364
|
-
"value": "**[Nuo versijos 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nPateikiama duotos datos metų savaitė pagal ISO 8601 savaitės datos kalendorių. Reikšmių diapazonas 1–53, čia pirmoji metų savaitė yra 1, o paskutinė metų savaitė, priklausomai nuo metų, yra 52 arba 53.\n\n**Parametras**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - Datos reikšmė, iš kurios gaunama savaitė.\n\n**Pateikiama reikšmė**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
722
|
+
"value": "**[Nuo versijos 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nPateikiama duotos datos metų savaitė pagal ISO 8601 savaitės datos kalendorių. Reikšmių diapazonas 1–53, čia pirmoji metų savaitė yra 1, o paskutinė metų savaitė, priklausomai nuo metų, yra 52 arba 53.\n\n**Parametras**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) \\| DateOnly - Datos reikšmė, iš kurios gaunama savaitė.\n\n**Pateikiama reikšmė**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
365
723
|
}
|
|
366
724
|
},
|
|
367
725
|
"parametersInfo": {
|
|
@@ -376,7 +734,7 @@
|
|
|
376
734
|
"sinceVersion": "1.12",
|
|
377
735
|
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#isoweekday",
|
|
378
736
|
"description": "Pateikiama duotos datos savaitės diena pagal ISO 8601 standartą. Reikšmių diapazonas 1–7, čia pirmadienis yra 1, o sekmadienis 7.",
|
|
379
|
-
"examples": "\n#####
|
|
737
|
+
"examples": "\n##### Pavyzdžiai\n\nPateikiama duotos datos savaitės diena pagal ISO 8601 standartą. Trečiadieniui pateikia 3.\n\n```arcade\nISOWeekday(Date(1980, 11, 31))\n```\n\nReturns the day of the week of the given DateOnly value, based on the ISO 8601 standard.\n\n```arcade\nISOWeekday(DateOnly(1996, 11, 10))\n// returns 2, for Tuesday\n```\n\n",
|
|
380
738
|
"completion": {
|
|
381
739
|
"label": "ISOWeekday",
|
|
382
740
|
"detail": "ISOWeekday(dateValue) -> Number",
|
|
@@ -386,7 +744,7 @@
|
|
|
386
744
|
"kind": 3,
|
|
387
745
|
"documentation": {
|
|
388
746
|
"kind": "markdown",
|
|
389
|
-
"value": "**[Nuo versijos 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nPateikiama duotos datos savaitės diena pagal ISO 8601 standartą. Reikšmių diapazonas 1–7, čia pirmadienis yra 1, o sekmadienis 7.\n\n**Parametras**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - Data, kurios savaitės dieną reikia nurodyti.\n\n**Pateikiama reikšmė**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
747
|
+
"value": "**[Nuo versijos 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nPateikiama duotos datos savaitės diena pagal ISO 8601 standartą. Reikšmių diapazonas 1–7, čia pirmadienis yra 1, o sekmadienis 7.\n\n**Parametras**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) \\| DateOnly - Data, kurios savaitės dieną reikia nurodyti.\n\n**Pateikiama reikšmė**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
390
748
|
}
|
|
391
749
|
},
|
|
392
750
|
"parametersInfo": {
|
|
@@ -401,65 +759,17 @@
|
|
|
401
759
|
"sinceVersion": "1.12",
|
|
402
760
|
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#isoyear",
|
|
403
761
|
"description": "Pateikiami duotos datos metai pagal ISO 8601 savaičių datų kalendorių.",
|
|
404
|
-
"examples": "\n#####
|
|
762
|
+
"examples": "\n##### Pavyzdžiai\n\nGaunami duotos datos metai pagal ISO 8601 savaitės datos kalendorių. Pateikiama 1981, nes ši data patenka į pirmąją tolesnių metų savaitę.\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",
|
|
405
763
|
"completion": {
|
|
406
764
|
"label": "ISOYear",
|
|
407
|
-
"detail": "ISOYear(dateValue) -> Number",
|
|
408
|
-
"insertText": "ISOYear(${1:dateValue_})$0",
|
|
409
|
-
"insertTextMode": 2,
|
|
410
|
-
"insertTextFormat": 2,
|
|
411
|
-
"kind": 3,
|
|
412
|
-
"documentation": {
|
|
413
|
-
"kind": "markdown",
|
|
414
|
-
"value": "**[Nuo versijos 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nPateikiami duotos datos metai pagal ISO 8601 savaičių datų kalendorių.\n\n**Parametras**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - Datos reikšmė, iš kurios gaunami metai.\n\n**Pateikiama reikšmė**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
415
|
-
}
|
|
416
|
-
},
|
|
417
|
-
"parametersInfo": {
|
|
418
|
-
"min": 1,
|
|
419
|
-
"max": 1
|
|
420
|
-
}
|
|
421
|
-
},
|
|
422
|
-
{
|
|
423
|
-
"type": "function",
|
|
424
|
-
"name": "millisecond",
|
|
425
|
-
"bundle": "core",
|
|
426
|
-
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#millisecond",
|
|
427
|
-
"description": "Pateikia datos laiko milisekundę.",
|
|
428
|
-
"examples": "\n##### Pavyzdys\n\nGaunama dabartinio laiko milisekundė\n\n```arcade\nMillisecond(Now())\n```\n\n",
|
|
429
|
-
"completion": {
|
|
430
|
-
"label": "Millisecond",
|
|
431
|
-
"detail": "Millisecond(dateValue) -> Number",
|
|
432
|
-
"insertText": "Millisecond(${1:dateValue_})$0",
|
|
433
|
-
"insertTextMode": 2,
|
|
434
|
-
"insertTextFormat": 2,
|
|
435
|
-
"kind": 3,
|
|
436
|
-
"documentation": {
|
|
437
|
-
"kind": "markdown",
|
|
438
|
-
"value": "Pateikia datos laiko milisekundę.\n\n**Parametras**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - Datos reikšmė, iš kurios gaunama laiko milisekundė.\n\n**Pateikiama reikšmė**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
439
|
-
}
|
|
440
|
-
},
|
|
441
|
-
"parametersInfo": {
|
|
442
|
-
"min": 1,
|
|
443
|
-
"max": 1
|
|
444
|
-
}
|
|
445
|
-
},
|
|
446
|
-
{
|
|
447
|
-
"type": "function",
|
|
448
|
-
"name": "minute",
|
|
449
|
-
"bundle": "core",
|
|
450
|
-
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#minute",
|
|
451
|
-
"description": "Pateikia duotos datos laiko minutę.",
|
|
452
|
-
"examples": "\n##### Pavyzdys\n\nGaunama dabartinio laiko minutė\n\n```arcade\nMinute(Now())\n```\n\n",
|
|
453
|
-
"completion": {
|
|
454
|
-
"label": "Minute",
|
|
455
|
-
"detail": "Minute(dateValue) -> Number",
|
|
456
|
-
"insertText": "Minute(${1:dateValue_})$0",
|
|
765
|
+
"detail": "ISOYear(dateValue) -> Number",
|
|
766
|
+
"insertText": "ISOYear(${1:dateValue_})$0",
|
|
457
767
|
"insertTextMode": 2,
|
|
458
768
|
"insertTextFormat": 2,
|
|
459
769
|
"kind": 3,
|
|
460
770
|
"documentation": {
|
|
461
771
|
"kind": "markdown",
|
|
462
|
-
"value": "
|
|
772
|
+
"value": "**[Nuo versijos 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nPateikiami duotos datos metai pagal ISO 8601 savaičių datų kalendorių.\n\n**Parametras**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) \\| DateOnly - Datos reikšmė, iš kurios gaunami metai.\n\n**Pateikiama reikšmė**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
463
773
|
}
|
|
464
774
|
},
|
|
465
775
|
"parametersInfo": {
|
|
@@ -467,13 +777,115 @@
|
|
|
467
777
|
"max": 1
|
|
468
778
|
}
|
|
469
779
|
},
|
|
780
|
+
[
|
|
781
|
+
{
|
|
782
|
+
"type": "function",
|
|
783
|
+
"name": "millisecond",
|
|
784
|
+
"bundle": "core",
|
|
785
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#millisecond1",
|
|
786
|
+
"description": "Returns the millisecond of the time in the date.",
|
|
787
|
+
"examples": "\n##### Pavyzdys\n\nGets the millisecond of the current time\n\n```arcade\nMillisecond(Now())\n```\n\n",
|
|
788
|
+
"completion": {
|
|
789
|
+
"label": "Millisecond",
|
|
790
|
+
"detail": "Millisecond(dateValue) -> Number",
|
|
791
|
+
"insertText": "Millisecond(${1:dateValue_})$0",
|
|
792
|
+
"insertTextMode": 2,
|
|
793
|
+
"insertTextFormat": 2,
|
|
794
|
+
"kind": 3,
|
|
795
|
+
"documentation": {
|
|
796
|
+
"kind": "markdown",
|
|
797
|
+
"value": "Returns the millisecond of the time in the date.\n\n**Parametras**\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**Pateikiama reikšmė**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
798
|
+
}
|
|
799
|
+
},
|
|
800
|
+
"parametersInfo": {
|
|
801
|
+
"min": 1,
|
|
802
|
+
"max": 1
|
|
803
|
+
}
|
|
804
|
+
},
|
|
805
|
+
{
|
|
806
|
+
"type": "function",
|
|
807
|
+
"name": "millisecond",
|
|
808
|
+
"bundle": "core",
|
|
809
|
+
"sinceVersion": "1.24",
|
|
810
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#millisecond2",
|
|
811
|
+
"description": "Returns the millisecond of the given time.",
|
|
812
|
+
"examples": "\n##### Pavyzdys\n\nGets the millisecond of the time\n\n```arcade\nHour(Time(2, 59, 23, 450))\n// returns 450\n```\n\n",
|
|
813
|
+
"completion": {
|
|
814
|
+
"label": "Millisecond",
|
|
815
|
+
"detail": "Millisecond(timeValue) -> Number",
|
|
816
|
+
"insertText": "Millisecond(${1:timeValue_})$0",
|
|
817
|
+
"insertTextMode": 2,
|
|
818
|
+
"insertTextFormat": 2,
|
|
819
|
+
"kind": 3,
|
|
820
|
+
"documentation": {
|
|
821
|
+
"kind": "markdown",
|
|
822
|
+
"value": "**[Nuo versijos 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nReturns the millisecond of the given time.\n\n**Parametras**\n\n- **timeValue**: Time - A Time value from which to get the millisecond.\n\n**Pateikiama reikšmė**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
823
|
+
}
|
|
824
|
+
},
|
|
825
|
+
"parametersInfo": {
|
|
826
|
+
"min": 1,
|
|
827
|
+
"max": 1
|
|
828
|
+
}
|
|
829
|
+
}
|
|
830
|
+
],
|
|
831
|
+
[
|
|
832
|
+
{
|
|
833
|
+
"type": "function",
|
|
834
|
+
"name": "minute",
|
|
835
|
+
"bundle": "core",
|
|
836
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#minute1",
|
|
837
|
+
"description": "Returns the minute of the time in the given date.",
|
|
838
|
+
"examples": "\n##### Pavyzdys\n\nGets the minute of the current time\n\n```arcade\nMinute(Now())\n```\n\n",
|
|
839
|
+
"completion": {
|
|
840
|
+
"label": "Minute",
|
|
841
|
+
"detail": "Minute(dateValue) -> Number",
|
|
842
|
+
"insertText": "Minute(${1:dateValue_})$0",
|
|
843
|
+
"insertTextMode": 2,
|
|
844
|
+
"insertTextFormat": 2,
|
|
845
|
+
"kind": 3,
|
|
846
|
+
"documentation": {
|
|
847
|
+
"kind": "markdown",
|
|
848
|
+
"value": "Returns the minute of the time in the given date.\n\n**Parametras**\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**Pateikiama reikšmė**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
849
|
+
}
|
|
850
|
+
},
|
|
851
|
+
"parametersInfo": {
|
|
852
|
+
"min": 1,
|
|
853
|
+
"max": 1
|
|
854
|
+
}
|
|
855
|
+
},
|
|
856
|
+
{
|
|
857
|
+
"type": "function",
|
|
858
|
+
"name": "minute",
|
|
859
|
+
"bundle": "core",
|
|
860
|
+
"sinceVersion": "1.24",
|
|
861
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#minute2",
|
|
862
|
+
"description": "Returns the minute of the given time.",
|
|
863
|
+
"examples": "\n##### Pavyzdys\n\nGets the minute of the time\n\n```arcade\nHour(Time(2, 59, 23))\n// returns 59\n```\n\n",
|
|
864
|
+
"completion": {
|
|
865
|
+
"label": "Minute",
|
|
866
|
+
"detail": "Minute(timeValue) -> Number",
|
|
867
|
+
"insertText": "Minute(${1:timeValue_})$0",
|
|
868
|
+
"insertTextMode": 2,
|
|
869
|
+
"insertTextFormat": 2,
|
|
870
|
+
"kind": 3,
|
|
871
|
+
"documentation": {
|
|
872
|
+
"kind": "markdown",
|
|
873
|
+
"value": "**[Nuo versijos 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nReturns the minute of the given time.\n\n**Parametras**\n\n- **timeValue**: Time - A Time value from which to get the minute.\n\n**Pateikiama reikšmė**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
874
|
+
}
|
|
875
|
+
},
|
|
876
|
+
"parametersInfo": {
|
|
877
|
+
"min": 1,
|
|
878
|
+
"max": 1
|
|
879
|
+
}
|
|
880
|
+
}
|
|
881
|
+
],
|
|
470
882
|
{
|
|
471
883
|
"type": "function",
|
|
472
884
|
"name": "month",
|
|
473
885
|
"bundle": "core",
|
|
474
886
|
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#month",
|
|
475
887
|
"description": "Gaunamas duotos datos mėnuo. Reikšmių diapazonas 0–11, čia sausis yra 0, o gruodis 11.",
|
|
476
|
-
"examples": "\n#####
|
|
888
|
+
"examples": "\n##### Pavyzdžiai\n\nGaunamas duotos datos mėnuo. Gruodžio mėnesiui pateikia 11.\n\n```arcade\nMonth(Date(1980, 11, 31))\n// returns 11\n```\n\nGets the month of the given DateOnly value.\n\n```arcade\nMonth(DateOnly(1996, 0, 31))\n// returns 0, for the month of January\n```\n\n",
|
|
477
889
|
"completion": {
|
|
478
890
|
"label": "Month",
|
|
479
891
|
"detail": "Month(dateValue) -> Number",
|
|
@@ -483,7 +895,7 @@
|
|
|
483
895
|
"kind": 3,
|
|
484
896
|
"documentation": {
|
|
485
897
|
"kind": "markdown",
|
|
486
|
-
"value": "Gaunamas duotos datos mėnuo. Reikšmių diapazonas 0–11, čia sausis yra 0, o gruodis 11.\n\n**Parametras**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - Datos reikšmė, iš kurios gaunamas mėnuo.\n\n**Pateikiama reikšmė**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
898
|
+
"value": "Gaunamas duotos datos mėnuo. Reikšmių diapazonas 0–11, čia sausis yra 0, o gruodis 11.\n\n**Parametras**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) \\| DateOnly - Datos reikšmė, iš kurios gaunamas mėnuo.\n\n**Pateikiama reikšmė**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
487
899
|
}
|
|
488
900
|
},
|
|
489
901
|
"parametersInfo": {
|
|
@@ -515,23 +927,227 @@
|
|
|
515
927
|
"max": 0
|
|
516
928
|
}
|
|
517
929
|
},
|
|
930
|
+
[
|
|
931
|
+
{
|
|
932
|
+
"type": "function",
|
|
933
|
+
"name": "second",
|
|
934
|
+
"bundle": "core",
|
|
935
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#second1",
|
|
936
|
+
"description": "Returns the second of the time in the date.",
|
|
937
|
+
"examples": "\n##### Pavyzdys\n\nGets the second of the current time\n\n```arcade\nSecond(Now())\n```\n\n",
|
|
938
|
+
"completion": {
|
|
939
|
+
"label": "Second",
|
|
940
|
+
"detail": "Second(dateValue) -> Number",
|
|
941
|
+
"insertText": "Second(${1:dateValue_})$0",
|
|
942
|
+
"insertTextMode": 2,
|
|
943
|
+
"insertTextFormat": 2,
|
|
944
|
+
"kind": 3,
|
|
945
|
+
"documentation": {
|
|
946
|
+
"kind": "markdown",
|
|
947
|
+
"value": "Returns the second of the time in the date.\n\n**Parametras**\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**Pateikiama reikšmė**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
948
|
+
}
|
|
949
|
+
},
|
|
950
|
+
"parametersInfo": {
|
|
951
|
+
"min": 1,
|
|
952
|
+
"max": 1
|
|
953
|
+
}
|
|
954
|
+
},
|
|
955
|
+
{
|
|
956
|
+
"type": "function",
|
|
957
|
+
"name": "second",
|
|
958
|
+
"bundle": "core",
|
|
959
|
+
"sinceVersion": "1.24",
|
|
960
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#second2",
|
|
961
|
+
"description": "Returns the second of the given time.",
|
|
962
|
+
"examples": "\n##### Pavyzdys\n\nGets the second of the time\n\n```arcade\nHour(Time(2, 59, 23))\n// returns 23\n```\n\n",
|
|
963
|
+
"completion": {
|
|
964
|
+
"label": "Second",
|
|
965
|
+
"detail": "Second(timeValue) -> Number",
|
|
966
|
+
"insertText": "Second(${1:timeValue_})$0",
|
|
967
|
+
"insertTextMode": 2,
|
|
968
|
+
"insertTextFormat": 2,
|
|
969
|
+
"kind": 3,
|
|
970
|
+
"documentation": {
|
|
971
|
+
"kind": "markdown",
|
|
972
|
+
"value": "**[Nuo versijos 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nReturns the second of the given time.\n\n**Parametras**\n\n- **timeValue**: Time - A Time value from which to get the second.\n\n**Pateikiama reikšmė**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
973
|
+
}
|
|
974
|
+
},
|
|
975
|
+
"parametersInfo": {
|
|
976
|
+
"min": 1,
|
|
977
|
+
"max": 1
|
|
978
|
+
}
|
|
979
|
+
}
|
|
980
|
+
],
|
|
981
|
+
[
|
|
982
|
+
{
|
|
983
|
+
"type": "function",
|
|
984
|
+
"name": "time",
|
|
985
|
+
"bundle": "core",
|
|
986
|
+
"sinceVersion": "1.24",
|
|
987
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#time1",
|
|
988
|
+
"description": "Creates a Time value representing the current time in the time zone of the profile's execution context.",
|
|
989
|
+
"examples": "\n##### Pavyzdys\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",
|
|
990
|
+
"completion": {
|
|
991
|
+
"label": "Time",
|
|
992
|
+
"detail": "Time() -> Time",
|
|
993
|
+
"insertText": "Time($0)",
|
|
994
|
+
"insertTextMode": 2,
|
|
995
|
+
"insertTextFormat": 2,
|
|
996
|
+
"kind": 3,
|
|
997
|
+
"documentation": {
|
|
998
|
+
"kind": "markdown",
|
|
999
|
+
"value": "**[Nuo versijos 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**Pateikiama reikšmė**: Time"
|
|
1000
|
+
}
|
|
1001
|
+
},
|
|
1002
|
+
"parametersInfo": {
|
|
1003
|
+
"min": 0,
|
|
1004
|
+
"max": 0
|
|
1005
|
+
}
|
|
1006
|
+
},
|
|
1007
|
+
{
|
|
1008
|
+
"type": "function",
|
|
1009
|
+
"name": "time",
|
|
1010
|
+
"bundle": "core",
|
|
1011
|
+
"sinceVersion": "1.24",
|
|
1012
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#time2",
|
|
1013
|
+
"description": "Creates a Time value from a given date.",
|
|
1014
|
+
"examples": "\n##### Pavyzdys\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",
|
|
1015
|
+
"completion": {
|
|
1016
|
+
"label": "Time",
|
|
1017
|
+
"detail": "Time(dateValue) -> Time",
|
|
1018
|
+
"insertText": "Time(${1:dateValue_})$0",
|
|
1019
|
+
"insertTextMode": 2,
|
|
1020
|
+
"insertTextFormat": 2,
|
|
1021
|
+
"kind": 3,
|
|
1022
|
+
"documentation": {
|
|
1023
|
+
"kind": "markdown",
|
|
1024
|
+
"value": "**[Nuo versijos 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nCreates a Time value from a given date.\n\n**Parametras**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - The date from which to get the time.\n\n**Pateikiama reikšmė**: Time"
|
|
1025
|
+
}
|
|
1026
|
+
},
|
|
1027
|
+
"parametersInfo": {
|
|
1028
|
+
"min": 1,
|
|
1029
|
+
"max": 1
|
|
1030
|
+
}
|
|
1031
|
+
},
|
|
1032
|
+
{
|
|
1033
|
+
"type": "function",
|
|
1034
|
+
"name": "time",
|
|
1035
|
+
"bundle": "core",
|
|
1036
|
+
"sinceVersion": "1.24",
|
|
1037
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#time3",
|
|
1038
|
+
"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`.",
|
|
1039
|
+
"examples": "\n##### Pavyzdžiai\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",
|
|
1040
|
+
"completion": {
|
|
1041
|
+
"label": "Time",
|
|
1042
|
+
"detail": "Time(numValue) -> Time",
|
|
1043
|
+
"insertText": "Time(${1:numValue_})$0",
|
|
1044
|
+
"insertTextMode": 2,
|
|
1045
|
+
"insertTextFormat": 2,
|
|
1046
|
+
"kind": 3,
|
|
1047
|
+
"documentation": {
|
|
1048
|
+
"kind": "markdown",
|
|
1049
|
+
"value": "**[Nuo versijos 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**Parametras**\n\n- **numValue**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - The number of milliseconds since midnight.\n\n**Pateikiama reikšmė**: Time"
|
|
1050
|
+
}
|
|
1051
|
+
},
|
|
1052
|
+
"parametersInfo": {
|
|
1053
|
+
"min": 1,
|
|
1054
|
+
"max": 1
|
|
1055
|
+
}
|
|
1056
|
+
},
|
|
1057
|
+
{
|
|
1058
|
+
"type": "function",
|
|
1059
|
+
"name": "time",
|
|
1060
|
+
"bundle": "core",
|
|
1061
|
+
"sinceVersion": "1.24",
|
|
1062
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#time4",
|
|
1063
|
+
"description": "Creates a Time value from inputs representing hours, minutes, seconds, and milliseconds.",
|
|
1064
|
+
"examples": "\n##### Pavyzdys\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",
|
|
1065
|
+
"completion": {
|
|
1066
|
+
"label": "Time",
|
|
1067
|
+
"detail": "Time(hours, minutes, seconds?, milliseconds?) -> Time",
|
|
1068
|
+
"insertText": "Time(${1:hours_}, ${2:minutes_})$0",
|
|
1069
|
+
"insertTextMode": 2,
|
|
1070
|
+
"insertTextFormat": 2,
|
|
1071
|
+
"kind": 3,
|
|
1072
|
+
"documentation": {
|
|
1073
|
+
"kind": "markdown",
|
|
1074
|
+
"value": "**[Nuo versijos 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**Parametrai**\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**Pateikiama reikšmė**: Time"
|
|
1075
|
+
}
|
|
1076
|
+
},
|
|
1077
|
+
"parametersInfo": {
|
|
1078
|
+
"min": 2,
|
|
1079
|
+
"max": 4
|
|
1080
|
+
}
|
|
1081
|
+
},
|
|
1082
|
+
{
|
|
1083
|
+
"type": "function",
|
|
1084
|
+
"name": "time",
|
|
1085
|
+
"bundle": "core",
|
|
1086
|
+
"sinceVersion": "1.24",
|
|
1087
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#time5",
|
|
1088
|
+
"description": "Creates a Time value from a text input representing time, with an optional input indicating the text's format.",
|
|
1089
|
+
"examples": "\n##### Pavyzdžiai\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",
|
|
1090
|
+
"completion": {
|
|
1091
|
+
"label": "Time",
|
|
1092
|
+
"detail": "Time(timeValue, format?) -> Time",
|
|
1093
|
+
"insertText": "Time(${1:timeValue_})$0",
|
|
1094
|
+
"insertTextMode": 2,
|
|
1095
|
+
"insertTextFormat": 2,
|
|
1096
|
+
"kind": 3,
|
|
1097
|
+
"documentation": {
|
|
1098
|
+
"kind": "markdown",
|
|
1099
|
+
"value": "**[Nuo versijos 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**Parametrai**\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**Pateikiama reikšmė**: Time"
|
|
1100
|
+
}
|
|
1101
|
+
},
|
|
1102
|
+
"parametersInfo": {
|
|
1103
|
+
"min": 1,
|
|
1104
|
+
"max": 2
|
|
1105
|
+
}
|
|
1106
|
+
}
|
|
1107
|
+
],
|
|
1108
|
+
{
|
|
1109
|
+
"type": "function",
|
|
1110
|
+
"name": "timestamp",
|
|
1111
|
+
"bundle": "core",
|
|
1112
|
+
"sinceVersion": "1.1",
|
|
1113
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#timestamp",
|
|
1114
|
+
"description": "Sukuria datos reikšmę, atitinkančią dabartinę datą ir laiką UTC laiku.",
|
|
1115
|
+
"examples": "\n##### Pavyzdys\n\nKurti datą UTC laiku\n\n```arcade\n// Date that represents Jan 27, 2023, 8:41:20 PM UTC\nTimestamp()\n```\n\n",
|
|
1116
|
+
"completion": {
|
|
1117
|
+
"label": "Timestamp",
|
|
1118
|
+
"detail": "Timestamp() -> Date",
|
|
1119
|
+
"insertText": "Timestamp($0)",
|
|
1120
|
+
"insertTextMode": 2,
|
|
1121
|
+
"insertTextFormat": 2,
|
|
1122
|
+
"kind": 3,
|
|
1123
|
+
"documentation": {
|
|
1124
|
+
"kind": "markdown",
|
|
1125
|
+
"value": "**[Nuo versijos 1.1](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nSukuria datos reikšmę, atitinkančią dabartinę datą ir laiką UTC laiku.\n\n**Pateikiama reikšmė**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)"
|
|
1126
|
+
}
|
|
1127
|
+
},
|
|
1128
|
+
"parametersInfo": {
|
|
1129
|
+
"min": 0,
|
|
1130
|
+
"max": 0
|
|
1131
|
+
}
|
|
1132
|
+
},
|
|
518
1133
|
{
|
|
519
1134
|
"type": "function",
|
|
520
|
-
"name": "
|
|
1135
|
+
"name": "timezone",
|
|
521
1136
|
"bundle": "core",
|
|
522
|
-
"
|
|
523
|
-
"
|
|
524
|
-
"
|
|
1137
|
+
"sinceVersion": "1.24",
|
|
1138
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#timezone",
|
|
1139
|
+
"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",
|
|
1140
|
+
"examples": "\n##### Pavyzdys\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",
|
|
525
1141
|
"completion": {
|
|
526
|
-
"label": "
|
|
527
|
-
"detail": "
|
|
528
|
-
"insertText": "
|
|
1142
|
+
"label": "TimeZone",
|
|
1143
|
+
"detail": "TimeZone(dateValue) -> Text",
|
|
1144
|
+
"insertText": "TimeZone(${1:dateValue_})$0",
|
|
529
1145
|
"insertTextMode": 2,
|
|
530
1146
|
"insertTextFormat": 2,
|
|
531
1147
|
"kind": 3,
|
|
532
1148
|
"documentation": {
|
|
533
1149
|
"kind": "markdown",
|
|
534
|
-
"value": "
|
|
1150
|
+
"value": "**[Nuo versijos 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**Parametras**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - A Date value from which to get the time zone.\n\n**Pateikiama reikšmė**: [Text](https://developers.arcgis.com/arcade/guide/types/#text)"
|
|
535
1151
|
}
|
|
536
1152
|
},
|
|
537
1153
|
"parametersInfo": {
|
|
@@ -541,27 +1157,27 @@
|
|
|
541
1157
|
},
|
|
542
1158
|
{
|
|
543
1159
|
"type": "function",
|
|
544
|
-
"name": "
|
|
1160
|
+
"name": "timezoneoffset",
|
|
545
1161
|
"bundle": "core",
|
|
546
|
-
"sinceVersion": "1.
|
|
547
|
-
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#
|
|
548
|
-
"description": "
|
|
549
|
-
"examples": "\n##### Pavyzdys\n\
|
|
1162
|
+
"sinceVersion": "1.24",
|
|
1163
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#timezoneoffset",
|
|
1164
|
+
"description": "Returns the time zone offset in minutes from UTC for the given Date.",
|
|
1165
|
+
"examples": "\n##### Pavyzdys\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",
|
|
550
1166
|
"completion": {
|
|
551
|
-
"label": "
|
|
552
|
-
"detail": "
|
|
553
|
-
"insertText": "
|
|
1167
|
+
"label": "TimeZoneOffset",
|
|
1168
|
+
"detail": "TimeZoneOffset(dateValue) -> Number",
|
|
1169
|
+
"insertText": "TimeZoneOffset(${1:dateValue_})$0",
|
|
554
1170
|
"insertTextMode": 2,
|
|
555
1171
|
"insertTextFormat": 2,
|
|
556
1172
|
"kind": 3,
|
|
557
1173
|
"documentation": {
|
|
558
1174
|
"kind": "markdown",
|
|
559
|
-
"value": "**[Nuo versijos 1.
|
|
1175
|
+
"value": "**[Nuo versijos 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**Parametras**\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**Pateikiama reikšmė**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
560
1176
|
}
|
|
561
1177
|
},
|
|
562
1178
|
"parametersInfo": {
|
|
563
|
-
"min":
|
|
564
|
-
"max":
|
|
1179
|
+
"min": 1,
|
|
1180
|
+
"max": 1
|
|
565
1181
|
}
|
|
566
1182
|
},
|
|
567
1183
|
{
|
|
@@ -645,7 +1261,7 @@
|
|
|
645
1261
|
"sinceVersion": "1.14",
|
|
646
1262
|
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#week",
|
|
647
1263
|
"description": "Pateikia nurodytos datos metų savaitės numerį. Reikšmių intervalas 0–53, čia pirmoji metų savaitė yra 0, o paskutinė metų savaitė, priklausomai nuo metų, yra 51, 52 arba 53. Pirmoji ir paskutinioji savaitės gali būti trumpesnės nei septynių dienų.",
|
|
648
|
-
"examples": "\n##### Pavyzdžiai\n\nNaudoti numatytąją savaitės pradžią (sekmadienis)\n\n```arcade\nWeek( Date(1974,0,3) )\n// Returns 0\n```\n\nNustatyti savaitės pradžią kaip ketvirtadienį\n\n```arcade\nWeek( Date(1974,0,3), 4 )\n// Returns 1\n```\n\nNustatyti savaitės pradžią kaip penktadienį\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",
|
|
1264
|
+
"examples": "\n##### Pavyzdžiai\n\nNaudoti numatytąją savaitės pradžią (sekmadienis)\n\n```arcade\nWeek( Date(1974,0,3) )\n// Returns 0\n```\n\nNustatyti savaitės pradžią kaip ketvirtadienį\n\n```arcade\nWeek( Date(1974,0,3), 4 )\n// Returns 1\n```\n\nNustatyti savaitės pradžią kaip penktadienį\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",
|
|
649
1265
|
"completion": {
|
|
650
1266
|
"label": "Week",
|
|
651
1267
|
"detail": "Week(dateValue, startDay?) -> Number",
|
|
@@ -655,7 +1271,7 @@
|
|
|
655
1271
|
"kind": 3,
|
|
656
1272
|
"documentation": {
|
|
657
1273
|
"kind": "markdown",
|
|
658
|
-
"value": "**[Nuo versijos 1.14](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nPateikia nurodytos datos metų savaitės numerį. Reikšmių intervalas 0–53, čia pirmoji metų savaitė yra 0, o paskutinė metų savaitė, priklausomai nuo metų, yra 51, 52 arba 53. Pirmoji ir paskutinioji savaitės gali būti trumpesnės nei septynių dienų.\n\n**Parametrai**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - Datos reikšmė, iš kurios gaunama savaitė.\n- **startDay** (_Optional_): [Number](https://developers.arcgis.com/arcade/guide/types/#number) - Pirmąją savaitės dieną nurodantis skaičius. Sekmadienis = 0; pirmadienis = 1; antradienis = 2; trečiadienis = 3; ketvirtadienis = 4; penktadienis = 5; šeštadienis = 6. Numatytoji reikšmė yra 0 (sekmadienis)\n\n**Pateikiama reikšmė**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
1274
|
+
"value": "**[Nuo versijos 1.14](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nPateikia nurodytos datos metų savaitės numerį. Reikšmių intervalas 0–53, čia pirmoji metų savaitė yra 0, o paskutinė metų savaitė, priklausomai nuo metų, yra 51, 52 arba 53. Pirmoji ir paskutinioji savaitės gali būti trumpesnės nei septynių dienų.\n\n**Parametrai**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) \\| DateOnly - Datos reikšmė, iš kurios gaunama savaitė.\n- **startDay** (_Optional_): [Number](https://developers.arcgis.com/arcade/guide/types/#number) - Pirmąją savaitės dieną nurodantis skaičius. Sekmadienis = 0; pirmadienis = 1; antradienis = 2; trečiadienis = 3; ketvirtadienis = 4; penktadienis = 5; šeštadienis = 6. Numatytoji reikšmė yra 0 (sekmadienis)\n\n**Pateikiama reikšmė**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
659
1275
|
}
|
|
660
1276
|
},
|
|
661
1277
|
"parametersInfo": {
|
|
@@ -669,7 +1285,7 @@
|
|
|
669
1285
|
"bundle": "core",
|
|
670
1286
|
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#weekday",
|
|
671
1287
|
"description": "Pateikiama duotos datos savaitės diena. Reikšmių diapazonas 0–6, čia pirmadienis yra 0, o sekmadienis 6.",
|
|
672
|
-
"examples": "\n#####
|
|
1288
|
+
"examples": "\n##### Pavyzdžiai\n\nPateikiama duotos datos savaitės diena. Trečiadieniui pateikia 3.\n\n```arcade\nWeekday(Date(1980, 11, 31))\n```\n\nReturns the day of the week of the given DateOnly value.\n\n```arcade\nWeekday(DateOnly(1996, 11, 10))\n// returns 2, for Tuesday\n```\n\n",
|
|
673
1289
|
"completion": {
|
|
674
1290
|
"label": "Weekday",
|
|
675
1291
|
"detail": "Weekday(dateValue) -> Number",
|
|
@@ -679,7 +1295,7 @@
|
|
|
679
1295
|
"kind": 3,
|
|
680
1296
|
"documentation": {
|
|
681
1297
|
"kind": "markdown",
|
|
682
|
-
"value": "Pateikiama duotos datos savaitės diena. Reikšmių diapazonas 0–6, čia pirmadienis yra 0, o sekmadienis 6.\n\n**Parametras**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - Data, kurios savaitės dieną reikia nurodyti.\n\n**Pateikiama reikšmė**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
1298
|
+
"value": "Pateikiama duotos datos savaitės diena. Reikšmių diapazonas 0–6, čia pirmadienis yra 0, o sekmadienis 6.\n\n**Parametras**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) \\| DateOnly - Data, kurios savaitės dieną reikia nurodyti.\n\n**Pateikiama reikšmė**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
683
1299
|
}
|
|
684
1300
|
},
|
|
685
1301
|
"parametersInfo": {
|
|
@@ -693,7 +1309,7 @@
|
|
|
693
1309
|
"bundle": "core",
|
|
694
1310
|
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#year",
|
|
695
1311
|
"description": "Pateikia duotos datos metus.",
|
|
696
|
-
"examples": "\n#####
|
|
1312
|
+
"examples": "\n##### Pavyzdžiai\n\nGaunami dabartinės datos metai\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",
|
|
697
1313
|
"completion": {
|
|
698
1314
|
"label": "Year",
|
|
699
1315
|
"detail": "Year(dateValue) -> Number",
|
|
@@ -703,7 +1319,7 @@
|
|
|
703
1319
|
"kind": 3,
|
|
704
1320
|
"documentation": {
|
|
705
1321
|
"kind": "markdown",
|
|
706
|
-
"value": "Pateikia duotos datos metus.\n\n**Parametras**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - Datos reikšmė, iš kurios gaunami metai.\n\n**Pateikiama reikšmė**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
1322
|
+
"value": "Pateikia duotos datos metus.\n\n**Parametras**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) \\| DateOnly - Datos reikšmė, iš kurios gaunami metai.\n\n**Pateikiama reikšmė**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
707
1323
|
}
|
|
708
1324
|
},
|
|
709
1325
|
"parametersInfo": {
|
|
@@ -1583,6 +2199,31 @@
|
|
|
1583
2199
|
"max": 4
|
|
1584
2200
|
}
|
|
1585
2201
|
},
|
|
2202
|
+
{
|
|
2203
|
+
"type": "function",
|
|
2204
|
+
"name": "featuresetbyrelationshipclass",
|
|
2205
|
+
"bundle": "data-access",
|
|
2206
|
+
"sinceVersion": "1.24",
|
|
2207
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/featureset_functions/#featuresetbyrelationshipclass",
|
|
2208
|
+
"description": "Returns the related records for a given feature as a FeatureSet based on the class name of the relationship.",
|
|
2209
|
+
"examples": "\n##### Pavyzdys\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",
|
|
2210
|
+
"completion": {
|
|
2211
|
+
"label": "FeatureSetByRelationshipClass",
|
|
2212
|
+
"detail": "FeatureSetByRelationshipClass(inputFeature, relationshipClass, fieldNames?, includeGeometry?) -> FeatureSet",
|
|
2213
|
+
"insertText": "FeatureSetByRelationshipClass(${1:inputFeature_}, ${2:relationshipClass_})$0",
|
|
2214
|
+
"insertTextMode": 2,
|
|
2215
|
+
"insertTextFormat": 2,
|
|
2216
|
+
"kind": 3,
|
|
2217
|
+
"documentation": {
|
|
2218
|
+
"kind": "markdown",
|
|
2219
|
+
"value": "**[Nuo versijos 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**Parametrai**\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**Pateikiama reikšmė**: [FeatureSet](https://developers.arcgis.com/arcade/guide/types/#featureset)"
|
|
2220
|
+
}
|
|
2221
|
+
},
|
|
2222
|
+
"parametersInfo": {
|
|
2223
|
+
"min": 2,
|
|
2224
|
+
"max": 4
|
|
2225
|
+
}
|
|
2226
|
+
},
|
|
1586
2227
|
{
|
|
1587
2228
|
"type": "function",
|
|
1588
2229
|
"name": "featuresetbyrelationshipname",
|
|
@@ -3866,6 +4507,31 @@
|
|
|
3866
4507
|
"max": 2
|
|
3867
4508
|
}
|
|
3868
4509
|
},
|
|
4510
|
+
{
|
|
4511
|
+
"type": "function",
|
|
4512
|
+
"name": "equals",
|
|
4513
|
+
"bundle": "core",
|
|
4514
|
+
"sinceVersion": "1.24",
|
|
4515
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/logical_functions/#equals",
|
|
4516
|
+
"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.",
|
|
4517
|
+
"examples": "\n##### Pavyzdys\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",
|
|
4518
|
+
"completion": {
|
|
4519
|
+
"label": "Equals",
|
|
4520
|
+
"detail": "Equals(value1, value2) -> Boolean",
|
|
4521
|
+
"insertText": "Equals(${1:value1_}, ${2:value2_})$0",
|
|
4522
|
+
"insertTextMode": 2,
|
|
4523
|
+
"insertTextFormat": 2,
|
|
4524
|
+
"kind": 3,
|
|
4525
|
+
"documentation": {
|
|
4526
|
+
"kind": "markdown",
|
|
4527
|
+
"value": "**[Nuo versijos 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**Parametrai**\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**Pateikiama reikšmė**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean)"
|
|
4528
|
+
}
|
|
4529
|
+
},
|
|
4530
|
+
"parametersInfo": {
|
|
4531
|
+
"min": 2,
|
|
4532
|
+
"max": 2
|
|
4533
|
+
}
|
|
4534
|
+
},
|
|
3869
4535
|
{
|
|
3870
4536
|
"type": "function",
|
|
3871
4537
|
"name": "iif",
|
|
@@ -4957,7 +5623,7 @@
|
|
|
4957
5623
|
"kind": 3,
|
|
4958
5624
|
"documentation": {
|
|
4959
5625
|
"kind": "markdown",
|
|
4960
|
-
"value": "**[Nuo versijos 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nSugeneruojama pateikto kintamojo maišos kodo reikšmė.\n\n**Parametras**\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) - Maišos kintamasis.\n\n**Pateikiama reikšmė**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
5626
|
+
"value": "**[Nuo versijos 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nSugeneruojama pateikto kintamojo maišos kodo reikšmė.\n\n**Parametras**\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 - Maišos kintamasis.\n\n**Pateikiama reikšmė**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
4961
5627
|
}
|
|
4962
5628
|
},
|
|
4963
5629
|
"parametersInfo": {
|
|
@@ -5919,7 +6585,7 @@
|
|
|
5919
6585
|
"bundle": "core",
|
|
5920
6586
|
"link": "https://developers.arcgis.com/arcade/function-reference/text_functions/#text",
|
|
5921
6587
|
"description": "Argumentas konvertuojamas į tekstinę reikšmę ir pasirinktinai formatuojamas. Jei nepavyksta, pateikiama null reikšmė.",
|
|
5922
|
-
"examples": "\n##### Pavyzdžiai\n\nSkaičius padidinamas į dešimtainių dalių kairę\n\n```arcade\nText(123, '0000') // '0123'\n```\n\nSkaičius apribojamas į dešimtainių dalių kairę\n\n```arcade\nText(123, '00') // '23'\n```\n\nSkaičius grupuojamas tūkstančiais\n\n```arcade\nText(1234, '#,###') // '1,234'\n```\n\nSkaičius suapvalinamas iki dviejų dešimtainių\n\n```arcade\nText(12345678.123, '#,###.00') // '12,345,678.12'\n```\n\nFormatuoti skaičių kaip valiutą\n\n```arcade\nText(1234.55, '$#,###.00') // '$1,234.55'\n```\n\nSkaičius suapvalinamas iki dviejų dešimtainių\n\n```arcade\nText(1.236, '#.00') // '1.24'\n```\n\nIšsaugojami svarbūs skaičiai ir grupuojama tūkstančiais\n\n```arcade\nText(1234.5678, '#,##0.00#') // '1,234.568'\n```\n\nSkaičiaus ir teigiamo / neigiamo formatas, jei postruktūrė yra neigiama, ji pateikiama tik neigiamam prefiksui ir sufiksui nurodyti\n\n```arcade\nText(-2, 'Floor #;Basement #') // 'Basement 2'\n```\n\n\n\n```arcade\nText(2, 'Floor #;Basement #') // 'Floor 2'\n```\n\nDauginama iš 100 ir formatuojama į procentus\n\n```arcade\nText(0.3, '#%') // '30%'\n```\n\nTos akimirkos formato data ir laikas. pvz., 'Tuesday, October 25, 2016 @ 08:43:11'\n\n```arcade\nText(Now(), 'dddd, MMMM D, Y @ h:m:s')\n```\n\nLauke datetime įrašyta data jau nurodyta vietiniu laiku, tačiau Arcade mano, kad ji yra UTC. Ištaiso vietinį laiką į UTC, kad išvengtų dvigubo laiko zonos poslinkio.\n\n```arcade\nText(
|
|
6588
|
+
"examples": "\n##### Pavyzdžiai\n\nSkaičius padidinamas į dešimtainių dalių kairę\n\n```arcade\nText(123, '0000') // '0123'\n```\n\nSkaičius apribojamas į dešimtainių dalių kairę\n\n```arcade\nText(123, '00') // '23'\n```\n\nSkaičius grupuojamas tūkstančiais\n\n```arcade\nText(1234, '#,###') // '1,234'\n```\n\nSkaičius suapvalinamas iki dviejų dešimtainių\n\n```arcade\nText(12345678.123, '#,###.00') // '12,345,678.12'\n```\n\nFormatuoti skaičių kaip valiutą\n\n```arcade\nText(1234.55, '$#,###.00') // '$1,234.55'\n```\n\nSkaičius suapvalinamas iki dviejų dešimtainių\n\n```arcade\nText(1.236, '#.00') // '1.24'\n```\n\nIšsaugojami svarbūs skaičiai ir grupuojama tūkstančiais\n\n```arcade\nText(1234.5678, '#,##0.00#') // '1,234.568'\n```\n\nSkaičiaus ir teigiamo / neigiamo formatas, jei postruktūrė yra neigiama, ji pateikiama tik neigiamam prefiksui ir sufiksui nurodyti\n\n```arcade\nText(-2, 'Floor #;Basement #') // 'Basement 2'\n```\n\n\n\n```arcade\nText(2, 'Floor #;Basement #') // 'Floor 2'\n```\n\nDauginama iš 100 ir formatuojama į procentus\n\n```arcade\nText(0.3, '#%') // '30%'\n```\n\nTos akimirkos formato data ir laikas. pvz., 'Tuesday, October 25, 2016 @ 08:43:11'\n\n```arcade\nText(Now(), 'dddd, MMMM D, Y @ h:m:s')\n```\n\nLauke datetime įrašyta data jau nurodyta vietiniu laiku, tačiau Arcade mano, kad ji yra UTC. Ištaiso vietinį laiką į UTC, kad išvengtų dvigubo laiko zonos poslinkio.\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",
|
|
5923
6589
|
"completion": {
|
|
5924
6590
|
"label": "Text",
|
|
5925
6591
|
"detail": "Text(value, format?) -> Text",
|