@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
|
@@ -204,29 +204,54 @@
|
|
|
204
204
|
"id": "date_functions",
|
|
205
205
|
"title": "Datuma funkcijas",
|
|
206
206
|
"items": [
|
|
207
|
+
{
|
|
208
|
+
"type": "function",
|
|
209
|
+
"name": "changetimezone",
|
|
210
|
+
"bundle": "core",
|
|
211
|
+
"sinceVersion": "1.24",
|
|
212
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#changetimezone",
|
|
213
|
+
"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`.",
|
|
214
|
+
"examples": "\n##### Piemēri\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",
|
|
215
|
+
"completion": {
|
|
216
|
+
"label": "ChangeTimeZone",
|
|
217
|
+
"detail": "ChangeTimeZone(dateValue, newTimeZone) -> Date",
|
|
218
|
+
"insertText": "ChangeTimeZone(${1:dateValue_}, ${2:newTimeZone_})$0",
|
|
219
|
+
"insertTextMode": 2,
|
|
220
|
+
"insertTextFormat": 2,
|
|
221
|
+
"kind": 3,
|
|
222
|
+
"documentation": {
|
|
223
|
+
"kind": "markdown",
|
|
224
|
+
"value": "**[Iepriekšējā versija 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**Parametri**\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**Uzrādīt vērtību**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)"
|
|
225
|
+
}
|
|
226
|
+
},
|
|
227
|
+
"parametersInfo": {
|
|
228
|
+
"min": 2,
|
|
229
|
+
"max": 2
|
|
230
|
+
}
|
|
231
|
+
},
|
|
207
232
|
[
|
|
208
233
|
{
|
|
209
234
|
"type": "function",
|
|
210
235
|
"name": "date",
|
|
211
236
|
"bundle": "core",
|
|
212
237
|
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#date1",
|
|
213
|
-
"description": "
|
|
214
|
-
"examples": "\n##### Piemēri\n\
|
|
238
|
+
"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.",
|
|
239
|
+
"examples": "\n##### Piemēri\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",
|
|
215
240
|
"completion": {
|
|
216
241
|
"label": "Date",
|
|
217
|
-
"detail": "Date(year, month, day, hour?, minute?, second?, millisecond?) -> Date",
|
|
242
|
+
"detail": "Date(year, month, day, hour?, minute?, second?, millisecond?, timeZone?) -> Date",
|
|
218
243
|
"insertText": "Date(${1:year_}, ${2:month_}, ${3:day_})$0",
|
|
219
244
|
"insertTextMode": 2,
|
|
220
245
|
"insertTextFormat": 2,
|
|
221
246
|
"kind": 3,
|
|
222
247
|
"documentation": {
|
|
223
248
|
"kind": "markdown",
|
|
224
|
-
"value": "
|
|
249
|
+
"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**Parametri**\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**Uzrādīt vērtību**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)"
|
|
225
250
|
}
|
|
226
251
|
},
|
|
227
252
|
"parametersInfo": {
|
|
228
253
|
"min": 3,
|
|
229
|
-
"max":
|
|
254
|
+
"max": 8
|
|
230
255
|
}
|
|
231
256
|
},
|
|
232
257
|
{
|
|
@@ -234,8 +259,8 @@
|
|
|
234
259
|
"name": "date",
|
|
235
260
|
"bundle": "core",
|
|
236
261
|
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#date2",
|
|
237
|
-
"description": "
|
|
238
|
-
"examples": "\n#####
|
|
262
|
+
"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.",
|
|
263
|
+
"examples": "\n##### Piemēri\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",
|
|
239
264
|
"completion": {
|
|
240
265
|
"label": "Date",
|
|
241
266
|
"detail": "Date(epoch?) -> Date",
|
|
@@ -245,7 +270,7 @@
|
|
|
245
270
|
"kind": 3,
|
|
246
271
|
"documentation": {
|
|
247
272
|
"kind": "markdown",
|
|
248
|
-
"value": "
|
|
273
|
+
"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**Parametrs**\n\n- **epoch** (_Optional_): [Number](https://developers.arcgis.com/arcade/guide/types/#number) - The number of milliseconds since January 1, 1970 UTC.\n\n**Uzrādīt vērtību**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)"
|
|
249
274
|
}
|
|
250
275
|
},
|
|
251
276
|
"parametersInfo": {
|
|
@@ -258,8 +283,8 @@
|
|
|
258
283
|
"name": "date",
|
|
259
284
|
"bundle": "core",
|
|
260
285
|
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#date3",
|
|
261
|
-
"description": "
|
|
262
|
-
"examples": "\n#####
|
|
286
|
+
"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.",
|
|
287
|
+
"examples": "\n##### Piemēri\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",
|
|
263
288
|
"completion": {
|
|
264
289
|
"label": "Date",
|
|
265
290
|
"detail": "Date(timestamp?) -> Date",
|
|
@@ -269,70 +294,376 @@
|
|
|
269
294
|
"kind": 3,
|
|
270
295
|
"documentation": {
|
|
271
296
|
"kind": "markdown",
|
|
272
|
-
"value": "
|
|
297
|
+
"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**Parametrs**\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**Uzrādīt vērtību**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)"
|
|
273
298
|
}
|
|
274
299
|
},
|
|
275
300
|
"parametersInfo": {
|
|
276
301
|
"min": 0,
|
|
277
302
|
"max": 1
|
|
278
303
|
}
|
|
304
|
+
},
|
|
305
|
+
{
|
|
306
|
+
"type": "function",
|
|
307
|
+
"name": "date",
|
|
308
|
+
"bundle": "core",
|
|
309
|
+
"sinceVersion": "1.24",
|
|
310
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#date4",
|
|
311
|
+
"description": "Creates a Date from a DateOnly value, with an optional Time and time zone value.",
|
|
312
|
+
"examples": "\n##### Piemērs\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",
|
|
313
|
+
"completion": {
|
|
314
|
+
"label": "Date",
|
|
315
|
+
"detail": "Date(dateOnlyValue, timeValue?, timeZone?) -> Date",
|
|
316
|
+
"insertText": "Date(${1:dateOnlyValue_})$0",
|
|
317
|
+
"insertTextMode": 2,
|
|
318
|
+
"insertTextFormat": 2,
|
|
319
|
+
"kind": 3,
|
|
320
|
+
"documentation": {
|
|
321
|
+
"kind": "markdown",
|
|
322
|
+
"value": "**[Iepriekšējā versija 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**Parametri**\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**Uzrādīt vērtību**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)"
|
|
323
|
+
}
|
|
324
|
+
},
|
|
325
|
+
"parametersInfo": {
|
|
326
|
+
"min": 1,
|
|
327
|
+
"max": 3
|
|
328
|
+
}
|
|
329
|
+
},
|
|
330
|
+
{
|
|
331
|
+
"type": "function",
|
|
332
|
+
"name": "date",
|
|
333
|
+
"bundle": "core",
|
|
334
|
+
"sinceVersion": "1.24",
|
|
335
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#date5",
|
|
336
|
+
"description": "Creates a copy of the given Date.",
|
|
337
|
+
"examples": "\n##### Piemērs\n\nCreates a copy of the current Date value\n\n```arcade\nvar copiedDate = Date(Now())\n```\n\n",
|
|
338
|
+
"completion": {
|
|
339
|
+
"label": "Date",
|
|
340
|
+
"detail": "Date(dateValue) -> Date",
|
|
341
|
+
"insertText": "Date(${1:dateValue_})$0",
|
|
342
|
+
"insertTextMode": 2,
|
|
343
|
+
"insertTextFormat": 2,
|
|
344
|
+
"kind": 3,
|
|
345
|
+
"documentation": {
|
|
346
|
+
"kind": "markdown",
|
|
347
|
+
"value": "**[Iepriekšējā versija 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nCreates a copy of the given Date.\n\n**Parametrs**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - The Date to copy.\n\n**Uzrādīt vērtību**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)"
|
|
348
|
+
}
|
|
349
|
+
},
|
|
350
|
+
"parametersInfo": {
|
|
351
|
+
"min": 1,
|
|
352
|
+
"max": 1
|
|
353
|
+
}
|
|
279
354
|
}
|
|
280
355
|
],
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
"
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
"
|
|
297
|
-
|
|
356
|
+
[
|
|
357
|
+
{
|
|
358
|
+
"type": "function",
|
|
359
|
+
"name": "dateadd",
|
|
360
|
+
"bundle": "core",
|
|
361
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#dateadd1",
|
|
362
|
+
"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.",
|
|
363
|
+
"examples": "\n##### Piemērs\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",
|
|
364
|
+
"completion": {
|
|
365
|
+
"label": "DateAdd",
|
|
366
|
+
"detail": "DateAdd(dateValue, addValue, units?) -> Date",
|
|
367
|
+
"insertText": "DateAdd(${1:dateValue_}, ${2:addValue_})$0",
|
|
368
|
+
"insertTextMode": 2,
|
|
369
|
+
"insertTextFormat": 2,
|
|
370
|
+
"kind": 3,
|
|
371
|
+
"documentation": {
|
|
372
|
+
"kind": "markdown",
|
|
373
|
+
"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**Parametri**\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**Uzrādīt vērtību**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)"
|
|
374
|
+
}
|
|
375
|
+
},
|
|
376
|
+
"parametersInfo": {
|
|
377
|
+
"min": 2,
|
|
378
|
+
"max": 3
|
|
298
379
|
}
|
|
299
380
|
},
|
|
300
|
-
|
|
301
|
-
"
|
|
302
|
-
"
|
|
381
|
+
{
|
|
382
|
+
"type": "function",
|
|
383
|
+
"name": "dateadd",
|
|
384
|
+
"bundle": "core",
|
|
385
|
+
"sinceVersion": "1.24",
|
|
386
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#dateadd2",
|
|
387
|
+
"description": "Adds a specified amount of time in the given units to a DateOnly value and returns a new DateOnly value.",
|
|
388
|
+
"examples": "\n##### Piemēri\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",
|
|
389
|
+
"completion": {
|
|
390
|
+
"label": "DateAdd",
|
|
391
|
+
"detail": "DateAdd(dateOnlyValue, addValue, units?) -> DateOnly",
|
|
392
|
+
"insertText": "DateAdd(${1:dateOnlyValue_}, ${2:addValue_})$0",
|
|
393
|
+
"insertTextMode": 2,
|
|
394
|
+
"insertTextFormat": 2,
|
|
395
|
+
"kind": 3,
|
|
396
|
+
"documentation": {
|
|
397
|
+
"kind": "markdown",
|
|
398
|
+
"value": "**[Iepriekšējā versija 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**Parametri**\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**Uzrādīt vērtību**: DateOnly"
|
|
399
|
+
}
|
|
400
|
+
},
|
|
401
|
+
"parametersInfo": {
|
|
402
|
+
"min": 2,
|
|
403
|
+
"max": 3
|
|
404
|
+
}
|
|
405
|
+
},
|
|
406
|
+
{
|
|
407
|
+
"type": "function",
|
|
408
|
+
"name": "dateadd",
|
|
409
|
+
"bundle": "core",
|
|
410
|
+
"sinceVersion": "1.24",
|
|
411
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#dateadd3",
|
|
412
|
+
"description": "Adds a specified amount of time in the given units to a Time value and returns a new Time value.",
|
|
413
|
+
"examples": "\n##### Piemēri\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",
|
|
414
|
+
"completion": {
|
|
415
|
+
"label": "DateAdd",
|
|
416
|
+
"detail": "DateAdd(timeValue, addValue, units?) -> Time",
|
|
417
|
+
"insertText": "DateAdd(${1:timeValue_}, ${2:addValue_})$0",
|
|
418
|
+
"insertTextMode": 2,
|
|
419
|
+
"insertTextFormat": 2,
|
|
420
|
+
"kind": 3,
|
|
421
|
+
"documentation": {
|
|
422
|
+
"kind": "markdown",
|
|
423
|
+
"value": "**[Iepriekšējā versija 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**Parametri**\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**Uzrādīt vērtību**: Time"
|
|
424
|
+
}
|
|
425
|
+
},
|
|
426
|
+
"parametersInfo": {
|
|
427
|
+
"min": 2,
|
|
428
|
+
"max": 3
|
|
429
|
+
}
|
|
303
430
|
}
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
"
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
"
|
|
321
|
-
|
|
431
|
+
],
|
|
432
|
+
[
|
|
433
|
+
{
|
|
434
|
+
"type": "function",
|
|
435
|
+
"name": "datediff",
|
|
436
|
+
"bundle": "core",
|
|
437
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#datediff1",
|
|
438
|
+
"description": "Subtracts two Dates, and returns the difference in the specified units.",
|
|
439
|
+
"examples": "\n##### Piemēri\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",
|
|
440
|
+
"completion": {
|
|
441
|
+
"label": "DateDiff",
|
|
442
|
+
"detail": "DateDiff(date1, date2, units?, timeZone?) -> Number",
|
|
443
|
+
"insertText": "DateDiff(${1:date1_}, ${2:date2_})$0",
|
|
444
|
+
"insertTextMode": 2,
|
|
445
|
+
"insertTextFormat": 2,
|
|
446
|
+
"kind": 3,
|
|
447
|
+
"documentation": {
|
|
448
|
+
"kind": "markdown",
|
|
449
|
+
"value": "Subtracts two Dates, and returns the difference in the specified units.\n\n**Parametri**\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**Uzrādīt vērtību**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
450
|
+
}
|
|
451
|
+
},
|
|
452
|
+
"parametersInfo": {
|
|
453
|
+
"min": 2,
|
|
454
|
+
"max": 4
|
|
322
455
|
}
|
|
323
456
|
},
|
|
324
|
-
|
|
325
|
-
"
|
|
326
|
-
"
|
|
457
|
+
{
|
|
458
|
+
"type": "function",
|
|
459
|
+
"name": "datediff",
|
|
460
|
+
"bundle": "core",
|
|
461
|
+
"sinceVersion": "1.24",
|
|
462
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#datediff2",
|
|
463
|
+
"description": "Subtracts two DateOnly values, and returns the difference in the specified units.",
|
|
464
|
+
"examples": "\n##### Piemērs\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",
|
|
465
|
+
"completion": {
|
|
466
|
+
"label": "DateDiff",
|
|
467
|
+
"detail": "DateDiff(dateOnly1, dateOnly2, units?) -> Number",
|
|
468
|
+
"insertText": "DateDiff(${1:dateOnly1_}, ${2:dateOnly2_})$0",
|
|
469
|
+
"insertTextMode": 2,
|
|
470
|
+
"insertTextFormat": 2,
|
|
471
|
+
"kind": 3,
|
|
472
|
+
"documentation": {
|
|
473
|
+
"kind": "markdown",
|
|
474
|
+
"value": "**[Iepriekšējā versija 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**Parametri**\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**Uzrādīt vērtību**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
475
|
+
}
|
|
476
|
+
},
|
|
477
|
+
"parametersInfo": {
|
|
478
|
+
"min": 2,
|
|
479
|
+
"max": 3
|
|
480
|
+
}
|
|
481
|
+
},
|
|
482
|
+
{
|
|
483
|
+
"type": "function",
|
|
484
|
+
"name": "datediff",
|
|
485
|
+
"bundle": "core",
|
|
486
|
+
"sinceVersion": "1.24",
|
|
487
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#datediff3",
|
|
488
|
+
"description": "Subtracts two Time values, and returns the difference in the specified units.",
|
|
489
|
+
"examples": "\n##### Piemērs\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",
|
|
490
|
+
"completion": {
|
|
491
|
+
"label": "DateDiff",
|
|
492
|
+
"detail": "DateDiff(time1, time2, units?) -> Number",
|
|
493
|
+
"insertText": "DateDiff(${1:time1_}, ${2:time2_})$0",
|
|
494
|
+
"insertTextMode": 2,
|
|
495
|
+
"insertTextFormat": 2,
|
|
496
|
+
"kind": 3,
|
|
497
|
+
"documentation": {
|
|
498
|
+
"kind": "markdown",
|
|
499
|
+
"value": "**[Iepriekšējā versija 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**Parametri**\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**Uzrādīt vērtību**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
500
|
+
}
|
|
501
|
+
},
|
|
502
|
+
"parametersInfo": {
|
|
503
|
+
"min": 2,
|
|
504
|
+
"max": 3
|
|
505
|
+
}
|
|
327
506
|
}
|
|
328
|
-
|
|
507
|
+
],
|
|
508
|
+
[
|
|
509
|
+
{
|
|
510
|
+
"type": "function",
|
|
511
|
+
"name": "dateonly",
|
|
512
|
+
"bundle": "core",
|
|
513
|
+
"sinceVersion": "1.24",
|
|
514
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#dateonly1",
|
|
515
|
+
"description": "Creates a DateOnly value based on the current date in the time zone of the profile's execution context.",
|
|
516
|
+
"examples": "\n##### Piemērs\n\nReturns the current DateOnly (no time)\n\n```arcade\nDateOnly()\n// returns the current date, i.e. 2023-09-12\n```\n\n",
|
|
517
|
+
"completion": {
|
|
518
|
+
"label": "DateOnly",
|
|
519
|
+
"detail": "DateOnly() -> DateOnly",
|
|
520
|
+
"insertText": "DateOnly($0)",
|
|
521
|
+
"insertTextMode": 2,
|
|
522
|
+
"insertTextFormat": 2,
|
|
523
|
+
"kind": 3,
|
|
524
|
+
"documentation": {
|
|
525
|
+
"kind": "markdown",
|
|
526
|
+
"value": "**[Iepriekšējā versija 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**Uzrādīt vērtību**: DateOnly"
|
|
527
|
+
}
|
|
528
|
+
},
|
|
529
|
+
"parametersInfo": {
|
|
530
|
+
"min": 0,
|
|
531
|
+
"max": 0
|
|
532
|
+
}
|
|
533
|
+
},
|
|
534
|
+
{
|
|
535
|
+
"type": "function",
|
|
536
|
+
"name": "dateonly",
|
|
537
|
+
"bundle": "core",
|
|
538
|
+
"sinceVersion": "1.24",
|
|
539
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#dateonly2",
|
|
540
|
+
"description": "Creates a DateOnly value from a given date.",
|
|
541
|
+
"examples": "\n##### Piemērs\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",
|
|
542
|
+
"completion": {
|
|
543
|
+
"label": "DateOnly",
|
|
544
|
+
"detail": "DateOnly(dateValue) -> DateOnly",
|
|
545
|
+
"insertText": "DateOnly(${1:dateValue_})$0",
|
|
546
|
+
"insertTextMode": 2,
|
|
547
|
+
"insertTextFormat": 2,
|
|
548
|
+
"kind": 3,
|
|
549
|
+
"documentation": {
|
|
550
|
+
"kind": "markdown",
|
|
551
|
+
"value": "**[Iepriekšējā versija 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nCreates a DateOnly value from a given date.\n\n**Parametrs**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - The date from which to create the DateOnly value.\n\n**Uzrādīt vērtību**: DateOnly"
|
|
552
|
+
}
|
|
553
|
+
},
|
|
554
|
+
"parametersInfo": {
|
|
555
|
+
"min": 1,
|
|
556
|
+
"max": 1
|
|
557
|
+
}
|
|
558
|
+
},
|
|
559
|
+
{
|
|
560
|
+
"type": "function",
|
|
561
|
+
"name": "dateonly",
|
|
562
|
+
"bundle": "core",
|
|
563
|
+
"sinceVersion": "1.24",
|
|
564
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#dateonly3",
|
|
565
|
+
"description": "Creates a DateOnly date with the given Unix epoch number.",
|
|
566
|
+
"examples": "\n##### Piemērs\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",
|
|
567
|
+
"completion": {
|
|
568
|
+
"label": "DateOnly",
|
|
569
|
+
"detail": "DateOnly(epoch) -> DateOnly",
|
|
570
|
+
"insertText": "DateOnly(${1:epoch_})$0",
|
|
571
|
+
"insertTextMode": 2,
|
|
572
|
+
"insertTextFormat": 2,
|
|
573
|
+
"kind": 3,
|
|
574
|
+
"documentation": {
|
|
575
|
+
"kind": "markdown",
|
|
576
|
+
"value": "**[Iepriekšējā versija 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nCreates a DateOnly date with the given Unix epoch number.\n\n**Parametrs**\n\n- **epoch**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - The number of milliseconds since January 1, 1970 UTC.\n\n**Uzrādīt vērtību**: DateOnly"
|
|
577
|
+
}
|
|
578
|
+
},
|
|
579
|
+
"parametersInfo": {
|
|
580
|
+
"min": 1,
|
|
581
|
+
"max": 1
|
|
582
|
+
}
|
|
583
|
+
},
|
|
584
|
+
{
|
|
585
|
+
"type": "function",
|
|
586
|
+
"name": "dateonly",
|
|
587
|
+
"bundle": "core",
|
|
588
|
+
"sinceVersion": "1.24",
|
|
589
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#dateonly4",
|
|
590
|
+
"description": "Creates a DateOnly value from inputs representing the year, month, and day.",
|
|
591
|
+
"examples": "\n##### Piemērs\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",
|
|
592
|
+
"completion": {
|
|
593
|
+
"label": "DateOnly",
|
|
594
|
+
"detail": "DateOnly(year, month, day) -> DateOnly",
|
|
595
|
+
"insertText": "DateOnly(${1:year_}, ${2:month_}, ${3:day_})$0",
|
|
596
|
+
"insertTextMode": 2,
|
|
597
|
+
"insertTextFormat": 2,
|
|
598
|
+
"kind": 3,
|
|
599
|
+
"documentation": {
|
|
600
|
+
"kind": "markdown",
|
|
601
|
+
"value": "**[Iepriekšējā versija 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**Parametri**\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**Uzrādīt vērtību**: DateOnly"
|
|
602
|
+
}
|
|
603
|
+
},
|
|
604
|
+
"parametersInfo": {
|
|
605
|
+
"min": 3,
|
|
606
|
+
"max": 3
|
|
607
|
+
}
|
|
608
|
+
},
|
|
609
|
+
{
|
|
610
|
+
"type": "function",
|
|
611
|
+
"name": "dateonly",
|
|
612
|
+
"bundle": "core",
|
|
613
|
+
"sinceVersion": "1.24",
|
|
614
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#dateonly5",
|
|
615
|
+
"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.",
|
|
616
|
+
"examples": "\n##### Piemēri\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",
|
|
617
|
+
"completion": {
|
|
618
|
+
"label": "DateOnly",
|
|
619
|
+
"detail": "DateOnly(dateValue, format?) -> DateOnly",
|
|
620
|
+
"insertText": "DateOnly(${1:dateValue_})$0",
|
|
621
|
+
"insertTextMode": 2,
|
|
622
|
+
"insertTextFormat": 2,
|
|
623
|
+
"kind": 3,
|
|
624
|
+
"documentation": {
|
|
625
|
+
"kind": "markdown",
|
|
626
|
+
"value": "**[Iepriekšējā versija 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**Parametri**\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**Uzrādīt vērtību**: DateOnly"
|
|
627
|
+
}
|
|
628
|
+
},
|
|
629
|
+
"parametersInfo": {
|
|
630
|
+
"min": 1,
|
|
631
|
+
"max": 2
|
|
632
|
+
}
|
|
633
|
+
},
|
|
634
|
+
{
|
|
635
|
+
"type": "function",
|
|
636
|
+
"name": "dateonly",
|
|
637
|
+
"bundle": "core",
|
|
638
|
+
"sinceVersion": "1.24",
|
|
639
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#dateonly6",
|
|
640
|
+
"description": "Creates a copy of a DateOnly value.",
|
|
641
|
+
"examples": "\n##### Piemērs\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",
|
|
642
|
+
"completion": {
|
|
643
|
+
"label": "DateOnly",
|
|
644
|
+
"detail": "DateOnly(dateOnlyValue) -> DateOnly",
|
|
645
|
+
"insertText": "DateOnly(${1:dateOnlyValue_})$0",
|
|
646
|
+
"insertTextMode": 2,
|
|
647
|
+
"insertTextFormat": 2,
|
|
648
|
+
"kind": 3,
|
|
649
|
+
"documentation": {
|
|
650
|
+
"kind": "markdown",
|
|
651
|
+
"value": "**[Iepriekšējā versija 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nCreates a copy of a DateOnly value.\n\n**Parametrs**\n\n- **dateOnlyValue**: DateOnly - The DateOnly value to copy.\n\n**Uzrādīt vērtību**: DateOnly"
|
|
652
|
+
}
|
|
653
|
+
},
|
|
654
|
+
"parametersInfo": {
|
|
655
|
+
"min": 1,
|
|
656
|
+
"max": 1
|
|
657
|
+
}
|
|
658
|
+
}
|
|
659
|
+
],
|
|
329
660
|
{
|
|
330
661
|
"type": "function",
|
|
331
662
|
"name": "day",
|
|
332
663
|
"bundle": "core",
|
|
333
664
|
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#day",
|
|
334
665
|
"description": "Uzrāda norādītā datuma mēneša dienu.",
|
|
335
|
-
"examples": "\n#####
|
|
666
|
+
"examples": "\n##### Piemēri\n\nIegūst pašreizējā datuma mēneša dienu.\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",
|
|
336
667
|
"completion": {
|
|
337
668
|
"label": "Day",
|
|
338
669
|
"detail": "Day(dateValue) -> Number",
|
|
@@ -342,7 +673,7 @@
|
|
|
342
673
|
"kind": 3,
|
|
343
674
|
"documentation": {
|
|
344
675
|
"kind": "markdown",
|
|
345
|
-
"value": "Uzrāda norādītā datuma mēneša dienu.\n\n**Parametrs**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - Datuma vērtība, no kuras iegūt mēneša dienu.\n\n**Uzrādīt vērtību**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
676
|
+
"value": "Uzrāda norādītā datuma mēneša dienu.\n\n**Parametrs**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) \\| DateOnly - Datuma vērtība, no kuras iegūt mēneša dienu.\n\n**Uzrādīt vērtību**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
346
677
|
}
|
|
347
678
|
},
|
|
348
679
|
"parametersInfo": {
|
|
@@ -350,30 +681,57 @@
|
|
|
350
681
|
"max": 1
|
|
351
682
|
}
|
|
352
683
|
},
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
"
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
"
|
|
369
|
-
|
|
684
|
+
[
|
|
685
|
+
{
|
|
686
|
+
"type": "function",
|
|
687
|
+
"name": "hour",
|
|
688
|
+
"bundle": "core",
|
|
689
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#hour1",
|
|
690
|
+
"description": "Returns the hour of the time in the given date (0-23).",
|
|
691
|
+
"examples": "\n##### Piemērs\n\nGets the hour of the current time\n\n```arcade\nHour(Now())\n```\n\n",
|
|
692
|
+
"completion": {
|
|
693
|
+
"label": "Hour",
|
|
694
|
+
"detail": "Hour(dateValue) -> Number",
|
|
695
|
+
"insertText": "Hour(${1:dateValue_})$0",
|
|
696
|
+
"insertTextMode": 2,
|
|
697
|
+
"insertTextFormat": 2,
|
|
698
|
+
"kind": 3,
|
|
699
|
+
"documentation": {
|
|
700
|
+
"kind": "markdown",
|
|
701
|
+
"value": "Returns the hour of the time in the given date (0-23).\n\n**Parametrs**\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**Uzrādīt vērtību**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
702
|
+
}
|
|
703
|
+
},
|
|
704
|
+
"parametersInfo": {
|
|
705
|
+
"min": 1,
|
|
706
|
+
"max": 1
|
|
370
707
|
}
|
|
371
708
|
},
|
|
372
|
-
|
|
373
|
-
"
|
|
374
|
-
"
|
|
709
|
+
{
|
|
710
|
+
"type": "function",
|
|
711
|
+
"name": "hour",
|
|
712
|
+
"bundle": "core",
|
|
713
|
+
"sinceVersion": "1.24",
|
|
714
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#hour2",
|
|
715
|
+
"description": "Returns the hour of the given time (0-23).",
|
|
716
|
+
"examples": "\n##### Piemērs\n\nGets the hour of the time\n\n```arcade\nHour(Time(2, 59, 23))\n// returns 2\n```\n\n",
|
|
717
|
+
"completion": {
|
|
718
|
+
"label": "Hour",
|
|
719
|
+
"detail": "Hour(timeValue) -> Number",
|
|
720
|
+
"insertText": "Hour(${1:timeValue_})$0",
|
|
721
|
+
"insertTextMode": 2,
|
|
722
|
+
"insertTextFormat": 2,
|
|
723
|
+
"kind": 3,
|
|
724
|
+
"documentation": {
|
|
725
|
+
"kind": "markdown",
|
|
726
|
+
"value": "**[Iepriekšējā versija 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nReturns the hour of the given time (0-23).\n\n**Parametrs**\n\n- **timeValue**: Time - A Time value from which to get the hour.\n\n**Uzrādīt vērtību**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
727
|
+
}
|
|
728
|
+
},
|
|
729
|
+
"parametersInfo": {
|
|
730
|
+
"min": 1,
|
|
731
|
+
"max": 1
|
|
732
|
+
}
|
|
375
733
|
}
|
|
376
|
-
|
|
734
|
+
],
|
|
377
735
|
{
|
|
378
736
|
"type": "function",
|
|
379
737
|
"name": "isomonth",
|
|
@@ -381,7 +739,7 @@
|
|
|
381
739
|
"sinceVersion": "1.12",
|
|
382
740
|
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#isomonth",
|
|
383
741
|
"description": "Uzrāda norādītā datuma mēnesi, pamatojoties uz standartu ISO 8601. Vērtības ir diapazonā no 1 līdz 12, kur janvāris ir “1” un decembris ir “12”.",
|
|
384
|
-
"examples": "\n#####
|
|
742
|
+
"examples": "\n##### Piemēri\n\nIegūst norādītā datuma mēnesi, saskaņā ar standartu ISO 8601. Decembra mēnesī uzrāda `12`.\n\n```arcade\nISOMonth(Date(1980, 11, 31))\n```\n\nGets the month of the given DateOnly value, based on the ISO 8601 standard.\n\n```arcade\nISOMonth(DateOnly(1996, 0, 10))\n// returns 1, for January\n```\n\n",
|
|
385
743
|
"completion": {
|
|
386
744
|
"label": "ISOMonth",
|
|
387
745
|
"detail": "ISOMonth(dateValue) -> Number",
|
|
@@ -391,7 +749,7 @@
|
|
|
391
749
|
"kind": 3,
|
|
392
750
|
"documentation": {
|
|
393
751
|
"kind": "markdown",
|
|
394
|
-
"value": "**[Iepriekšējā versija 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nUzrāda norādītā datuma mēnesi, pamatojoties uz standartu ISO 8601. Vērtības ir diapazonā no 1 līdz 12, kur janvāris ir “1” un decembris ir “12”.\n\n**Parametrs**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - Datuma vērtība, no kuras iegūt mēnesi.\n\n**Uzrādīt vērtību**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
752
|
+
"value": "**[Iepriekšējā versija 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nUzrāda norādītā datuma mēnesi, pamatojoties uz standartu ISO 8601. Vērtības ir diapazonā no 1 līdz 12, kur janvāris ir “1” un decembris ir “12”.\n\n**Parametrs**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) \\| DateOnly - Datuma vērtība, no kuras iegūt mēnesi.\n\n**Uzrādīt vērtību**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
395
753
|
}
|
|
396
754
|
},
|
|
397
755
|
"parametersInfo": {
|
|
@@ -406,7 +764,7 @@
|
|
|
406
764
|
"sinceVersion": "1.12",
|
|
407
765
|
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#isoweek",
|
|
408
766
|
"description": "Uzrāda norādītā datuma nedēļu gadā, saskaņā arstandarta ISO 8601 nedēļas datumu kalendāru. Vērtības mainās diapazonā no 1 līdz 53, kur gada pirmā nedēļa ir `1` un gada pēdējā nedēļa ir `52` vai `53` (atkarībā no gada).",
|
|
409
|
-
"examples": "\n#####
|
|
767
|
+
"examples": "\n##### Piemēri\n\nIegūst norādītā datuma nedēļu, pamatojoties uz standartu ISO 8601. Uzrāda `1`, jo šis datums ir iekļauts nākamā gada pirmajā nedēļā.\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",
|
|
410
768
|
"completion": {
|
|
411
769
|
"label": "ISOWeek",
|
|
412
770
|
"detail": "ISOWeek(dateValue) -> Number",
|
|
@@ -416,7 +774,7 @@
|
|
|
416
774
|
"kind": 3,
|
|
417
775
|
"documentation": {
|
|
418
776
|
"kind": "markdown",
|
|
419
|
-
"value": "**[Iepriekšējā versija 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nUzrāda norādītā datuma nedēļu gadā, saskaņā arstandarta ISO 8601 nedēļas datumu kalendāru. Vērtības mainās diapazonā no 1 līdz 53, kur gada pirmā nedēļa ir `1` un gada pēdējā nedēļa ir `52` vai `53` (atkarībā no gada).\n\n**Parametrs**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - Datuma vērtība, no kuras iegūt nedēļu.\n\n**Uzrādīt vērtību**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
777
|
+
"value": "**[Iepriekšējā versija 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nUzrāda norādītā datuma nedēļu gadā, saskaņā arstandarta ISO 8601 nedēļas datumu kalendāru. Vērtības mainās diapazonā no 1 līdz 53, kur gada pirmā nedēļa ir `1` un gada pēdējā nedēļa ir `52` vai `53` (atkarībā no gada).\n\n**Parametrs**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) \\| DateOnly - Datuma vērtība, no kuras iegūt nedēļu.\n\n**Uzrādīt vērtību**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
420
778
|
}
|
|
421
779
|
},
|
|
422
780
|
"parametersInfo": {
|
|
@@ -431,7 +789,7 @@
|
|
|
431
789
|
"sinceVersion": "1.12",
|
|
432
790
|
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#isoweekday",
|
|
433
791
|
"description": "Uzrāda norādītā datuma nedēļas dienu, pamatojoties uz standartu ISO 8601. Vērtības ir diapazonā no 1 līdz 7, kur pirmdiena ir “1”, bet svētdiena ir “7”.",
|
|
434
|
-
"examples": "\n#####
|
|
792
|
+
"examples": "\n##### Piemēri\n\nUzrāda norādītā datuma nedēļas dienu, pamatojoties uz standartu ISO 8601. Uzrāda `3`, apzīmējot trešdienu.\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",
|
|
435
793
|
"completion": {
|
|
436
794
|
"label": "ISOWeekday",
|
|
437
795
|
"detail": "ISOWeekday(dateValue) -> Number",
|
|
@@ -441,7 +799,7 @@
|
|
|
441
799
|
"kind": 3,
|
|
442
800
|
"documentation": {
|
|
443
801
|
"kind": "markdown",
|
|
444
|
-
"value": "**[Iepriekšējā versija 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nUzrāda norādītā datuma nedēļas dienu, pamatojoties uz standartu ISO 8601. Vērtības ir diapazonā no 1 līdz 7, kur pirmdiena ir “1”, bet svētdiena ir “7”.\n\n**Parametrs**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - Datuma vērtība, no kuras uzrādīt nedēļas dienu.\n\n**Uzrādīt vērtību**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
802
|
+
"value": "**[Iepriekšējā versija 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nUzrāda norādītā datuma nedēļas dienu, pamatojoties uz standartu ISO 8601. Vērtības ir diapazonā no 1 līdz 7, kur pirmdiena ir “1”, bet svētdiena ir “7”.\n\n**Parametrs**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) \\| DateOnly - Datuma vērtība, no kuras uzrādīt nedēļas dienu.\n\n**Uzrādīt vērtību**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
445
803
|
}
|
|
446
804
|
},
|
|
447
805
|
"parametersInfo": {
|
|
@@ -456,65 +814,17 @@
|
|
|
456
814
|
"sinceVersion": "1.12",
|
|
457
815
|
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#isoyear",
|
|
458
816
|
"description": "Uzrāda norādītā datuma gadu, saskaņā ar standarta ISO 8601 nedēļas datumu kalendāru.",
|
|
459
|
-
"examples": "\n#####
|
|
817
|
+
"examples": "\n##### Piemēri\n\nIegūst norādītā datuma gadu, saskaņā ar standarta ISO 8601 nedēļas datumu kalendāru. Uzrāda `1981`, jo šis datums ir iekļauts nākamā gada pirmajā nedēļā.\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",
|
|
460
818
|
"completion": {
|
|
461
819
|
"label": "ISOYear",
|
|
462
|
-
"detail": "ISOYear(dateValue) -> Number",
|
|
463
|
-
"insertText": "ISOYear(${1:dateValue_})$0",
|
|
464
|
-
"insertTextMode": 2,
|
|
465
|
-
"insertTextFormat": 2,
|
|
466
|
-
"kind": 3,
|
|
467
|
-
"documentation": {
|
|
468
|
-
"kind": "markdown",
|
|
469
|
-
"value": "**[Iepriekšējā versija 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nUzrāda norādītā datuma gadu, saskaņā ar standarta ISO 8601 nedēļas datumu kalendāru.\n\n**Parametrs**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - Datuma vērtība, no kuras iegūt gadu.\n\n**Uzrādīt vērtību**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
470
|
-
}
|
|
471
|
-
},
|
|
472
|
-
"parametersInfo": {
|
|
473
|
-
"min": 1,
|
|
474
|
-
"max": 1
|
|
475
|
-
}
|
|
476
|
-
},
|
|
477
|
-
{
|
|
478
|
-
"type": "function",
|
|
479
|
-
"name": "millisecond",
|
|
480
|
-
"bundle": "core",
|
|
481
|
-
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#millisecond",
|
|
482
|
-
"description": "Uzrāda datuma laika milisekundi.",
|
|
483
|
-
"examples": "\n##### Piemērs\n\nIegūst pašreizējā laika milisekundi\n\n```arcade\nMillisecond(Now())\n```\n\n",
|
|
484
|
-
"completion": {
|
|
485
|
-
"label": "Millisecond",
|
|
486
|
-
"detail": "Millisecond(dateValue) -> Number",
|
|
487
|
-
"insertText": "Millisecond(${1:dateValue_})$0",
|
|
488
|
-
"insertTextMode": 2,
|
|
489
|
-
"insertTextFormat": 2,
|
|
490
|
-
"kind": 3,
|
|
491
|
-
"documentation": {
|
|
492
|
-
"kind": "markdown",
|
|
493
|
-
"value": "Uzrāda datuma laika milisekundi.\n\n**Parametrs**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - Datuma vērtība, no kuras iegūt laika milisekundi.\n\n**Uzrādīt vērtību**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
494
|
-
}
|
|
495
|
-
},
|
|
496
|
-
"parametersInfo": {
|
|
497
|
-
"min": 1,
|
|
498
|
-
"max": 1
|
|
499
|
-
}
|
|
500
|
-
},
|
|
501
|
-
{
|
|
502
|
-
"type": "function",
|
|
503
|
-
"name": "minute",
|
|
504
|
-
"bundle": "core",
|
|
505
|
-
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#minute",
|
|
506
|
-
"description": "Uzrāda norādītā datuma laika minūti.",
|
|
507
|
-
"examples": "\n##### Piemērs\n\nIegūst pašreizējā laika minūti\n\n```arcade\nMinute(Now())\n```\n\n",
|
|
508
|
-
"completion": {
|
|
509
|
-
"label": "Minute",
|
|
510
|
-
"detail": "Minute(dateValue) -> Number",
|
|
511
|
-
"insertText": "Minute(${1:dateValue_})$0",
|
|
820
|
+
"detail": "ISOYear(dateValue) -> Number",
|
|
821
|
+
"insertText": "ISOYear(${1:dateValue_})$0",
|
|
512
822
|
"insertTextMode": 2,
|
|
513
823
|
"insertTextFormat": 2,
|
|
514
824
|
"kind": 3,
|
|
515
825
|
"documentation": {
|
|
516
826
|
"kind": "markdown",
|
|
517
|
-
"value": "
|
|
827
|
+
"value": "**[Iepriekšējā versija 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nUzrāda norādītā datuma gadu, saskaņā ar standarta ISO 8601 nedēļas datumu kalendāru.\n\n**Parametrs**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) \\| DateOnly - Datuma vērtība, no kuras iegūt gadu.\n\n**Uzrādīt vērtību**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
518
828
|
}
|
|
519
829
|
},
|
|
520
830
|
"parametersInfo": {
|
|
@@ -522,13 +832,115 @@
|
|
|
522
832
|
"max": 1
|
|
523
833
|
}
|
|
524
834
|
},
|
|
835
|
+
[
|
|
836
|
+
{
|
|
837
|
+
"type": "function",
|
|
838
|
+
"name": "millisecond",
|
|
839
|
+
"bundle": "core",
|
|
840
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#millisecond1",
|
|
841
|
+
"description": "Returns the millisecond of the time in the date.",
|
|
842
|
+
"examples": "\n##### Piemērs\n\nGets the millisecond of the current time\n\n```arcade\nMillisecond(Now())\n```\n\n",
|
|
843
|
+
"completion": {
|
|
844
|
+
"label": "Millisecond",
|
|
845
|
+
"detail": "Millisecond(dateValue) -> Number",
|
|
846
|
+
"insertText": "Millisecond(${1:dateValue_})$0",
|
|
847
|
+
"insertTextMode": 2,
|
|
848
|
+
"insertTextFormat": 2,
|
|
849
|
+
"kind": 3,
|
|
850
|
+
"documentation": {
|
|
851
|
+
"kind": "markdown",
|
|
852
|
+
"value": "Returns the millisecond of the time in the date.\n\n**Parametrs**\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**Uzrādīt vērtību**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
853
|
+
}
|
|
854
|
+
},
|
|
855
|
+
"parametersInfo": {
|
|
856
|
+
"min": 1,
|
|
857
|
+
"max": 1
|
|
858
|
+
}
|
|
859
|
+
},
|
|
860
|
+
{
|
|
861
|
+
"type": "function",
|
|
862
|
+
"name": "millisecond",
|
|
863
|
+
"bundle": "core",
|
|
864
|
+
"sinceVersion": "1.24",
|
|
865
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#millisecond2",
|
|
866
|
+
"description": "Returns the millisecond of the given time.",
|
|
867
|
+
"examples": "\n##### Piemērs\n\nGets the millisecond of the time\n\n```arcade\nHour(Time(2, 59, 23, 450))\n// returns 450\n```\n\n",
|
|
868
|
+
"completion": {
|
|
869
|
+
"label": "Millisecond",
|
|
870
|
+
"detail": "Millisecond(timeValue) -> Number",
|
|
871
|
+
"insertText": "Millisecond(${1:timeValue_})$0",
|
|
872
|
+
"insertTextMode": 2,
|
|
873
|
+
"insertTextFormat": 2,
|
|
874
|
+
"kind": 3,
|
|
875
|
+
"documentation": {
|
|
876
|
+
"kind": "markdown",
|
|
877
|
+
"value": "**[Iepriekšējā versija 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nReturns the millisecond of the given time.\n\n**Parametrs**\n\n- **timeValue**: Time - A Time value from which to get the millisecond.\n\n**Uzrādīt vērtību**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
878
|
+
}
|
|
879
|
+
},
|
|
880
|
+
"parametersInfo": {
|
|
881
|
+
"min": 1,
|
|
882
|
+
"max": 1
|
|
883
|
+
}
|
|
884
|
+
}
|
|
885
|
+
],
|
|
886
|
+
[
|
|
887
|
+
{
|
|
888
|
+
"type": "function",
|
|
889
|
+
"name": "minute",
|
|
890
|
+
"bundle": "core",
|
|
891
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#minute1",
|
|
892
|
+
"description": "Returns the minute of the time in the given date.",
|
|
893
|
+
"examples": "\n##### Piemērs\n\nGets the minute of the current time\n\n```arcade\nMinute(Now())\n```\n\n",
|
|
894
|
+
"completion": {
|
|
895
|
+
"label": "Minute",
|
|
896
|
+
"detail": "Minute(dateValue) -> Number",
|
|
897
|
+
"insertText": "Minute(${1:dateValue_})$0",
|
|
898
|
+
"insertTextMode": 2,
|
|
899
|
+
"insertTextFormat": 2,
|
|
900
|
+
"kind": 3,
|
|
901
|
+
"documentation": {
|
|
902
|
+
"kind": "markdown",
|
|
903
|
+
"value": "Returns the minute of the time in the given date.\n\n**Parametrs**\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**Uzrādīt vērtību**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
904
|
+
}
|
|
905
|
+
},
|
|
906
|
+
"parametersInfo": {
|
|
907
|
+
"min": 1,
|
|
908
|
+
"max": 1
|
|
909
|
+
}
|
|
910
|
+
},
|
|
911
|
+
{
|
|
912
|
+
"type": "function",
|
|
913
|
+
"name": "minute",
|
|
914
|
+
"bundle": "core",
|
|
915
|
+
"sinceVersion": "1.24",
|
|
916
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#minute2",
|
|
917
|
+
"description": "Returns the minute of the given time.",
|
|
918
|
+
"examples": "\n##### Piemērs\n\nGets the minute of the time\n\n```arcade\nHour(Time(2, 59, 23))\n// returns 59\n```\n\n",
|
|
919
|
+
"completion": {
|
|
920
|
+
"label": "Minute",
|
|
921
|
+
"detail": "Minute(timeValue) -> Number",
|
|
922
|
+
"insertText": "Minute(${1:timeValue_})$0",
|
|
923
|
+
"insertTextMode": 2,
|
|
924
|
+
"insertTextFormat": 2,
|
|
925
|
+
"kind": 3,
|
|
926
|
+
"documentation": {
|
|
927
|
+
"kind": "markdown",
|
|
928
|
+
"value": "**[Iepriekšējā versija 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nReturns the minute of the given time.\n\n**Parametrs**\n\n- **timeValue**: Time - A Time value from which to get the minute.\n\n**Uzrādīt vērtību**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
929
|
+
}
|
|
930
|
+
},
|
|
931
|
+
"parametersInfo": {
|
|
932
|
+
"min": 1,
|
|
933
|
+
"max": 1
|
|
934
|
+
}
|
|
935
|
+
}
|
|
936
|
+
],
|
|
525
937
|
{
|
|
526
938
|
"type": "function",
|
|
527
939
|
"name": "month",
|
|
528
940
|
"bundle": "core",
|
|
529
941
|
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#month",
|
|
530
942
|
"description": "Uzrāda norādītā datuma mēnesi. Vērtības ir diapazonā no 0 līdz 11, kur janvāris ir `0` un decembris ir `11`.",
|
|
531
|
-
"examples": "\n#####
|
|
943
|
+
"examples": "\n##### Piemēri\n\nIegūst norādītā datuma mēnesi. Decembra mēnesī uzrāda 11.\n\n```arcade\nMonth(Date(1980, 11, 31))\n// returns 11\n```\n\nGets the month of the given DateOnly value.\n\n```arcade\nMonth(DateOnly(1996, 0, 31))\n// returns 0, for the month of January\n```\n\n",
|
|
532
944
|
"completion": {
|
|
533
945
|
"label": "Month",
|
|
534
946
|
"detail": "Month(dateValue) -> Number",
|
|
@@ -538,7 +950,7 @@
|
|
|
538
950
|
"kind": 3,
|
|
539
951
|
"documentation": {
|
|
540
952
|
"kind": "markdown",
|
|
541
|
-
"value": "Uzrāda norādītā datuma mēnesi. Vērtības ir diapazonā no 0 līdz 11, kur janvāris ir `0` un decembris ir `11`.\n\n**Parametrs**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - Datuma vērtība, no kuras iegūt mēnesi.\n\n**Uzrādīt vērtību**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
953
|
+
"value": "Uzrāda norādītā datuma mēnesi. Vērtības ir diapazonā no 0 līdz 11, kur janvāris ir `0` un decembris ir `11`.\n\n**Parametrs**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) \\| DateOnly - Datuma vērtība, no kuras iegūt mēnesi.\n\n**Uzrādīt vērtību**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
542
954
|
}
|
|
543
955
|
},
|
|
544
956
|
"parametersInfo": {
|
|
@@ -570,23 +982,227 @@
|
|
|
570
982
|
"max": 0
|
|
571
983
|
}
|
|
572
984
|
},
|
|
985
|
+
[
|
|
986
|
+
{
|
|
987
|
+
"type": "function",
|
|
988
|
+
"name": "second",
|
|
989
|
+
"bundle": "core",
|
|
990
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#second1",
|
|
991
|
+
"description": "Returns the second of the time in the date.",
|
|
992
|
+
"examples": "\n##### Piemērs\n\nGets the second of the current time\n\n```arcade\nSecond(Now())\n```\n\n",
|
|
993
|
+
"completion": {
|
|
994
|
+
"label": "Second",
|
|
995
|
+
"detail": "Second(dateValue) -> Number",
|
|
996
|
+
"insertText": "Second(${1:dateValue_})$0",
|
|
997
|
+
"insertTextMode": 2,
|
|
998
|
+
"insertTextFormat": 2,
|
|
999
|
+
"kind": 3,
|
|
1000
|
+
"documentation": {
|
|
1001
|
+
"kind": "markdown",
|
|
1002
|
+
"value": "Returns the second of the time in the date.\n\n**Parametrs**\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**Uzrādīt vērtību**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
1003
|
+
}
|
|
1004
|
+
},
|
|
1005
|
+
"parametersInfo": {
|
|
1006
|
+
"min": 1,
|
|
1007
|
+
"max": 1
|
|
1008
|
+
}
|
|
1009
|
+
},
|
|
1010
|
+
{
|
|
1011
|
+
"type": "function",
|
|
1012
|
+
"name": "second",
|
|
1013
|
+
"bundle": "core",
|
|
1014
|
+
"sinceVersion": "1.24",
|
|
1015
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#second2",
|
|
1016
|
+
"description": "Returns the second of the given time.",
|
|
1017
|
+
"examples": "\n##### Piemērs\n\nGets the second of the time\n\n```arcade\nHour(Time(2, 59, 23))\n// returns 23\n```\n\n",
|
|
1018
|
+
"completion": {
|
|
1019
|
+
"label": "Second",
|
|
1020
|
+
"detail": "Second(timeValue) -> Number",
|
|
1021
|
+
"insertText": "Second(${1:timeValue_})$0",
|
|
1022
|
+
"insertTextMode": 2,
|
|
1023
|
+
"insertTextFormat": 2,
|
|
1024
|
+
"kind": 3,
|
|
1025
|
+
"documentation": {
|
|
1026
|
+
"kind": "markdown",
|
|
1027
|
+
"value": "**[Iepriekšējā versija 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nReturns the second of the given time.\n\n**Parametrs**\n\n- **timeValue**: Time - A Time value from which to get the second.\n\n**Uzrādīt vērtību**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
1028
|
+
}
|
|
1029
|
+
},
|
|
1030
|
+
"parametersInfo": {
|
|
1031
|
+
"min": 1,
|
|
1032
|
+
"max": 1
|
|
1033
|
+
}
|
|
1034
|
+
}
|
|
1035
|
+
],
|
|
1036
|
+
[
|
|
1037
|
+
{
|
|
1038
|
+
"type": "function",
|
|
1039
|
+
"name": "time",
|
|
1040
|
+
"bundle": "core",
|
|
1041
|
+
"sinceVersion": "1.24",
|
|
1042
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#time1",
|
|
1043
|
+
"description": "Creates a Time value representing the current time in the time zone of the profile's execution context.",
|
|
1044
|
+
"examples": "\n##### Piemērs\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",
|
|
1045
|
+
"completion": {
|
|
1046
|
+
"label": "Time",
|
|
1047
|
+
"detail": "Time() -> Time",
|
|
1048
|
+
"insertText": "Time($0)",
|
|
1049
|
+
"insertTextMode": 2,
|
|
1050
|
+
"insertTextFormat": 2,
|
|
1051
|
+
"kind": 3,
|
|
1052
|
+
"documentation": {
|
|
1053
|
+
"kind": "markdown",
|
|
1054
|
+
"value": "**[Iepriekšējā versija 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**Uzrādīt vērtību**: Time"
|
|
1055
|
+
}
|
|
1056
|
+
},
|
|
1057
|
+
"parametersInfo": {
|
|
1058
|
+
"min": 0,
|
|
1059
|
+
"max": 0
|
|
1060
|
+
}
|
|
1061
|
+
},
|
|
1062
|
+
{
|
|
1063
|
+
"type": "function",
|
|
1064
|
+
"name": "time",
|
|
1065
|
+
"bundle": "core",
|
|
1066
|
+
"sinceVersion": "1.24",
|
|
1067
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#time2",
|
|
1068
|
+
"description": "Creates a Time value from a given date.",
|
|
1069
|
+
"examples": "\n##### Piemērs\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",
|
|
1070
|
+
"completion": {
|
|
1071
|
+
"label": "Time",
|
|
1072
|
+
"detail": "Time(dateValue) -> Time",
|
|
1073
|
+
"insertText": "Time(${1:dateValue_})$0",
|
|
1074
|
+
"insertTextMode": 2,
|
|
1075
|
+
"insertTextFormat": 2,
|
|
1076
|
+
"kind": 3,
|
|
1077
|
+
"documentation": {
|
|
1078
|
+
"kind": "markdown",
|
|
1079
|
+
"value": "**[Iepriekšējā versija 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nCreates a Time value from a given date.\n\n**Parametrs**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - The date from which to get the time.\n\n**Uzrādīt vērtību**: Time"
|
|
1080
|
+
}
|
|
1081
|
+
},
|
|
1082
|
+
"parametersInfo": {
|
|
1083
|
+
"min": 1,
|
|
1084
|
+
"max": 1
|
|
1085
|
+
}
|
|
1086
|
+
},
|
|
1087
|
+
{
|
|
1088
|
+
"type": "function",
|
|
1089
|
+
"name": "time",
|
|
1090
|
+
"bundle": "core",
|
|
1091
|
+
"sinceVersion": "1.24",
|
|
1092
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#time3",
|
|
1093
|
+
"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`.",
|
|
1094
|
+
"examples": "\n##### Piemēri\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",
|
|
1095
|
+
"completion": {
|
|
1096
|
+
"label": "Time",
|
|
1097
|
+
"detail": "Time(numValue) -> Time",
|
|
1098
|
+
"insertText": "Time(${1:numValue_})$0",
|
|
1099
|
+
"insertTextMode": 2,
|
|
1100
|
+
"insertTextFormat": 2,
|
|
1101
|
+
"kind": 3,
|
|
1102
|
+
"documentation": {
|
|
1103
|
+
"kind": "markdown",
|
|
1104
|
+
"value": "**[Iepriekšējā versija 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**Parametrs**\n\n- **numValue**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - The number of milliseconds since midnight.\n\n**Uzrādīt vērtību**: Time"
|
|
1105
|
+
}
|
|
1106
|
+
},
|
|
1107
|
+
"parametersInfo": {
|
|
1108
|
+
"min": 1,
|
|
1109
|
+
"max": 1
|
|
1110
|
+
}
|
|
1111
|
+
},
|
|
1112
|
+
{
|
|
1113
|
+
"type": "function",
|
|
1114
|
+
"name": "time",
|
|
1115
|
+
"bundle": "core",
|
|
1116
|
+
"sinceVersion": "1.24",
|
|
1117
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#time4",
|
|
1118
|
+
"description": "Creates a Time value from inputs representing hours, minutes, seconds, and milliseconds.",
|
|
1119
|
+
"examples": "\n##### Piemērs\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",
|
|
1120
|
+
"completion": {
|
|
1121
|
+
"label": "Time",
|
|
1122
|
+
"detail": "Time(hours, minutes, seconds?, milliseconds?) -> Time",
|
|
1123
|
+
"insertText": "Time(${1:hours_}, ${2:minutes_})$0",
|
|
1124
|
+
"insertTextMode": 2,
|
|
1125
|
+
"insertTextFormat": 2,
|
|
1126
|
+
"kind": 3,
|
|
1127
|
+
"documentation": {
|
|
1128
|
+
"kind": "markdown",
|
|
1129
|
+
"value": "**[Iepriekšējā versija 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**Parametri**\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**Uzrādīt vērtību**: Time"
|
|
1130
|
+
}
|
|
1131
|
+
},
|
|
1132
|
+
"parametersInfo": {
|
|
1133
|
+
"min": 2,
|
|
1134
|
+
"max": 4
|
|
1135
|
+
}
|
|
1136
|
+
},
|
|
1137
|
+
{
|
|
1138
|
+
"type": "function",
|
|
1139
|
+
"name": "time",
|
|
1140
|
+
"bundle": "core",
|
|
1141
|
+
"sinceVersion": "1.24",
|
|
1142
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#time5",
|
|
1143
|
+
"description": "Creates a Time value from a text input representing time, with an optional input indicating the text's format.",
|
|
1144
|
+
"examples": "\n##### Piemēri\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",
|
|
1145
|
+
"completion": {
|
|
1146
|
+
"label": "Time",
|
|
1147
|
+
"detail": "Time(timeValue, format?) -> Time",
|
|
1148
|
+
"insertText": "Time(${1:timeValue_})$0",
|
|
1149
|
+
"insertTextMode": 2,
|
|
1150
|
+
"insertTextFormat": 2,
|
|
1151
|
+
"kind": 3,
|
|
1152
|
+
"documentation": {
|
|
1153
|
+
"kind": "markdown",
|
|
1154
|
+
"value": "**[Iepriekšējā versija 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**Parametri**\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**Uzrādīt vērtību**: Time"
|
|
1155
|
+
}
|
|
1156
|
+
},
|
|
1157
|
+
"parametersInfo": {
|
|
1158
|
+
"min": 1,
|
|
1159
|
+
"max": 2
|
|
1160
|
+
}
|
|
1161
|
+
}
|
|
1162
|
+
],
|
|
1163
|
+
{
|
|
1164
|
+
"type": "function",
|
|
1165
|
+
"name": "timestamp",
|
|
1166
|
+
"bundle": "core",
|
|
1167
|
+
"sinceVersion": "1.1",
|
|
1168
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#timestamp",
|
|
1169
|
+
"description": "Izveido datuma vērtību, kas atspoguļo pašreizējo datumu un laiku UTC.",
|
|
1170
|
+
"examples": "\n##### Piemērs\n\nIzveido datumu UTC laikā\n\n```arcade\n// Date that represents Jan 27, 2023, 8:41:20 PM UTC\nTimestamp()\n```\n\n",
|
|
1171
|
+
"completion": {
|
|
1172
|
+
"label": "Timestamp",
|
|
1173
|
+
"detail": "Timestamp() -> Date",
|
|
1174
|
+
"insertText": "Timestamp($0)",
|
|
1175
|
+
"insertTextMode": 2,
|
|
1176
|
+
"insertTextFormat": 2,
|
|
1177
|
+
"kind": 3,
|
|
1178
|
+
"documentation": {
|
|
1179
|
+
"kind": "markdown",
|
|
1180
|
+
"value": "**[Iepriekšējā versija 1.1](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nIzveido datuma vērtību, kas atspoguļo pašreizējo datumu un laiku UTC.\n\n**Uzrādīt vērtību**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)"
|
|
1181
|
+
}
|
|
1182
|
+
},
|
|
1183
|
+
"parametersInfo": {
|
|
1184
|
+
"min": 0,
|
|
1185
|
+
"max": 0
|
|
1186
|
+
}
|
|
1187
|
+
},
|
|
573
1188
|
{
|
|
574
1189
|
"type": "function",
|
|
575
|
-
"name": "
|
|
1190
|
+
"name": "timezone",
|
|
576
1191
|
"bundle": "core",
|
|
577
|
-
"
|
|
578
|
-
"
|
|
579
|
-
"
|
|
1192
|
+
"sinceVersion": "1.24",
|
|
1193
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#timezone",
|
|
1194
|
+
"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",
|
|
1195
|
+
"examples": "\n##### Piemērs\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",
|
|
580
1196
|
"completion": {
|
|
581
|
-
"label": "
|
|
582
|
-
"detail": "
|
|
583
|
-
"insertText": "
|
|
1197
|
+
"label": "TimeZone",
|
|
1198
|
+
"detail": "TimeZone(dateValue) -> Text",
|
|
1199
|
+
"insertText": "TimeZone(${1:dateValue_})$0",
|
|
584
1200
|
"insertTextMode": 2,
|
|
585
1201
|
"insertTextFormat": 2,
|
|
586
1202
|
"kind": 3,
|
|
587
1203
|
"documentation": {
|
|
588
1204
|
"kind": "markdown",
|
|
589
|
-
"value": "
|
|
1205
|
+
"value": "**[Iepriekšējā versija 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**Parametrs**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - A Date value from which to get the time zone.\n\n**Uzrādīt vērtību**: [Text](https://developers.arcgis.com/arcade/guide/types/#text)"
|
|
590
1206
|
}
|
|
591
1207
|
},
|
|
592
1208
|
"parametersInfo": {
|
|
@@ -596,27 +1212,27 @@
|
|
|
596
1212
|
},
|
|
597
1213
|
{
|
|
598
1214
|
"type": "function",
|
|
599
|
-
"name": "
|
|
1215
|
+
"name": "timezoneoffset",
|
|
600
1216
|
"bundle": "core",
|
|
601
|
-
"sinceVersion": "1.
|
|
602
|
-
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#
|
|
603
|
-
"description": "
|
|
604
|
-
"examples": "\n##### Piemērs\n\
|
|
1217
|
+
"sinceVersion": "1.24",
|
|
1218
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#timezoneoffset",
|
|
1219
|
+
"description": "Returns the time zone offset in minutes from UTC for the given Date.",
|
|
1220
|
+
"examples": "\n##### Piemērs\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",
|
|
605
1221
|
"completion": {
|
|
606
|
-
"label": "
|
|
607
|
-
"detail": "
|
|
608
|
-
"insertText": "
|
|
1222
|
+
"label": "TimeZoneOffset",
|
|
1223
|
+
"detail": "TimeZoneOffset(dateValue) -> Number",
|
|
1224
|
+
"insertText": "TimeZoneOffset(${1:dateValue_})$0",
|
|
609
1225
|
"insertTextMode": 2,
|
|
610
1226
|
"insertTextFormat": 2,
|
|
611
1227
|
"kind": 3,
|
|
612
1228
|
"documentation": {
|
|
613
1229
|
"kind": "markdown",
|
|
614
|
-
"value": "**[Iepriekšējā versija 1.
|
|
1230
|
+
"value": "**[Iepriekšējā versija 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**Parametrs**\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**Uzrādīt vērtību**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
615
1231
|
}
|
|
616
1232
|
},
|
|
617
1233
|
"parametersInfo": {
|
|
618
|
-
"min":
|
|
619
|
-
"max":
|
|
1234
|
+
"min": 1,
|
|
1235
|
+
"max": 1
|
|
620
1236
|
}
|
|
621
1237
|
},
|
|
622
1238
|
{
|
|
@@ -700,7 +1316,7 @@
|
|
|
700
1316
|
"sinceVersion": "1.14",
|
|
701
1317
|
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#week",
|
|
702
1318
|
"description": "Uzrāda nedēļas kārtas skaitli norādītā datuma gadā Vērtības mainās diapazonā no 0 līdz 53, kur gada pirmā nedēļa ir `0` un gada pēdējā nedēļa ir `51`, `52`, vai `53 (atkarībā no gada). Pirmās un pēdējās nedēļas garums var nebūt pilnas septiņas dienas.",
|
|
703
|
-
"examples": "\n##### Piemēri\n\nIzmantot noklusējuma nedēļas sākumu (svētdiena).\n\n```arcade\nWeek( Date(1974,0,3) )\n// Returns 0\n```\n\nIestatīt ceturtdienu kā nedēļas sākumu\n\n```arcade\nWeek( Date(1974,0,3), 4 )\n// Returns 1\n```\n\nIestatīt piektdienu kā nedēļas sākumu\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",
|
|
1319
|
+
"examples": "\n##### Piemēri\n\nIzmantot noklusējuma nedēļas sākumu (svētdiena).\n\n```arcade\nWeek( Date(1974,0,3) )\n// Returns 0\n```\n\nIestatīt ceturtdienu kā nedēļas sākumu\n\n```arcade\nWeek( Date(1974,0,3), 4 )\n// Returns 1\n```\n\nIestatīt piektdienu kā nedēļas sākumu\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",
|
|
704
1320
|
"completion": {
|
|
705
1321
|
"label": "Week",
|
|
706
1322
|
"detail": "Week(dateValue, startDay?) -> Number",
|
|
@@ -710,7 +1326,7 @@
|
|
|
710
1326
|
"kind": 3,
|
|
711
1327
|
"documentation": {
|
|
712
1328
|
"kind": "markdown",
|
|
713
|
-
"value": "**[Iepriekšējā versija 1.14](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nUzrāda nedēļas kārtas skaitli norādītā datuma gadā Vērtības mainās diapazonā no 0 līdz 53, kur gada pirmā nedēļa ir `0` un gada pēdējā nedēļa ir `51`, `52`, vai `53 (atkarībā no gada). Pirmās un pēdējās nedēļas garums var nebūt pilnas septiņas dienas.\n\n**Parametri**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - Datuma vērtība, no kuras iegūt nedēļu.\n- **startDay** (_Optional_): [Number](https://developers.arcgis.com/arcade/guide/types/#number) - Skaitlis, kas apzīmē nedēļas sākuma dienu. Svētdiena = 0; Pirmdiena = 1; Otrdiena = 2; Trešdiena = 3; Ceturtdiena = 4; Piektdiena = 5; Sestdiena = 6. Noklusējums ir `0` (Svētdiena).\n\n**Uzrādīt vērtību**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
1329
|
+
"value": "**[Iepriekšējā versija 1.14](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nUzrāda nedēļas kārtas skaitli norādītā datuma gadā Vērtības mainās diapazonā no 0 līdz 53, kur gada pirmā nedēļa ir `0` un gada pēdējā nedēļa ir `51`, `52`, vai `53 (atkarībā no gada). Pirmās un pēdējās nedēļas garums var nebūt pilnas septiņas dienas.\n\n**Parametri**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) \\| DateOnly - Datuma vērtība, no kuras iegūt nedēļu.\n- **startDay** (_Optional_): [Number](https://developers.arcgis.com/arcade/guide/types/#number) - Skaitlis, kas apzīmē nedēļas sākuma dienu. Svētdiena = 0; Pirmdiena = 1; Otrdiena = 2; Trešdiena = 3; Ceturtdiena = 4; Piektdiena = 5; Sestdiena = 6. Noklusējums ir `0` (Svētdiena).\n\n**Uzrādīt vērtību**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
714
1330
|
}
|
|
715
1331
|
},
|
|
716
1332
|
"parametersInfo": {
|
|
@@ -724,7 +1340,7 @@
|
|
|
724
1340
|
"bundle": "core",
|
|
725
1341
|
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#weekday",
|
|
726
1342
|
"description": "Uzrāda norādītā datuma nedēļas dienu. Vērtības ir diapazonā no 0 līdz 6, kur pirmdiena ir `0, bet svētdiena ir `6`.",
|
|
727
|
-
"examples": "\n#####
|
|
1343
|
+
"examples": "\n##### Piemēri\n\nUzrāda norādītā datuma nedēļas dienu. Uzrāda `3`, apzīmējot trešdienu.\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",
|
|
728
1344
|
"completion": {
|
|
729
1345
|
"label": "Weekday",
|
|
730
1346
|
"detail": "Weekday(dateValue) -> Number",
|
|
@@ -734,7 +1350,7 @@
|
|
|
734
1350
|
"kind": 3,
|
|
735
1351
|
"documentation": {
|
|
736
1352
|
"kind": "markdown",
|
|
737
|
-
"value": "Uzrāda norādītā datuma nedēļas dienu. Vērtības ir diapazonā no 0 līdz 6, kur pirmdiena ir `0, bet svētdiena ir `6`.\n\n**Parametrs**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - Datuma vērtība, no kuras uzrādīt nedēļas dienu.\n\n**Uzrādīt vērtību**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
1353
|
+
"value": "Uzrāda norādītā datuma nedēļas dienu. Vērtības ir diapazonā no 0 līdz 6, kur pirmdiena ir `0, bet svētdiena ir `6`.\n\n**Parametrs**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) \\| DateOnly - Datuma vērtība, no kuras uzrādīt nedēļas dienu.\n\n**Uzrādīt vērtību**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
738
1354
|
}
|
|
739
1355
|
},
|
|
740
1356
|
"parametersInfo": {
|
|
@@ -748,7 +1364,7 @@
|
|
|
748
1364
|
"bundle": "core",
|
|
749
1365
|
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#year",
|
|
750
1366
|
"description": "Uzrāda norādītā datuma gadu.",
|
|
751
|
-
"examples": "\n#####
|
|
1367
|
+
"examples": "\n##### Piemēri\n\nIegūst pašreizējā datuma gadu\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",
|
|
752
1368
|
"completion": {
|
|
753
1369
|
"label": "Year",
|
|
754
1370
|
"detail": "Year(dateValue) -> Number",
|
|
@@ -758,7 +1374,7 @@
|
|
|
758
1374
|
"kind": 3,
|
|
759
1375
|
"documentation": {
|
|
760
1376
|
"kind": "markdown",
|
|
761
|
-
"value": "Uzrāda norādītā datuma gadu.\n\n**Parametrs**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - Datuma vērtība, no kuras iegūt gadu.\n\n**Uzrādīt vērtību**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
1377
|
+
"value": "Uzrāda norādītā datuma gadu.\n\n**Parametrs**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) \\| DateOnly - Datuma vērtība, no kuras iegūt gadu.\n\n**Uzrādīt vērtību**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
762
1378
|
}
|
|
763
1379
|
},
|
|
764
1380
|
"parametersInfo": {
|
|
@@ -1552,6 +2168,31 @@
|
|
|
1552
2168
|
"max": 4
|
|
1553
2169
|
}
|
|
1554
2170
|
},
|
|
2171
|
+
{
|
|
2172
|
+
"type": "function",
|
|
2173
|
+
"name": "featuresetbyrelationshipclass",
|
|
2174
|
+
"bundle": "data-access",
|
|
2175
|
+
"sinceVersion": "1.24",
|
|
2176
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/featureset_functions/#featuresetbyrelationshipclass",
|
|
2177
|
+
"description": "Returns the related records for a given feature as a FeatureSet based on the class name of the relationship.",
|
|
2178
|
+
"examples": "\n##### Piemērs\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",
|
|
2179
|
+
"completion": {
|
|
2180
|
+
"label": "FeatureSetByRelationshipClass",
|
|
2181
|
+
"detail": "FeatureSetByRelationshipClass(inputFeature, relationshipClass, fieldNames?, includeGeometry?) -> FeatureSet",
|
|
2182
|
+
"insertText": "FeatureSetByRelationshipClass(${1:inputFeature_}, ${2:relationshipClass_})$0",
|
|
2183
|
+
"insertTextMode": 2,
|
|
2184
|
+
"insertTextFormat": 2,
|
|
2185
|
+
"kind": 3,
|
|
2186
|
+
"documentation": {
|
|
2187
|
+
"kind": "markdown",
|
|
2188
|
+
"value": "**[Iepriekšējā versija 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**Parametri**\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**Uzrādīt vērtību**: [FeatureSet](https://developers.arcgis.com/arcade/guide/types/#featureset)"
|
|
2189
|
+
}
|
|
2190
|
+
},
|
|
2191
|
+
"parametersInfo": {
|
|
2192
|
+
"min": 2,
|
|
2193
|
+
"max": 4
|
|
2194
|
+
}
|
|
2195
|
+
},
|
|
1555
2196
|
{
|
|
1556
2197
|
"type": "function",
|
|
1557
2198
|
"name": "featuresetbyrelationshipname",
|
|
@@ -4241,6 +4882,31 @@
|
|
|
4241
4882
|
"max": 2
|
|
4242
4883
|
}
|
|
4243
4884
|
},
|
|
4885
|
+
{
|
|
4886
|
+
"type": "function",
|
|
4887
|
+
"name": "equals",
|
|
4888
|
+
"bundle": "core",
|
|
4889
|
+
"sinceVersion": "1.24",
|
|
4890
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/logical_functions/#equals",
|
|
4891
|
+
"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.",
|
|
4892
|
+
"examples": "\n##### Piemērs\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",
|
|
4893
|
+
"completion": {
|
|
4894
|
+
"label": "Equals",
|
|
4895
|
+
"detail": "Equals(value1, value2) -> Boolean",
|
|
4896
|
+
"insertText": "Equals(${1:value1_}, ${2:value2_})$0",
|
|
4897
|
+
"insertTextMode": 2,
|
|
4898
|
+
"insertTextFormat": 2,
|
|
4899
|
+
"kind": 3,
|
|
4900
|
+
"documentation": {
|
|
4901
|
+
"kind": "markdown",
|
|
4902
|
+
"value": "**[Iepriekšējā versija 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**Parametri**\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**Uzrādīt vērtību**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean)"
|
|
4903
|
+
}
|
|
4904
|
+
},
|
|
4905
|
+
"parametersInfo": {
|
|
4906
|
+
"min": 2,
|
|
4907
|
+
"max": 2
|
|
4908
|
+
}
|
|
4909
|
+
},
|
|
4244
4910
|
{
|
|
4245
4911
|
"type": "function",
|
|
4246
4912
|
"name": "iif",
|
|
@@ -5332,7 +5998,7 @@
|
|
|
5332
5998
|
"kind": 3,
|
|
5333
5999
|
"documentation": {
|
|
5334
6000
|
"kind": "markdown",
|
|
5335
|
-
"value": "**[Iepriekšējā versija 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nĢenerē jaucējkoda vērtību norādītajam mainīgajam.\n\n**Parametrs**\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) - Jaucamais mainīgais.\n\n**Uzrādīt vērtību**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
6001
|
+
"value": "**[Iepriekšējā versija 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nĢenerē jaucējkoda vērtību norādītajam mainīgajam.\n\n**Parametrs**\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 - Jaucamais mainīgais.\n\n**Uzrādīt vērtību**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
5336
6002
|
}
|
|
5337
6003
|
},
|
|
5338
6004
|
"parametersInfo": {
|
|
@@ -6294,7 +6960,7 @@
|
|
|
6294
6960
|
"bundle": "core",
|
|
6295
6961
|
"link": "https://developers.arcgis.com/arcade/function-reference/text_functions/#text",
|
|
6296
6962
|
"description": "Pārvērš tā argumentu par teksta vērtību un var arī formatēt to. Ja neizdodas, atgriež `null`.",
|
|
6297
|
-
"examples": "\n##### Piemēri\n\nPapildināt ar nullēm skaitli pa kreisi no decimālatdalītāja\n\n```arcade\nText(123, '0000') // '0123'\n```\n\nIerobežot skaitli pa kreisi no decimālatdalītāja\n\n```arcade\nText(123, '00') // '23'\n```\n\nSagrupēt skaitlī tūkstošus\n\n```arcade\nText(1234, '#,###') // '1,234'\n```\n\nNoapaļot skaitlī līdz divām decimāldaļu vietām\n\n```arcade\nText(12345678.123, '#,###.00') // '12,345,678.12'\n```\n\nFormatēt skaitli kā valūtu\n\n```arcade\nText(1234.55, '$#,###.00') // '$1,234.55'\n```\n\nNoapaļot skaitlī līdz divām decimāldaļu vietām\n\n```arcade\nText(1.236, '#.00') // '1.24'\n```\n\nSaglabāt nozīmīgos ciparus un sagrupēt pa tūkstošiem\n\n```arcade\nText(1234.5678, '#,##0.00#') // '1,234.568'\n```\n\nFormatējiet skaitli un formatējiet pozitīvo/negatīvo — ja pastāv negatīva apakšshēma, tā noder tikai, lai norādītu negatīvo prefiksu un sufiksu\n\n```arcade\nText(-2, 'Floor #;Basement #') // 'Basement 2'\n```\n\n\n\n```arcade\nText(2, 'Floor #;Basement #') // 'Floor 2'\n```\n\nReizināt ar 100 un formatēt kā procentus\n\n```arcade\nText(0.3, '#%') // '30%'\n```\n\nPašreizējā datuma un laika formāts, piemēram, 'Otrdiena, 2016. gada 25. oktobris @ 08:43:11'\n\n```arcade\nText(Now(), 'dddd, MMMM D, Y @ h:m:s')\n```\n\nDatums, kas saglabāts laukā `datetime`, jau apzīmē vietējo laiku, bet Arcade pieņem, ka tas ir UTC. Nobīda vietējo laiku uz UTC, lai nepiemērotu laika joslas nobīdi divreiz.\n\n```arcade\nText(
|
|
6963
|
+
"examples": "\n##### Piemēri\n\nPapildināt ar nullēm skaitli pa kreisi no decimālatdalītāja\n\n```arcade\nText(123, '0000') // '0123'\n```\n\nIerobežot skaitli pa kreisi no decimālatdalītāja\n\n```arcade\nText(123, '00') // '23'\n```\n\nSagrupēt skaitlī tūkstošus\n\n```arcade\nText(1234, '#,###') // '1,234'\n```\n\nNoapaļot skaitlī līdz divām decimāldaļu vietām\n\n```arcade\nText(12345678.123, '#,###.00') // '12,345,678.12'\n```\n\nFormatēt skaitli kā valūtu\n\n```arcade\nText(1234.55, '$#,###.00') // '$1,234.55'\n```\n\nNoapaļot skaitlī līdz divām decimāldaļu vietām\n\n```arcade\nText(1.236, '#.00') // '1.24'\n```\n\nSaglabāt nozīmīgos ciparus un sagrupēt pa tūkstošiem\n\n```arcade\nText(1234.5678, '#,##0.00#') // '1,234.568'\n```\n\nFormatējiet skaitli un formatējiet pozitīvo/negatīvo — ja pastāv negatīva apakšshēma, tā noder tikai, lai norādītu negatīvo prefiksu un sufiksu\n\n```arcade\nText(-2, 'Floor #;Basement #') // 'Basement 2'\n```\n\n\n\n```arcade\nText(2, 'Floor #;Basement #') // 'Floor 2'\n```\n\nReizināt ar 100 un formatēt kā procentus\n\n```arcade\nText(0.3, '#%') // '30%'\n```\n\nPašreizējā datuma un laika formāts, piemēram, 'Otrdiena, 2016. gada 25. oktobris @ 08:43:11'\n\n```arcade\nText(Now(), 'dddd, MMMM D, Y @ h:m:s')\n```\n\nDatums, kas saglabāts laukā `datetime`, jau apzīmē vietējo laiku, bet Arcade pieņem, ka tas ir UTC. Nobīda vietējo laiku uz UTC, lai nepiemērotu laika joslas nobīdi divreiz.\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",
|
|
6298
6964
|
"completion": {
|
|
6299
6965
|
"label": "Text",
|
|
6300
6966
|
"detail": "Text(value, format?) -> Text",
|