@arcgis/coding-components 1.0.0-beta.12 → 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/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 +851 -185
- 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/package.json +3 -3
|
@@ -149,29 +149,54 @@
|
|
|
149
149
|
"id": "date_functions",
|
|
150
150
|
"title": "Dátumové funkcie",
|
|
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##### Príklady\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": "**[Od verzie 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**Parametre**\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**Návratová hodnota**: [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##### Príklady\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##### Príklady\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**Parametre**\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**Návratová hodnota**: [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##### Príklady\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**Parameter**\n\n- **epoch** (_Optional_): [Number](https://developers.arcgis.com/arcade/guide/types/#number) - The number of milliseconds since January 1, 1970 UTC.\n\n**Návratová hodnota**: [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##### Príklady\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**Parameter**\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**Návratová hodnota**: [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##### Príklad\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": "**[Od verzie 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**Parametre**\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**Návratová hodnota**: [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##### Príklad\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": "**[Od verzie 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nCreates a copy of the given Date.\n\n**Parameter**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - The Date to copy.\n\n**Návratová hodnota**: [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##### Príklad\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**Parametre**\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**Návratová hodnota**: [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##### Príklady\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": "**[Od verzie 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**Parametre**\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**Návratová hodnota**: 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##### Príklady\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": "**[Od verzie 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**Parametre**\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**Návratová hodnota**: 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##### Príklady\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**Parametre**\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**Návratová hodnota**: [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##### Príklad\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": "**[Od verzie 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**Parametre**\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**Návratová hodnota**: [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##### Príklad\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": "**[Od verzie 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**Parametre**\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**Návratová hodnota**: [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##### Príklad\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": "**[Od verzie 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**Návratová hodnota**: 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##### Príklad\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": "**[Od verzie 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nCreates a DateOnly value from a given date.\n\n**Parameter**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - The date from which to create the DateOnly value.\n\n**Návratová hodnota**: 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##### Príklad\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": "**[Od verzie 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nCreates a DateOnly date with the given Unix epoch number.\n\n**Parameter**\n\n- **epoch**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - The number of milliseconds since January 1, 1970 UTC.\n\n**Návratová hodnota**: 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##### Príklad\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": "**[Od verzie 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**Parametre**\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**Návratová hodnota**: 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##### Príklady\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": "**[Od verzie 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**Parametre**\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**Návratová hodnota**: 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##### Príklad\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": "**[Od verzie 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nCreates a copy of a DateOnly value.\n\n**Parameter**\n\n- **dateOnlyValue**: DateOnly - The DateOnly value to copy.\n\n**Návratová hodnota**: 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": "Vracia deň v mesiaci daného dátumu.",
|
|
280
|
-
"examples": "\n#####
|
|
611
|
+
"examples": "\n##### Príklady\n\nZíska deň v mesiaci súčasného dátumu\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": "Vracia deň v mesiaci daného dátumu.\n\n**Parameter**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - Dátumová hodnota, z ktorej získať deň v mesiaci.\n\n**Návratová hodnota**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
621
|
+
"value": "Vracia deň v mesiaci daného dátumu.\n\n**Parameter**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) \\| DateOnly - Dátumová hodnota, z ktorej získať deň v mesiaci.\n\n**Návratová hodnota**: [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##### Príklad\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**Parameter**\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**Návratová hodnota**: [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##### Príklad\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": "**[Od verzie 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nReturns the hour of the given time (0-23).\n\n**Parameter**\n\n- **timeValue**: Time - A Time value from which to get the hour.\n\n**Návratová hodnota**: [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": "Vracia mesiac daného dátumu, podľa štandardu ISO 8601. Hodnoty v rozsahu od 1-12, kde január je `1` a december je `12`.",
|
|
329
|
-
"examples": "\n#####
|
|
687
|
+
"examples": "\n##### Príklady\n\nZíska mesiac daného dátumu, podľa štandardu ISO 8601. Vracia `12` pre mesiac December.\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": "**[Od verzie 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nVracia mesiac daného dátumu, podľa štandardu ISO 8601. Hodnoty v rozsahu od 1-12, kde január je `1` a december je `12`.\n\n**Parameter**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - Dátumová hodnota, z ktorej získať mesiac.\n\n**Návratová hodnota**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
697
|
+
"value": "**[Od verzie 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nVracia mesiac daného dátumu, podľa štandardu ISO 8601. Hodnoty v rozsahu od 1-12, kde január je `1` a december je `12`.\n\n**Parameter**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) \\| DateOnly - Dátumová hodnota, z ktorej získať mesiac.\n\n**Návratová hodnota**: [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": "Vracia týždeň v roku podľa daného dátumu, podľa kalendára týždňov ISO 8601. Hodnoty sú v rozsahu od 1-53, kde prvý týždeň roku je `1` a posledný týždeň roku je `52` alebo `53`, v závislosti od roku.",
|
|
354
|
-
"examples": "\n#####
|
|
712
|
+
"examples": "\n##### Príklady\n\nZíska týždeň daného dátumu podľa štandardu ISO 8601. Vracia `1`, keďže tento dátum spadá do prvého týždňa nasledujúceho roku.\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": "**[Od verzie 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nVracia týždeň v roku podľa daného dátumu, podľa kalendára týždňov ISO 8601. Hodnoty sú v rozsahu od 1-53, kde prvý týždeň roku je `1` a posledný týždeň roku je `52` alebo `53`, v závislosti od roku.\n\n**Parameter**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - Dátumová hodnota, z ktorej sa získa týždeň.\n\n**Návratová hodnota**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
722
|
+
"value": "**[Od verzie 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nVracia týždeň v roku podľa daného dátumu, podľa kalendára týždňov ISO 8601. Hodnoty sú v rozsahu od 1-53, kde prvý týždeň roku je `1` a posledný týždeň roku je `52` alebo `53`, v závislosti od roku.\n\n**Parameter**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) \\| DateOnly - Dátumová hodnota, z ktorej sa získa týždeň.\n\n**Návratová hodnota**: [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": "Vracia deň v týždni daného dátumu, podľa štandardu ISO 8601. Hodnoty v rozsahu 1-7, kde pondelok je `1` a nedeľa je `7`.",
|
|
379
|
-
"examples": "\n#####
|
|
737
|
+
"examples": "\n##### Príklady\n\nVracia deň v týždni daného dátumu, podľa štandardu ISO 8601. Vracia `3` pre stredu.\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": "**[Od verzie 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nVracia deň v týždni daného dátumu, podľa štandardu ISO 8601. Hodnoty v rozsahu 1-7, kde pondelok je `1` a nedeľa je `7`.\n\n**Parameter**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - Dátumová hodnota, z ktorej vrátiť deň v týždni.\n\n**Návratová hodnota**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
747
|
+
"value": "**[Od verzie 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nVracia deň v týždni daného dátumu, podľa štandardu ISO 8601. Hodnoty v rozsahu 1-7, kde pondelok je `1` a nedeľa je `7`.\n\n**Parameter**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) \\| DateOnly - Dátumová hodnota, z ktorej vrátiť deň v týždni.\n\n**Návratová hodnota**: [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": "Vracia rok daného dátumu, podľa kalendára týždňov ISO 8601.",
|
|
404
|
-
"examples": "\n#####
|
|
762
|
+
"examples": "\n##### Príklady\n\nZíska rok daného dátumu, podľa kalendára týždňov ISO 8601. Vracia `1981`, keďže tento dátum spadá do prvého týždňa nasledovného roku.\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": "**[Od verzie 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nVracia rok daného dátumu, podľa kalendára týždňov ISO 8601.\n\n**Parameter**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - Dátumová hodnota, z ktorej získať rok.\n\n**Návratová hodnota**: [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": "Vracia milisekundu času v dátume.",
|
|
428
|
-
"examples": "\n##### Príklad\n\nZíska milisekundu súčasného času\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": "Vracia milisekundu času v dátume.\n\n**Parameter**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - Dátumová hodnota, z ktorej získať milisekundu času.\n\n**Návratová hodnota**: [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": "Vracia minútu času v danom dátume.",
|
|
452
|
-
"examples": "\n##### Príklad\n\nZíska minútu súčasného času\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": "**[Od verzie 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nVracia rok daného dátumu, podľa kalendára týždňov ISO 8601.\n\n**Parameter**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) \\| DateOnly - Dátumová hodnota, z ktorej získať rok.\n\n**Návratová hodnota**: [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##### Príklad\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**Parameter**\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**Návratová hodnota**: [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##### Príklad\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": "**[Od verzie 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nReturns the millisecond of the given time.\n\n**Parameter**\n\n- **timeValue**: Time - A Time value from which to get the millisecond.\n\n**Návratová hodnota**: [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##### Príklad\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**Parameter**\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**Návratová hodnota**: [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##### Príklad\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": "**[Od verzie 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nReturns the minute of the given time.\n\n**Parameter**\n\n- **timeValue**: Time - A Time value from which to get the minute.\n\n**Návratová hodnota**: [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": "Vracia mesiac daného dátumu. Hodnoty v rozsahu od 0-11, kde január je `0` a december je `11`.",
|
|
476
|
-
"examples": "\n#####
|
|
888
|
+
"examples": "\n##### Príklady\n\nZíska mesiac daného dátumu. Vracia 11 pre mesiac December.\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": "Vracia mesiac daného dátumu. Hodnoty v rozsahu od 0-11, kde január je `0` a december je `11`.\n\n**Parameter**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - Dátumová hodnota, z ktorej získať mesiac.\n\n**Návratová hodnota**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
898
|
+
"value": "Vracia mesiac daného dátumu. Hodnoty v rozsahu od 0-11, kde január je `0` a december je `11`.\n\n**Parameter**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) \\| DateOnly - Dátumová hodnota, z ktorej získať mesiac.\n\n**Návratová hodnota**: [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##### Príklad\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**Parameter**\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**Návratová hodnota**: [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##### Príklad\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": "**[Od verzie 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nReturns the second of the given time.\n\n**Parameter**\n\n- **timeValue**: Time - A Time value from which to get the second.\n\n**Návratová hodnota**: [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##### Príklad\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": "**[Od verzie 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**Návratová hodnota**: 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##### Príklad\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": "**[Od verzie 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nCreates a Time value from a given date.\n\n**Parameter**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - The date from which to get the time.\n\n**Návratová hodnota**: 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##### Príklady\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": "**[Od verzie 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**Parameter**\n\n- **numValue**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - The number of milliseconds since midnight.\n\n**Návratová hodnota**: 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##### Príklad\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": "**[Od verzie 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**Parametre**\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**Návratová hodnota**: 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##### Príklady\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": "**[Od verzie 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**Parametre**\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**Návratová hodnota**: 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": "Vytvorí hodnotu dátumu, ktorá predstavuje aktuálny dátum a čas v UTC.",
|
|
1115
|
+
"examples": "\n##### Príklad\n\nVytvorí dátum v UTC čase\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": "**[Od verzie 1.1](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nVytvorí hodnotu dátumu, ktorá predstavuje aktuálny dátum a čas v UTC.\n\n**Návratová hodnota**: [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##### Príklad\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": "**[Od verzie 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**Parameter**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - A Date value from which to get the time zone.\n\n**Návratová hodnota**: [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##### Príklad\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##### Príklad\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": "**[Od verzie 1.
|
|
1175
|
+
"value": "**[Od verzie 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**Parameter**\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**Návratová hodnota**: [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": "Vráti číslo týždňa v roku podľa daného dátumu. Hodnoty sa pohybujú od 0 do 53, kde prvý týždeň v roku je `0` a posledný týždeň v roku je `51`, `52`, alebo `53`, v závislosti od roku. Prvý a posledný týždeň nemusia byť dlhé plných sedem dní.",
|
|
648
|
-
"examples": "\n##### Príklady\n\nPoužiť predvolený začiatok týždňa (Nedeľa)\n\n```arcade\nWeek( Date(1974,0,3) )\n// Returns 0\n```\n\nNastaviť začiatok týždňa na Štvrtok\n\n```arcade\nWeek( Date(1974,0,3), 4 )\n// Returns 1\n```\n\nNastaviť začiatok týždňa na Piatok\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##### Príklady\n\nPoužiť predvolený začiatok týždňa (Nedeľa)\n\n```arcade\nWeek( Date(1974,0,3) )\n// Returns 0\n```\n\nNastaviť začiatok týždňa na Štvrtok\n\n```arcade\nWeek( Date(1974,0,3), 4 )\n// Returns 1\n```\n\nNastaviť začiatok týždňa na Piatok\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": "**[Od verzie 1.14](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nVráti číslo týždňa v roku podľa daného dátumu. Hodnoty sa pohybujú od 0 do 53, kde prvý týždeň v roku je `0` a posledný týždeň v roku je `51`, `52`, alebo `53`, v závislosti od roku. Prvý a posledný týždeň nemusia byť dlhé plných sedem dní.\n\n**Parametre**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - Dátumová hodnota, z ktorej sa získa týždeň.\n- **startDay** (_Optional_): [Number](https://developers.arcgis.com/arcade/guide/types/#number) - Číslo reprezentujúce počiatočný deň týždňa. nedeľa = 0; pondelok = 1; utorok = 2; streda = 3; štvrtok = 4; piatok = 5; Sobota = 6. Predvolená je `0` (nedeľa).\n\n**Návratová hodnota**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
1274
|
+
"value": "**[Od verzie 1.14](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nVráti číslo týždňa v roku podľa daného dátumu. Hodnoty sa pohybujú od 0 do 53, kde prvý týždeň v roku je `0` a posledný týždeň v roku je `51`, `52`, alebo `53`, v závislosti od roku. Prvý a posledný týždeň nemusia byť dlhé plných sedem dní.\n\n**Parametre**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) \\| DateOnly - Dátumová hodnota, z ktorej sa získa týždeň.\n- **startDay** (_Optional_): [Number](https://developers.arcgis.com/arcade/guide/types/#number) - Číslo reprezentujúce počiatočný deň týždňa. nedeľa = 0; pondelok = 1; utorok = 2; streda = 3; štvrtok = 4; piatok = 5; Sobota = 6. Predvolená je `0` (nedeľa).\n\n**Návratová hodnota**: [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": "Vracia deň v týždni daného dátumu. Hodnoty v rozsahu 0-6, kde nedeľa je `0` a sobota je `6`.",
|
|
672
|
-
"examples": "\n#####
|
|
1288
|
+
"examples": "\n##### Príklady\n\nVracia deň v týždni daného dátumu. Vracia `3` pre stredu.\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": "Vracia deň v týždni daného dátumu. Hodnoty v rozsahu 0-6, kde nedeľa je `0` a sobota je `6`.\n\n**Parameter**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - Dátumová hodnota, z ktorej vrátiť deň v týždni.\n\n**Návratová hodnota**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
1298
|
+
"value": "Vracia deň v týždni daného dátumu. Hodnoty v rozsahu 0-6, kde nedeľa je `0` a sobota je `6`.\n\n**Parameter**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) \\| DateOnly - Dátumová hodnota, z ktorej vrátiť deň v týždni.\n\n**Návratová hodnota**: [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": "Vracia rok daného dátumu.",
|
|
696
|
-
"examples": "\n#####
|
|
1312
|
+
"examples": "\n##### Príklady\n\nZíska rok súčasného dátumu\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": "Vracia rok daného dátumu.\n\n**Parameter**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - Dátumová hodnota, z ktorej získať rok.\n\n**Návratová hodnota**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
1322
|
+
"value": "Vracia rok daného dátumu.\n\n**Parameter**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) \\| DateOnly - Dátumová hodnota, z ktorej získať rok.\n\n**Návratová hodnota**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
707
1323
|
}
|
|
708
1324
|
},
|
|
709
1325
|
"parametersInfo": {
|
|
@@ -1173,6 +1789,31 @@
|
|
|
1173
1789
|
"max": 4
|
|
1174
1790
|
}
|
|
1175
1791
|
},
|
|
1792
|
+
{
|
|
1793
|
+
"type": "function",
|
|
1794
|
+
"name": "featuresetbyrelationshipclass",
|
|
1795
|
+
"bundle": "data-access",
|
|
1796
|
+
"sinceVersion": "1.24",
|
|
1797
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/featureset_functions/#featuresetbyrelationshipclass",
|
|
1798
|
+
"description": "Returns the related records for a given feature as a FeatureSet based on the class name of the relationship.",
|
|
1799
|
+
"examples": "\n##### Príklad\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",
|
|
1800
|
+
"completion": {
|
|
1801
|
+
"label": "FeatureSetByRelationshipClass",
|
|
1802
|
+
"detail": "FeatureSetByRelationshipClass(inputFeature, relationshipClass, fieldNames?, includeGeometry?) -> FeatureSet",
|
|
1803
|
+
"insertText": "FeatureSetByRelationshipClass(${1:inputFeature_}, ${2:relationshipClass_})$0",
|
|
1804
|
+
"insertTextMode": 2,
|
|
1805
|
+
"insertTextFormat": 2,
|
|
1806
|
+
"kind": 3,
|
|
1807
|
+
"documentation": {
|
|
1808
|
+
"kind": "markdown",
|
|
1809
|
+
"value": "**[Od verzie 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**Parametre**\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**Návratová hodnota**: [FeatureSet](https://developers.arcgis.com/arcade/guide/types/#featureset)"
|
|
1810
|
+
}
|
|
1811
|
+
},
|
|
1812
|
+
"parametersInfo": {
|
|
1813
|
+
"min": 2,
|
|
1814
|
+
"max": 4
|
|
1815
|
+
}
|
|
1816
|
+
},
|
|
1176
1817
|
{
|
|
1177
1818
|
"type": "function",
|
|
1178
1819
|
"name": "featuresetbyrelationshipname",
|
|
@@ -4779,6 +5420,31 @@
|
|
|
4779
5420
|
"max": 2
|
|
4780
5421
|
}
|
|
4781
5422
|
},
|
|
5423
|
+
{
|
|
5424
|
+
"type": "function",
|
|
5425
|
+
"name": "equals",
|
|
5426
|
+
"bundle": "core",
|
|
5427
|
+
"sinceVersion": "1.24",
|
|
5428
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/logical_functions/#equals",
|
|
5429
|
+
"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.",
|
|
5430
|
+
"examples": "\n##### Príklad\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",
|
|
5431
|
+
"completion": {
|
|
5432
|
+
"label": "Equals",
|
|
5433
|
+
"detail": "Equals(value1, value2) -> Boolean",
|
|
5434
|
+
"insertText": "Equals(${1:value1_}, ${2:value2_})$0",
|
|
5435
|
+
"insertTextMode": 2,
|
|
5436
|
+
"insertTextFormat": 2,
|
|
5437
|
+
"kind": 3,
|
|
5438
|
+
"documentation": {
|
|
5439
|
+
"kind": "markdown",
|
|
5440
|
+
"value": "**[Od verzie 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**Parametre**\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**Návratová hodnota**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean)"
|
|
5441
|
+
}
|
|
5442
|
+
},
|
|
5443
|
+
"parametersInfo": {
|
|
5444
|
+
"min": 2,
|
|
5445
|
+
"max": 2
|
|
5446
|
+
}
|
|
5447
|
+
},
|
|
4782
5448
|
{
|
|
4783
5449
|
"type": "function",
|
|
4784
5450
|
"name": "iif",
|
|
@@ -5214,7 +5880,7 @@
|
|
|
5214
5880
|
"kind": 3,
|
|
5215
5881
|
"documentation": {
|
|
5216
5882
|
"kind": "markdown",
|
|
5217
|
-
"value": "**[Od verzie 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nGeneruje hash kódovanú hodnotu pre danú premennú.\n\n**Parameter**\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) - Premenná, ktorú hashovať.\n\n**Návratová hodnota**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
5883
|
+
"value": "**[Od verzie 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nGeneruje hash kódovanú hodnotu pre danú premennú.\n\n**Parameter**\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 - Premenná, ktorú hashovať.\n\n**Návratová hodnota**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
5218
5884
|
}
|
|
5219
5885
|
},
|
|
5220
5886
|
"parametersInfo": {
|
|
@@ -6531,7 +7197,7 @@
|
|
|
6531
7197
|
"bundle": "core",
|
|
6532
7198
|
"link": "https://developers.arcgis.com/arcade/function-reference/text_functions/#text",
|
|
6533
7199
|
"description": "Konvertuje svoj argument na textovú hodnotu a voliteľne ho formátuje. Vracia `null`, ak zlyhá.",
|
|
6534
|
-
"examples": "\n##### Príklady\n\nOdsaďte číslo naľavo od desatinnej čiarky\n\n```arcade\nText(123, '0000') // '0123'\n```\n\nObmedziť číslo naľavo od desatinnej čiarky\n\n```arcade\nText(123, '00') // '23'\n```\n\nZoskupiť čísla podľa tisícok\n\n```arcade\nText(1234, '#,###') // '1,234'\n```\n\nZaokrúhliť číslo na dve desatinné miesta\n\n```arcade\nText(12345678.123, '#,###.00') // '12,345,678.12'\n```\n\nFormátovať číslo ako menu\n\n```arcade\nText(1234.55, '$#,###.00') // '$1,234.55'\n```\n\nZaokrúhliť číslo na dve desatinné miesta\n\n```arcade\nText(1.236, '#.00') // '1.24'\n```\n\nUdržať platné cifry a zoskupiť podľa tisícok\n\n```arcade\nText(1234.5678, '#,##0.00#') // '1,234.568'\n```\n\nFormátuje číslo a formátuje kladné/záporné - ak je tam záporný podvzor, slúži to len na špecifikáciu zápornej predpony a prípony\n\n```arcade\nText(-2, 'Floor #;Basement #') // 'Basement 2'\n```\n\n\n\n```arcade\nText(2, 'Floor #;Basement #') // 'Floor 2'\n```\n\nVynásobiť 100 a formátovať ako percentá\n\n```arcade\nText(0.3, '#%') // '30%'\n```\n\nNaformátujte aktuálny dátum a čas. napr. 'Utorok, 25. október 2016 @ 08:43:11'\n\n```arcade\nText(Now(), 'dddd, MMMM D, Y @ h:m:s')\n```\n\nDátum uložený v poli `datetime` už predstavuje miestny čas, ale Arcade predpokladá, že je to UTC. Posunie miestny čas do UTC, aby sa vyhlo aplikovaniu posunu časovej zóny dvakrát.\n\n```arcade\nText(
|
|
7200
|
+
"examples": "\n##### Príklady\n\nOdsaďte číslo naľavo od desatinnej čiarky\n\n```arcade\nText(123, '0000') // '0123'\n```\n\nObmedziť číslo naľavo od desatinnej čiarky\n\n```arcade\nText(123, '00') // '23'\n```\n\nZoskupiť čísla podľa tisícok\n\n```arcade\nText(1234, '#,###') // '1,234'\n```\n\nZaokrúhliť číslo na dve desatinné miesta\n\n```arcade\nText(12345678.123, '#,###.00') // '12,345,678.12'\n```\n\nFormátovať číslo ako menu\n\n```arcade\nText(1234.55, '$#,###.00') // '$1,234.55'\n```\n\nZaokrúhliť číslo na dve desatinné miesta\n\n```arcade\nText(1.236, '#.00') // '1.24'\n```\n\nUdržať platné cifry a zoskupiť podľa tisícok\n\n```arcade\nText(1234.5678, '#,##0.00#') // '1,234.568'\n```\n\nFormátuje číslo a formátuje kladné/záporné - ak je tam záporný podvzor, slúži to len na špecifikáciu zápornej predpony a prípony\n\n```arcade\nText(-2, 'Floor #;Basement #') // 'Basement 2'\n```\n\n\n\n```arcade\nText(2, 'Floor #;Basement #') // 'Floor 2'\n```\n\nVynásobiť 100 a formátovať ako percentá\n\n```arcade\nText(0.3, '#%') // '30%'\n```\n\nNaformátujte aktuálny dátum a čas. napr. 'Utorok, 25. október 2016 @ 08:43:11'\n\n```arcade\nText(Now(), 'dddd, MMMM D, Y @ h:m:s')\n```\n\nDátum uložený v poli `datetime` už predstavuje miestny čas, ale Arcade predpokladá, že je to UTC. Posunie miestny čas do UTC, aby sa vyhlo aplikovaniu posunu časovej zóny dvakrát.\n\n```arcade\nText(startDate, 'ddd, MMM D, Y h:mm:ss A ZZZZ')\n// returns Thu, Sep 14, 2023 10:04:49 AM PDT\n```\n\n",
|
|
6535
7201
|
"completion": {
|
|
6536
7202
|
"label": "Text",
|
|
6537
7203
|
"detail": "Text(value, format?) -> Text",
|