@arcgis/coding-components 1.0.0-beta.11 → 1.0.0-beta.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/arcgis-coding-components/arcgis-coding-components.esm.js +1 -1
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ar.json +858 -192
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.bg.json +821 -155
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.bs.json +829 -163
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ca.json +829 -163
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.cs.json +829 -163
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.da.json +829 -163
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.de.json +829 -163
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.el.json +858 -192
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.en.json +853 -187
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.es.json +829 -163
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.et.json +829 -163
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.fi.json +858 -192
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.fr.json +829 -163
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.he.json +858 -192
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.hr.json +829 -163
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.hu.json +829 -163
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.id.json +858 -192
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.it.json +821 -155
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ja.json +859 -193
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ko.json +859 -193
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.lt.json +829 -163
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.lv.json +829 -163
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.nb.json +829 -163
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.nl.json +829 -163
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.pl.json +829 -163
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.pt-BR.json +829 -163
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.pt-PT.json +829 -163
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ro.json +829 -163
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ru.json +858 -192
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.sk.json +829 -163
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.sl.json +829 -163
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.sr.json +845 -179
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.sv.json +829 -163
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.th.json +858 -192
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.tr.json +858 -192
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.uk.json +858 -192
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.vi.json +858 -192
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.zh-CN.json +859 -193
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.zh-HK.json +859 -193
- package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.zh-TW.json +859 -193
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.ar.json +1 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.bg.json +1 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.bs.json +1 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.ca.json +1 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.cs.json +1 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.da.json +1 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.de.json +1 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.el.json +1 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.en.json +1 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.es.json +1 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.et.json +1 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.fi.json +1 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.fr.json +1 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.he.json +1 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.hr.json +1 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.hu.json +1 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.id.json +1 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.it.json +1 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.ja.json +1 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.ko.json +1 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.lt.json +1 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.lv.json +1 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.nb.json +1 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.nl.json +1 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.pl.json +1 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.pt-BR.json +1 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.pt-PT.json +1 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.ro.json +1 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.ru.json +1 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.sk.json +1 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.sl.json +1 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.sr.json +1 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.sv.json +1 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.th.json +1 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.tr.json +1 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.uk.json +1 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.vi.json +1 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.zh-CN.json +1 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.zh-HK.json +1 -2
- package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.zh-TW.json +1 -2
- package/dist/arcgis-coding-components/index.esm.js +1 -1
- package/dist/arcgis-coding-components/{p-ed254359.js → p-00c0b964.js} +1 -1
- package/dist/arcgis-coding-components/{p-616bcc2c.js → p-0f471c2c.js} +1 -1
- package/dist/arcgis-coding-components/{p-4d7cdaf4.js → p-2daa5deb.js} +1 -1
- package/dist/arcgis-coding-components/{p-b866ffa3.js → p-65933e8a.js} +1 -1
- package/dist/arcgis-coding-components/{p-2eee5b07.js → p-92019d78.js} +7 -7
- package/dist/arcgis-coding-components/{p-ee4aaf72.js → p-bcd478e3.js} +1 -1
- package/dist/arcgis-coding-components/{p-41feaa6e.js → p-be85ec3d.js} +1 -1
- package/dist/arcgis-coding-components/{p-63d6d128.js → p-bf83cfac.js} +1 -1
- package/dist/arcgis-coding-components/p-dd2d53e7.entry.js +1 -0
- package/dist/arcgis-coding-components/{p-c14a46af.js → p-f1b6ba59.js} +1 -1
- package/dist/cjs/{arcade-defaults-f77b7bae.js → arcade-defaults-990ceb0a.js} +51 -33
- package/dist/cjs/{arcade-mode-4b1d5adc.js → arcade-mode-6a101da0.js} +1 -1
- package/dist/cjs/arcgis-arcade-api_6.cjs.entry.js +40 -10
- package/dist/cjs/{cssMode-c21a8b34.js → cssMode-ef738198.js} +1 -1
- package/dist/cjs/{html-baddeebf.js → html-e97a8c1e.js} +1 -1
- package/dist/cjs/{htmlMode-3ca73779.js → htmlMode-0afb8251.js} +1 -1
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/{javascript-4226e8d4.js → javascript-09fbcb7d.js} +2 -2
- package/dist/cjs/{jsonMode-4496d6b9.js → jsonMode-9a315af5.js} +1 -1
- package/dist/cjs/{tsMode-6fa6f2f6.js → tsMode-000c3471.js} +1 -1
- package/dist/cjs/{typescript-5b6bab68.js → typescript-a9f8ce6c.js} +1 -1
- package/dist/components/arcade-api.js +2 -1
- package/dist/components/arcade-defaults.js +3 -23
- package/dist/components/arcade-results.js +40 -10
- package/dist/components/arcade-suggestions.js +2 -1
- package/dist/components/arcade-variables.js +1 -1
- package/dist/components/arcgis-arcade-editor.js +1 -1
- package/dist/components/code-editor.js +1 -1
- package/dist/components/fields.js +125 -0
- package/dist/components/index2.js +282 -32
- package/dist/components/utilities.js +2 -334
- package/dist/esm/{arcade-defaults-24670a1d.js → arcade-defaults-a8808d6a.js} +52 -33
- package/dist/esm/{arcade-mode-dc10ed9f.js → arcade-mode-6c8aff99.js} +1 -1
- package/dist/esm/arcgis-arcade-api_6.entry.js +40 -10
- package/dist/esm/{cssMode-0ae84348.js → cssMode-e19675cf.js} +1 -1
- package/dist/esm/{html-c18864a6.js → html-0e2f7c2f.js} +1 -1
- package/dist/esm/{htmlMode-426699f2.js → htmlMode-a4dd6993.js} +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/{javascript-982f2d73.js → javascript-9d754452.js} +2 -2
- package/dist/esm/{jsonMode-170e0a0e.js → jsonMode-cfafe91a.js} +1 -1
- package/dist/esm/{tsMode-99d2e8e5.js → tsMode-612386a7.js} +1 -1
- package/dist/esm/{typescript-de4f8a27.js → typescript-a17e2ba3.js} +1 -1
- package/dist/types/utils/arcade-executor.d.ts +35 -3
- package/dist/types/utils/fields.d.ts +10 -0
- package/dist/types/utils/profile/types.d.ts +2 -2
- package/dist/types/utils/utilities.d.ts +0 -6
- package/package.json +8 -8
- package/dist/arcgis-coding-components/p-9a6baa15.entry.js +0 -1
|
@@ -495,7 +495,7 @@
|
|
|
495
495
|
"bundle": "core",
|
|
496
496
|
"link": "https://developers.arcgis.com/arcade/function-reference/text_functions/#text",
|
|
497
497
|
"description": "Pretvori argument v vrednost besedila in ga opcijsko oblikuje. Vrne `null`, če ne uspe.",
|
|
498
|
-
"examples": "\n##### Primeri\n\nIzpolnite število levo od decimalnega mesta\n\n```arcade\nText(123, '0000') // '0123'\n```\n\nOmeji število levo od decimalnega mesta\n\n```arcade\nText(123, '00') // '23'\n```\n\nZdruži števila v skupine po tisoč\n\n```arcade\nText(1234, '#,###') // '1,234'\n```\n\nZaokroži število na dve decimalni mesti\n\n```arcade\nText(12345678.123, '#,###.00') // '12,345,678.12'\n```\n\nOblikuje število kot valuto\n\n```arcade\nText(1234.55, '$#,###.00') // '$1,234.55'\n```\n\nZaokroži število na dve decimalni mesti\n\n```arcade\nText(1.236, '#.00') // '1.24'\n```\n\nOhrani pomembne števke in jih združi v skupine po tisoč\n\n```arcade\nText(1234.5678, '#,##0.00#') // '1,234.568'\n```\n\nOblikuje število in oblika pozitivno/negativno – Če obstaja negativni podvzorec, služi samo zato, da določi negativno predpono in pripono\n\n```arcade\nText(-2, 'Floor #;Basement #') // 'Basement 2'\n```\n\n\n\n```arcade\nText(2, 'Floor #;Basement #') // 'Floor 2'\n```\n\nMnoži s 100 in oblikuje kot odstotek\n\n```arcade\nText(0.3, '#%') // '30%'\n```\n\nFormatirajte datum in čas v tem trenutku. npr. 'torek, 25. oktober 2016 ob 08:43:11'\n\n```arcade\nText(Now(), 'dddd, MMMM D, Y @ h:m:s')\n```\n\nDatum, ki je shranjen v polju `datetime` že predstavlja lokalni čas, vendar Arcade predvideva, da je v UTC. Zamakne lokalni čas v UTC, da se izogne dvojni uporabi zamika časovnega pasu\n\n```arcade\nText(
|
|
498
|
+
"examples": "\n##### Primeri\n\nIzpolnite število levo od decimalnega mesta\n\n```arcade\nText(123, '0000') // '0123'\n```\n\nOmeji število levo od decimalnega mesta\n\n```arcade\nText(123, '00') // '23'\n```\n\nZdruži števila v skupine po tisoč\n\n```arcade\nText(1234, '#,###') // '1,234'\n```\n\nZaokroži število na dve decimalni mesti\n\n```arcade\nText(12345678.123, '#,###.00') // '12,345,678.12'\n```\n\nOblikuje število kot valuto\n\n```arcade\nText(1234.55, '$#,###.00') // '$1,234.55'\n```\n\nZaokroži število na dve decimalni mesti\n\n```arcade\nText(1.236, '#.00') // '1.24'\n```\n\nOhrani pomembne števke in jih združi v skupine po tisoč\n\n```arcade\nText(1234.5678, '#,##0.00#') // '1,234.568'\n```\n\nOblikuje število in oblika pozitivno/negativno – Če obstaja negativni podvzorec, služi samo zato, da določi negativno predpono in pripono\n\n```arcade\nText(-2, 'Floor #;Basement #') // 'Basement 2'\n```\n\n\n\n```arcade\nText(2, 'Floor #;Basement #') // 'Floor 2'\n```\n\nMnoži s 100 in oblikuje kot odstotek\n\n```arcade\nText(0.3, '#%') // '30%'\n```\n\nFormatirajte datum in čas v tem trenutku. npr. 'torek, 25. oktober 2016 ob 08:43:11'\n\n```arcade\nText(Now(), 'dddd, MMMM D, Y @ h:m:s')\n```\n\nDatum, ki je shranjen v polju `datetime` že predstavlja lokalni čas, vendar Arcade predvideva, da je v UTC. Zamakne lokalni čas v UTC, da se izogne dvojni uporabi zamika časovnega pasu\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",
|
|
499
499
|
"completion": {
|
|
500
500
|
"label": "Text",
|
|
501
501
|
"detail": "Text(value, format?) -> Text",
|
|
@@ -667,29 +667,54 @@
|
|
|
667
667
|
"id": "date_functions",
|
|
668
668
|
"title": "Datumske funkcije",
|
|
669
669
|
"items": [
|
|
670
|
+
{
|
|
671
|
+
"type": "function",
|
|
672
|
+
"name": "changetimezone",
|
|
673
|
+
"bundle": "core",
|
|
674
|
+
"sinceVersion": "1.24",
|
|
675
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#changetimezone",
|
|
676
|
+
"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`.",
|
|
677
|
+
"examples": "\n##### Primeri\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",
|
|
678
|
+
"completion": {
|
|
679
|
+
"label": "ChangeTimeZone",
|
|
680
|
+
"detail": "ChangeTimeZone(dateValue, newTimeZone) -> Date",
|
|
681
|
+
"insertText": "ChangeTimeZone(${1:dateValue_}, ${2:newTimeZone_})$0",
|
|
682
|
+
"insertTextMode": 2,
|
|
683
|
+
"insertTextFormat": 2,
|
|
684
|
+
"kind": 3,
|
|
685
|
+
"documentation": {
|
|
686
|
+
"kind": "markdown",
|
|
687
|
+
"value": "**[Od različice 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**Vrnjena vrednost**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)"
|
|
688
|
+
}
|
|
689
|
+
},
|
|
690
|
+
"parametersInfo": {
|
|
691
|
+
"min": 2,
|
|
692
|
+
"max": 2
|
|
693
|
+
}
|
|
694
|
+
},
|
|
670
695
|
[
|
|
671
696
|
{
|
|
672
697
|
"type": "function",
|
|
673
698
|
"name": "date",
|
|
674
699
|
"bundle": "core",
|
|
675
700
|
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#date1",
|
|
676
|
-
"description": "
|
|
677
|
-
"examples": "\n##### Primeri\n\
|
|
701
|
+
"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.",
|
|
702
|
+
"examples": "\n##### Primeri\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",
|
|
678
703
|
"completion": {
|
|
679
704
|
"label": "Date",
|
|
680
|
-
"detail": "Date(year, month, day, hour?, minute?, second?, millisecond?) -> Date",
|
|
705
|
+
"detail": "Date(year, month, day, hour?, minute?, second?, millisecond?, timeZone?) -> Date",
|
|
681
706
|
"insertText": "Date(${1:year_}, ${2:month_}, ${3:day_})$0",
|
|
682
707
|
"insertTextMode": 2,
|
|
683
708
|
"insertTextFormat": 2,
|
|
684
709
|
"kind": 3,
|
|
685
710
|
"documentation": {
|
|
686
711
|
"kind": "markdown",
|
|
687
|
-
"value": "
|
|
712
|
+
"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**Vrnjena vrednost**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)"
|
|
688
713
|
}
|
|
689
714
|
},
|
|
690
715
|
"parametersInfo": {
|
|
691
716
|
"min": 3,
|
|
692
|
-
"max":
|
|
717
|
+
"max": 8
|
|
693
718
|
}
|
|
694
719
|
},
|
|
695
720
|
{
|
|
@@ -697,8 +722,8 @@
|
|
|
697
722
|
"name": "date",
|
|
698
723
|
"bundle": "core",
|
|
699
724
|
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#date2",
|
|
700
|
-
"description": "
|
|
701
|
-
"examples": "\n#####
|
|
725
|
+
"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.",
|
|
726
|
+
"examples": "\n##### Primeri\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",
|
|
702
727
|
"completion": {
|
|
703
728
|
"label": "Date",
|
|
704
729
|
"detail": "Date(epoch?) -> Date",
|
|
@@ -708,7 +733,7 @@
|
|
|
708
733
|
"kind": 3,
|
|
709
734
|
"documentation": {
|
|
710
735
|
"kind": "markdown",
|
|
711
|
-
"value": "
|
|
736
|
+
"value": "Creates a Date with the given Unix epoch number. By default, the Date will display in the time zone of the profile's execution context. If no epoch is provided, creates a Date at the current date and time in the default time zone of the profile.\n\n**Parameter**\n\n- **epoch** (_Optional_): [Number](https://developers.arcgis.com/arcade/guide/types/#number) - The number of milliseconds since January 1, 1970 UTC.\n\n**Vrnjena vrednost**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)"
|
|
712
737
|
}
|
|
713
738
|
},
|
|
714
739
|
"parametersInfo": {
|
|
@@ -721,8 +746,8 @@
|
|
|
721
746
|
"name": "date",
|
|
722
747
|
"bundle": "core",
|
|
723
748
|
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#date3",
|
|
724
|
-
"description": "
|
|
725
|
-
"examples": "\n#####
|
|
749
|
+
"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.",
|
|
750
|
+
"examples": "\n##### Primeri\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",
|
|
726
751
|
"completion": {
|
|
727
752
|
"label": "Date",
|
|
728
753
|
"detail": "Date(timestamp?) -> Date",
|
|
@@ -732,70 +757,376 @@
|
|
|
732
757
|
"kind": 3,
|
|
733
758
|
"documentation": {
|
|
734
759
|
"kind": "markdown",
|
|
735
|
-
"value": "
|
|
760
|
+
"value": "Creates a Date value from an ISO 8601 text value. If a UTC offset is provided, the date will still be displayed in the time zone of the profile. If no text value is provided, creates a date at the current date and time in the time zone of the profile.\n\n**Parameter**\n\n- **timestamp** (_Optional_): [Text](https://developers.arcgis.com/arcade/guide/types/#text) - An ISO 8601 text value to be converted into a Date.\n\n**Vrnjena vrednost**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)"
|
|
736
761
|
}
|
|
737
762
|
},
|
|
738
763
|
"parametersInfo": {
|
|
739
764
|
"min": 0,
|
|
740
765
|
"max": 1
|
|
741
766
|
}
|
|
767
|
+
},
|
|
768
|
+
{
|
|
769
|
+
"type": "function",
|
|
770
|
+
"name": "date",
|
|
771
|
+
"bundle": "core",
|
|
772
|
+
"sinceVersion": "1.24",
|
|
773
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#date4",
|
|
774
|
+
"description": "Creates a Date from a DateOnly value, with an optional Time and time zone value.",
|
|
775
|
+
"examples": "\n##### Primer\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",
|
|
776
|
+
"completion": {
|
|
777
|
+
"label": "Date",
|
|
778
|
+
"detail": "Date(dateOnlyValue, timeValue?, timeZone?) -> Date",
|
|
779
|
+
"insertText": "Date(${1:dateOnlyValue_})$0",
|
|
780
|
+
"insertTextMode": 2,
|
|
781
|
+
"insertTextFormat": 2,
|
|
782
|
+
"kind": 3,
|
|
783
|
+
"documentation": {
|
|
784
|
+
"kind": "markdown",
|
|
785
|
+
"value": "**[Od različice 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**Vrnjena vrednost**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)"
|
|
786
|
+
}
|
|
787
|
+
},
|
|
788
|
+
"parametersInfo": {
|
|
789
|
+
"min": 1,
|
|
790
|
+
"max": 3
|
|
791
|
+
}
|
|
792
|
+
},
|
|
793
|
+
{
|
|
794
|
+
"type": "function",
|
|
795
|
+
"name": "date",
|
|
796
|
+
"bundle": "core",
|
|
797
|
+
"sinceVersion": "1.24",
|
|
798
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#date5",
|
|
799
|
+
"description": "Creates a copy of the given Date.",
|
|
800
|
+
"examples": "\n##### Primer\n\nCreates a copy of the current Date value\n\n```arcade\nvar copiedDate = Date(Now())\n```\n\n",
|
|
801
|
+
"completion": {
|
|
802
|
+
"label": "Date",
|
|
803
|
+
"detail": "Date(dateValue) -> Date",
|
|
804
|
+
"insertText": "Date(${1:dateValue_})$0",
|
|
805
|
+
"insertTextMode": 2,
|
|
806
|
+
"insertTextFormat": 2,
|
|
807
|
+
"kind": 3,
|
|
808
|
+
"documentation": {
|
|
809
|
+
"kind": "markdown",
|
|
810
|
+
"value": "**[Od različice 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nCreates a copy of the given Date.\n\n**Parameter**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - The Date to copy.\n\n**Vrnjena vrednost**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)"
|
|
811
|
+
}
|
|
812
|
+
},
|
|
813
|
+
"parametersInfo": {
|
|
814
|
+
"min": 1,
|
|
815
|
+
"max": 1
|
|
816
|
+
}
|
|
742
817
|
}
|
|
743
818
|
],
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
"
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
"
|
|
760
|
-
|
|
819
|
+
[
|
|
820
|
+
{
|
|
821
|
+
"type": "function",
|
|
822
|
+
"name": "dateadd",
|
|
823
|
+
"bundle": "core",
|
|
824
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#dateadd1",
|
|
825
|
+
"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.",
|
|
826
|
+
"examples": "\n##### Primer\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",
|
|
827
|
+
"completion": {
|
|
828
|
+
"label": "DateAdd",
|
|
829
|
+
"detail": "DateAdd(dateValue, addValue, units?) -> Date",
|
|
830
|
+
"insertText": "DateAdd(${1:dateValue_}, ${2:addValue_})$0",
|
|
831
|
+
"insertTextMode": 2,
|
|
832
|
+
"insertTextFormat": 2,
|
|
833
|
+
"kind": 3,
|
|
834
|
+
"documentation": {
|
|
835
|
+
"kind": "markdown",
|
|
836
|
+
"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**Vrnjena vrednost**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)"
|
|
837
|
+
}
|
|
838
|
+
},
|
|
839
|
+
"parametersInfo": {
|
|
840
|
+
"min": 2,
|
|
841
|
+
"max": 3
|
|
761
842
|
}
|
|
762
843
|
},
|
|
763
|
-
|
|
764
|
-
"
|
|
765
|
-
"
|
|
844
|
+
{
|
|
845
|
+
"type": "function",
|
|
846
|
+
"name": "dateadd",
|
|
847
|
+
"bundle": "core",
|
|
848
|
+
"sinceVersion": "1.24",
|
|
849
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#dateadd2",
|
|
850
|
+
"description": "Adds a specified amount of time in the given units to a DateOnly value and returns a new DateOnly value.",
|
|
851
|
+
"examples": "\n##### Primeri\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",
|
|
852
|
+
"completion": {
|
|
853
|
+
"label": "DateAdd",
|
|
854
|
+
"detail": "DateAdd(dateOnlyValue, addValue, units?) -> DateOnly",
|
|
855
|
+
"insertText": "DateAdd(${1:dateOnlyValue_}, ${2:addValue_})$0",
|
|
856
|
+
"insertTextMode": 2,
|
|
857
|
+
"insertTextFormat": 2,
|
|
858
|
+
"kind": 3,
|
|
859
|
+
"documentation": {
|
|
860
|
+
"kind": "markdown",
|
|
861
|
+
"value": "**[Od različice 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**Vrnjena vrednost**: DateOnly"
|
|
862
|
+
}
|
|
863
|
+
},
|
|
864
|
+
"parametersInfo": {
|
|
865
|
+
"min": 2,
|
|
866
|
+
"max": 3
|
|
867
|
+
}
|
|
868
|
+
},
|
|
869
|
+
{
|
|
870
|
+
"type": "function",
|
|
871
|
+
"name": "dateadd",
|
|
872
|
+
"bundle": "core",
|
|
873
|
+
"sinceVersion": "1.24",
|
|
874
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#dateadd3",
|
|
875
|
+
"description": "Adds a specified amount of time in the given units to a Time value and returns a new Time value.",
|
|
876
|
+
"examples": "\n##### Primeri\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",
|
|
877
|
+
"completion": {
|
|
878
|
+
"label": "DateAdd",
|
|
879
|
+
"detail": "DateAdd(timeValue, addValue, units?) -> Time",
|
|
880
|
+
"insertText": "DateAdd(${1:timeValue_}, ${2:addValue_})$0",
|
|
881
|
+
"insertTextMode": 2,
|
|
882
|
+
"insertTextFormat": 2,
|
|
883
|
+
"kind": 3,
|
|
884
|
+
"documentation": {
|
|
885
|
+
"kind": "markdown",
|
|
886
|
+
"value": "**[Od različice 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**Vrnjena vrednost**: Time"
|
|
887
|
+
}
|
|
888
|
+
},
|
|
889
|
+
"parametersInfo": {
|
|
890
|
+
"min": 2,
|
|
891
|
+
"max": 3
|
|
892
|
+
}
|
|
766
893
|
}
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
"
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
"
|
|
784
|
-
|
|
894
|
+
],
|
|
895
|
+
[
|
|
896
|
+
{
|
|
897
|
+
"type": "function",
|
|
898
|
+
"name": "datediff",
|
|
899
|
+
"bundle": "core",
|
|
900
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#datediff1",
|
|
901
|
+
"description": "Subtracts two Dates, and returns the difference in the specified units.",
|
|
902
|
+
"examples": "\n##### Primeri\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",
|
|
903
|
+
"completion": {
|
|
904
|
+
"label": "DateDiff",
|
|
905
|
+
"detail": "DateDiff(date1, date2, units?, timeZone?) -> Number",
|
|
906
|
+
"insertText": "DateDiff(${1:date1_}, ${2:date2_})$0",
|
|
907
|
+
"insertTextMode": 2,
|
|
908
|
+
"insertTextFormat": 2,
|
|
909
|
+
"kind": 3,
|
|
910
|
+
"documentation": {
|
|
911
|
+
"kind": "markdown",
|
|
912
|
+
"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**Vrnjena vrednost**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
913
|
+
}
|
|
914
|
+
},
|
|
915
|
+
"parametersInfo": {
|
|
916
|
+
"min": 2,
|
|
917
|
+
"max": 4
|
|
785
918
|
}
|
|
786
919
|
},
|
|
787
|
-
|
|
788
|
-
"
|
|
789
|
-
"
|
|
920
|
+
{
|
|
921
|
+
"type": "function",
|
|
922
|
+
"name": "datediff",
|
|
923
|
+
"bundle": "core",
|
|
924
|
+
"sinceVersion": "1.24",
|
|
925
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#datediff2",
|
|
926
|
+
"description": "Subtracts two DateOnly values, and returns the difference in the specified units.",
|
|
927
|
+
"examples": "\n##### Primer\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",
|
|
928
|
+
"completion": {
|
|
929
|
+
"label": "DateDiff",
|
|
930
|
+
"detail": "DateDiff(dateOnly1, dateOnly2, units?) -> Number",
|
|
931
|
+
"insertText": "DateDiff(${1:dateOnly1_}, ${2:dateOnly2_})$0",
|
|
932
|
+
"insertTextMode": 2,
|
|
933
|
+
"insertTextFormat": 2,
|
|
934
|
+
"kind": 3,
|
|
935
|
+
"documentation": {
|
|
936
|
+
"kind": "markdown",
|
|
937
|
+
"value": "**[Od različice 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**Vrnjena vrednost**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
938
|
+
}
|
|
939
|
+
},
|
|
940
|
+
"parametersInfo": {
|
|
941
|
+
"min": 2,
|
|
942
|
+
"max": 3
|
|
943
|
+
}
|
|
944
|
+
},
|
|
945
|
+
{
|
|
946
|
+
"type": "function",
|
|
947
|
+
"name": "datediff",
|
|
948
|
+
"bundle": "core",
|
|
949
|
+
"sinceVersion": "1.24",
|
|
950
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#datediff3",
|
|
951
|
+
"description": "Subtracts two Time values, and returns the difference in the specified units.",
|
|
952
|
+
"examples": "\n##### Primer\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",
|
|
953
|
+
"completion": {
|
|
954
|
+
"label": "DateDiff",
|
|
955
|
+
"detail": "DateDiff(time1, time2, units?) -> Number",
|
|
956
|
+
"insertText": "DateDiff(${1:time1_}, ${2:time2_})$0",
|
|
957
|
+
"insertTextMode": 2,
|
|
958
|
+
"insertTextFormat": 2,
|
|
959
|
+
"kind": 3,
|
|
960
|
+
"documentation": {
|
|
961
|
+
"kind": "markdown",
|
|
962
|
+
"value": "**[Od različice 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**Vrnjena vrednost**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
963
|
+
}
|
|
964
|
+
},
|
|
965
|
+
"parametersInfo": {
|
|
966
|
+
"min": 2,
|
|
967
|
+
"max": 3
|
|
968
|
+
}
|
|
790
969
|
}
|
|
791
|
-
|
|
970
|
+
],
|
|
971
|
+
[
|
|
972
|
+
{
|
|
973
|
+
"type": "function",
|
|
974
|
+
"name": "dateonly",
|
|
975
|
+
"bundle": "core",
|
|
976
|
+
"sinceVersion": "1.24",
|
|
977
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#dateonly1",
|
|
978
|
+
"description": "Creates a DateOnly value based on the current date in the time zone of the profile's execution context.",
|
|
979
|
+
"examples": "\n##### Primer\n\nReturns the current DateOnly (no time)\n\n```arcade\nDateOnly()\n// returns the current date, i.e. 2023-09-12\n```\n\n",
|
|
980
|
+
"completion": {
|
|
981
|
+
"label": "DateOnly",
|
|
982
|
+
"detail": "DateOnly() -> DateOnly",
|
|
983
|
+
"insertText": "DateOnly($0)",
|
|
984
|
+
"insertTextMode": 2,
|
|
985
|
+
"insertTextFormat": 2,
|
|
986
|
+
"kind": 3,
|
|
987
|
+
"documentation": {
|
|
988
|
+
"kind": "markdown",
|
|
989
|
+
"value": "**[Od različice 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**Vrnjena vrednost**: DateOnly"
|
|
990
|
+
}
|
|
991
|
+
},
|
|
992
|
+
"parametersInfo": {
|
|
993
|
+
"min": 0,
|
|
994
|
+
"max": 0
|
|
995
|
+
}
|
|
996
|
+
},
|
|
997
|
+
{
|
|
998
|
+
"type": "function",
|
|
999
|
+
"name": "dateonly",
|
|
1000
|
+
"bundle": "core",
|
|
1001
|
+
"sinceVersion": "1.24",
|
|
1002
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#dateonly2",
|
|
1003
|
+
"description": "Creates a DateOnly value from a given date.",
|
|
1004
|
+
"examples": "\n##### Primer\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",
|
|
1005
|
+
"completion": {
|
|
1006
|
+
"label": "DateOnly",
|
|
1007
|
+
"detail": "DateOnly(dateValue) -> DateOnly",
|
|
1008
|
+
"insertText": "DateOnly(${1:dateValue_})$0",
|
|
1009
|
+
"insertTextMode": 2,
|
|
1010
|
+
"insertTextFormat": 2,
|
|
1011
|
+
"kind": 3,
|
|
1012
|
+
"documentation": {
|
|
1013
|
+
"kind": "markdown",
|
|
1014
|
+
"value": "**[Od različice 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nCreates a DateOnly value from a given date.\n\n**Parameter**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - The date from which to create the DateOnly value.\n\n**Vrnjena vrednost**: DateOnly"
|
|
1015
|
+
}
|
|
1016
|
+
},
|
|
1017
|
+
"parametersInfo": {
|
|
1018
|
+
"min": 1,
|
|
1019
|
+
"max": 1
|
|
1020
|
+
}
|
|
1021
|
+
},
|
|
1022
|
+
{
|
|
1023
|
+
"type": "function",
|
|
1024
|
+
"name": "dateonly",
|
|
1025
|
+
"bundle": "core",
|
|
1026
|
+
"sinceVersion": "1.24",
|
|
1027
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#dateonly3",
|
|
1028
|
+
"description": "Creates a DateOnly date with the given Unix epoch number.",
|
|
1029
|
+
"examples": "\n##### Primer\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",
|
|
1030
|
+
"completion": {
|
|
1031
|
+
"label": "DateOnly",
|
|
1032
|
+
"detail": "DateOnly(epoch) -> DateOnly",
|
|
1033
|
+
"insertText": "DateOnly(${1:epoch_})$0",
|
|
1034
|
+
"insertTextMode": 2,
|
|
1035
|
+
"insertTextFormat": 2,
|
|
1036
|
+
"kind": 3,
|
|
1037
|
+
"documentation": {
|
|
1038
|
+
"kind": "markdown",
|
|
1039
|
+
"value": "**[Od različice 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nCreates a DateOnly date with the given Unix epoch number.\n\n**Parameter**\n\n- **epoch**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - The number of milliseconds since January 1, 1970 UTC.\n\n**Vrnjena vrednost**: DateOnly"
|
|
1040
|
+
}
|
|
1041
|
+
},
|
|
1042
|
+
"parametersInfo": {
|
|
1043
|
+
"min": 1,
|
|
1044
|
+
"max": 1
|
|
1045
|
+
}
|
|
1046
|
+
},
|
|
1047
|
+
{
|
|
1048
|
+
"type": "function",
|
|
1049
|
+
"name": "dateonly",
|
|
1050
|
+
"bundle": "core",
|
|
1051
|
+
"sinceVersion": "1.24",
|
|
1052
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#dateonly4",
|
|
1053
|
+
"description": "Creates a DateOnly value from inputs representing the year, month, and day.",
|
|
1054
|
+
"examples": "\n##### Primer\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",
|
|
1055
|
+
"completion": {
|
|
1056
|
+
"label": "DateOnly",
|
|
1057
|
+
"detail": "DateOnly(year, month, day) -> DateOnly",
|
|
1058
|
+
"insertText": "DateOnly(${1:year_}, ${2:month_}, ${3:day_})$0",
|
|
1059
|
+
"insertTextMode": 2,
|
|
1060
|
+
"insertTextFormat": 2,
|
|
1061
|
+
"kind": 3,
|
|
1062
|
+
"documentation": {
|
|
1063
|
+
"kind": "markdown",
|
|
1064
|
+
"value": "**[Od različice 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**Vrnjena vrednost**: DateOnly"
|
|
1065
|
+
}
|
|
1066
|
+
},
|
|
1067
|
+
"parametersInfo": {
|
|
1068
|
+
"min": 3,
|
|
1069
|
+
"max": 3
|
|
1070
|
+
}
|
|
1071
|
+
},
|
|
1072
|
+
{
|
|
1073
|
+
"type": "function",
|
|
1074
|
+
"name": "dateonly",
|
|
1075
|
+
"bundle": "core",
|
|
1076
|
+
"sinceVersion": "1.24",
|
|
1077
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#dateonly5",
|
|
1078
|
+
"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.",
|
|
1079
|
+
"examples": "\n##### Primeri\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",
|
|
1080
|
+
"completion": {
|
|
1081
|
+
"label": "DateOnly",
|
|
1082
|
+
"detail": "DateOnly(dateValue, format?) -> DateOnly",
|
|
1083
|
+
"insertText": "DateOnly(${1:dateValue_})$0",
|
|
1084
|
+
"insertTextMode": 2,
|
|
1085
|
+
"insertTextFormat": 2,
|
|
1086
|
+
"kind": 3,
|
|
1087
|
+
"documentation": {
|
|
1088
|
+
"kind": "markdown",
|
|
1089
|
+
"value": "**[Od različice 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**Vrnjena vrednost**: DateOnly"
|
|
1090
|
+
}
|
|
1091
|
+
},
|
|
1092
|
+
"parametersInfo": {
|
|
1093
|
+
"min": 1,
|
|
1094
|
+
"max": 2
|
|
1095
|
+
}
|
|
1096
|
+
},
|
|
1097
|
+
{
|
|
1098
|
+
"type": "function",
|
|
1099
|
+
"name": "dateonly",
|
|
1100
|
+
"bundle": "core",
|
|
1101
|
+
"sinceVersion": "1.24",
|
|
1102
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#dateonly6",
|
|
1103
|
+
"description": "Creates a copy of a DateOnly value.",
|
|
1104
|
+
"examples": "\n##### Primer\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",
|
|
1105
|
+
"completion": {
|
|
1106
|
+
"label": "DateOnly",
|
|
1107
|
+
"detail": "DateOnly(dateOnlyValue) -> DateOnly",
|
|
1108
|
+
"insertText": "DateOnly(${1:dateOnlyValue_})$0",
|
|
1109
|
+
"insertTextMode": 2,
|
|
1110
|
+
"insertTextFormat": 2,
|
|
1111
|
+
"kind": 3,
|
|
1112
|
+
"documentation": {
|
|
1113
|
+
"kind": "markdown",
|
|
1114
|
+
"value": "**[Od različice 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nCreates a copy of a DateOnly value.\n\n**Parameter**\n\n- **dateOnlyValue**: DateOnly - The DateOnly value to copy.\n\n**Vrnjena vrednost**: DateOnly"
|
|
1115
|
+
}
|
|
1116
|
+
},
|
|
1117
|
+
"parametersInfo": {
|
|
1118
|
+
"min": 1,
|
|
1119
|
+
"max": 1
|
|
1120
|
+
}
|
|
1121
|
+
}
|
|
1122
|
+
],
|
|
792
1123
|
{
|
|
793
1124
|
"type": "function",
|
|
794
1125
|
"name": "day",
|
|
795
1126
|
"bundle": "core",
|
|
796
1127
|
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#day",
|
|
797
1128
|
"description": "Vrne dan v mesecu danega datuma.",
|
|
798
|
-
"examples": "\n#####
|
|
1129
|
+
"examples": "\n##### Primeri\n\nPridobi dan v mesecu trenutnega datuma\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",
|
|
799
1130
|
"completion": {
|
|
800
1131
|
"label": "Day",
|
|
801
1132
|
"detail": "Day(dateValue) -> Number",
|
|
@@ -805,7 +1136,7 @@
|
|
|
805
1136
|
"kind": 3,
|
|
806
1137
|
"documentation": {
|
|
807
1138
|
"kind": "markdown",
|
|
808
|
-
"value": "Vrne dan v mesecu danega datuma.\n\n**Parameter**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - Vrednost datuma, iz katere pridobi dan v mesecu.\n\n**Vrnjena vrednost**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
1139
|
+
"value": "Vrne dan v mesecu danega datuma.\n\n**Parameter**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) \\| DateOnly - Vrednost datuma, iz katere pridobi dan v mesecu.\n\n**Vrnjena vrednost**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
809
1140
|
}
|
|
810
1141
|
},
|
|
811
1142
|
"parametersInfo": {
|
|
@@ -813,30 +1144,57 @@
|
|
|
813
1144
|
"max": 1
|
|
814
1145
|
}
|
|
815
1146
|
},
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
"
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
"
|
|
832
|
-
|
|
1147
|
+
[
|
|
1148
|
+
{
|
|
1149
|
+
"type": "function",
|
|
1150
|
+
"name": "hour",
|
|
1151
|
+
"bundle": "core",
|
|
1152
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#hour1",
|
|
1153
|
+
"description": "Returns the hour of the time in the given date (0-23).",
|
|
1154
|
+
"examples": "\n##### Primer\n\nGets the hour of the current time\n\n```arcade\nHour(Now())\n```\n\n",
|
|
1155
|
+
"completion": {
|
|
1156
|
+
"label": "Hour",
|
|
1157
|
+
"detail": "Hour(dateValue) -> Number",
|
|
1158
|
+
"insertText": "Hour(${1:dateValue_})$0",
|
|
1159
|
+
"insertTextMode": 2,
|
|
1160
|
+
"insertTextFormat": 2,
|
|
1161
|
+
"kind": 3,
|
|
1162
|
+
"documentation": {
|
|
1163
|
+
"kind": "markdown",
|
|
1164
|
+
"value": "Returns the hour of the time in the given date (0-23).\n\n**Parameter**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - A Date value from which to get the hour of the time.\n\n**Vrnjena vrednost**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
1165
|
+
}
|
|
1166
|
+
},
|
|
1167
|
+
"parametersInfo": {
|
|
1168
|
+
"min": 1,
|
|
1169
|
+
"max": 1
|
|
833
1170
|
}
|
|
834
1171
|
},
|
|
835
|
-
|
|
836
|
-
"
|
|
837
|
-
"
|
|
1172
|
+
{
|
|
1173
|
+
"type": "function",
|
|
1174
|
+
"name": "hour",
|
|
1175
|
+
"bundle": "core",
|
|
1176
|
+
"sinceVersion": "1.24",
|
|
1177
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#hour2",
|
|
1178
|
+
"description": "Returns the hour of the given time (0-23).",
|
|
1179
|
+
"examples": "\n##### Primer\n\nGets the hour of the time\n\n```arcade\nHour(Time(2, 59, 23))\n// returns 2\n```\n\n",
|
|
1180
|
+
"completion": {
|
|
1181
|
+
"label": "Hour",
|
|
1182
|
+
"detail": "Hour(timeValue) -> Number",
|
|
1183
|
+
"insertText": "Hour(${1:timeValue_})$0",
|
|
1184
|
+
"insertTextMode": 2,
|
|
1185
|
+
"insertTextFormat": 2,
|
|
1186
|
+
"kind": 3,
|
|
1187
|
+
"documentation": {
|
|
1188
|
+
"kind": "markdown",
|
|
1189
|
+
"value": "**[Od različice 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nReturns the hour of the given time (0-23).\n\n**Parameter**\n\n- **timeValue**: Time - A Time value from which to get the hour.\n\n**Vrnjena vrednost**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
1190
|
+
}
|
|
1191
|
+
},
|
|
1192
|
+
"parametersInfo": {
|
|
1193
|
+
"min": 1,
|
|
1194
|
+
"max": 1
|
|
1195
|
+
}
|
|
838
1196
|
}
|
|
839
|
-
|
|
1197
|
+
],
|
|
840
1198
|
{
|
|
841
1199
|
"type": "function",
|
|
842
1200
|
"name": "isomonth",
|
|
@@ -844,7 +1202,7 @@
|
|
|
844
1202
|
"sinceVersion": "1.12",
|
|
845
1203
|
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#isomonth",
|
|
846
1204
|
"description": "Vrne mesec danega datuma na podlagi standarda ISO 8601. Vrne razpon 1–12, pri čemer je januar \\\"1\\\" in december \\\"12\\\".",
|
|
847
|
-
"examples": "\n#####
|
|
1205
|
+
"examples": "\n##### Primeri\n\nPridobi mesec danega datuma na podlagi standarda ISO 8601. Vrne \\\"12\\\" za mesec december.\n\n```arcade\nISOMonth(Date(1980, 11, 31))\n```\n\nGets the month of the given DateOnly value, based on the ISO 8601 standard.\n\n```arcade\nISOMonth(DateOnly(1996, 0, 10))\n// returns 1, for January\n```\n\n",
|
|
848
1206
|
"completion": {
|
|
849
1207
|
"label": "ISOMonth",
|
|
850
1208
|
"detail": "ISOMonth(dateValue) -> Number",
|
|
@@ -854,7 +1212,7 @@
|
|
|
854
1212
|
"kind": 3,
|
|
855
1213
|
"documentation": {
|
|
856
1214
|
"kind": "markdown",
|
|
857
|
-
"value": "**[Od različice 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nVrne mesec danega datuma na podlagi standarda ISO 8601. Vrne razpon 1–12, pri čemer je januar \\\"1\\\" in december \\\"12\\\".\n\n**Parameter**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - Vrednost datuma, iz katerega pridobi mesec.\n\n**Vrnjena vrednost**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
1215
|
+
"value": "**[Od različice 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nVrne mesec danega datuma na podlagi standarda ISO 8601. Vrne razpon 1–12, pri čemer je januar \\\"1\\\" in december \\\"12\\\".\n\n**Parameter**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) \\| DateOnly - Vrednost datuma, iz katerega pridobi mesec.\n\n**Vrnjena vrednost**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
858
1216
|
}
|
|
859
1217
|
},
|
|
860
1218
|
"parametersInfo": {
|
|
@@ -869,7 +1227,7 @@
|
|
|
869
1227
|
"sinceVersion": "1.12",
|
|
870
1228
|
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#isoweek",
|
|
871
1229
|
"description": "Vrne teden v letu danega datuma na podlagi tedenskega koledarja standarda ISO 8601. Vrne razpon vrednosti 1–53, pri čemer je prvi teden leta \\\"1\\\" in zadnji teden leta \\\"52\\\" ali \\\"53\\\", odvisno od leta.",
|
|
872
|
-
"examples": "\n#####
|
|
1230
|
+
"examples": "\n##### Primeri\n\nPridobi teden danega datuma na podlagi standarda ISO 8601. Vrne \\\"1\\\", ker je ta datum vključen v prvi teden sledečega leta.\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",
|
|
873
1231
|
"completion": {
|
|
874
1232
|
"label": "ISOWeek",
|
|
875
1233
|
"detail": "ISOWeek(dateValue) -> Number",
|
|
@@ -879,7 +1237,7 @@
|
|
|
879
1237
|
"kind": 3,
|
|
880
1238
|
"documentation": {
|
|
881
1239
|
"kind": "markdown",
|
|
882
|
-
"value": "**[Od različice 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nVrne teden v letu danega datuma na podlagi tedenskega koledarja standarda ISO 8601. Vrne razpon vrednosti 1–53, pri čemer je prvi teden leta \\\"1\\\" in zadnji teden leta \\\"52\\\" ali \\\"53\\\", odvisno od leta.\n\n**Parameter**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - Vrednost datuma, iz katere se pridobi teden.\n\n**Vrnjena vrednost**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
1240
|
+
"value": "**[Od različice 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nVrne teden v letu danega datuma na podlagi tedenskega koledarja standarda ISO 8601. Vrne razpon vrednosti 1–53, pri čemer je prvi teden leta \\\"1\\\" in zadnji teden leta \\\"52\\\" ali \\\"53\\\", odvisno od leta.\n\n**Parameter**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) \\| DateOnly - Vrednost datuma, iz katere se pridobi teden.\n\n**Vrnjena vrednost**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
883
1241
|
}
|
|
884
1242
|
},
|
|
885
1243
|
"parametersInfo": {
|
|
@@ -894,7 +1252,7 @@
|
|
|
894
1252
|
"sinceVersion": "1.12",
|
|
895
1253
|
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#isoweekday",
|
|
896
1254
|
"description": "Vrne dan v tednu danega datuma na podlagi standarda ISO 8601. Vrne razpon vrednosti 1–7, pri čemer je ponedeljek \\\"1\\\" in nedelja \\\"7\\\".",
|
|
897
|
-
"examples": "\n#####
|
|
1255
|
+
"examples": "\n##### Primeri\n\nVrne dan v tednu danega datuma na podlagi standarda ISO 8601. Vrne \\\"3\\\" za sredo.\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",
|
|
898
1256
|
"completion": {
|
|
899
1257
|
"label": "ISOWeekday",
|
|
900
1258
|
"detail": "ISOWeekday(dateValue) -> Number",
|
|
@@ -904,7 +1262,7 @@
|
|
|
904
1262
|
"kind": 3,
|
|
905
1263
|
"documentation": {
|
|
906
1264
|
"kind": "markdown",
|
|
907
|
-
"value": "**[Od različice 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nVrne dan v tednu danega datuma na podlagi standarda ISO 8601. Vrne razpon vrednosti 1–7, pri čemer je ponedeljek \\\"1\\\" in nedelja \\\"7\\\".\n\n**Parameter**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - Vrednost datuma, iz katere vrne dan v tednu.\n\n**Vrnjena vrednost**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
1265
|
+
"value": "**[Od različice 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nVrne dan v tednu danega datuma na podlagi standarda ISO 8601. Vrne razpon vrednosti 1–7, pri čemer je ponedeljek \\\"1\\\" in nedelja \\\"7\\\".\n\n**Parameter**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) \\| DateOnly - Vrednost datuma, iz katere vrne dan v tednu.\n\n**Vrnjena vrednost**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
908
1266
|
}
|
|
909
1267
|
},
|
|
910
1268
|
"parametersInfo": {
|
|
@@ -919,65 +1277,17 @@
|
|
|
919
1277
|
"sinceVersion": "1.12",
|
|
920
1278
|
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#isoyear",
|
|
921
1279
|
"description": "Vrne leto danega datuma na podlagi tedenskega koledarja standarda ISO 8601.",
|
|
922
|
-
"examples": "\n#####
|
|
1280
|
+
"examples": "\n##### Primeri\n\nPridobi leto danega datuma na podlagi tedenskega koledarja standarda ISO 8601. Vrne \\\"1981\\\", ker je ta datum vključen v prvi teden sledečega leta.\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",
|
|
923
1281
|
"completion": {
|
|
924
1282
|
"label": "ISOYear",
|
|
925
|
-
"detail": "ISOYear(dateValue) -> Number",
|
|
926
|
-
"insertText": "ISOYear(${1:dateValue_})$0",
|
|
927
|
-
"insertTextMode": 2,
|
|
928
|
-
"insertTextFormat": 2,
|
|
929
|
-
"kind": 3,
|
|
930
|
-
"documentation": {
|
|
931
|
-
"kind": "markdown",
|
|
932
|
-
"value": "**[Od različice 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nVrne leto danega datuma na podlagi tedenskega koledarja standarda ISO 8601.\n\n**Parameter**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - Vrednost datuma, iz katere pridobi leto.\n\n**Vrnjena vrednost**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
933
|
-
}
|
|
934
|
-
},
|
|
935
|
-
"parametersInfo": {
|
|
936
|
-
"min": 1,
|
|
937
|
-
"max": 1
|
|
938
|
-
}
|
|
939
|
-
},
|
|
940
|
-
{
|
|
941
|
-
"type": "function",
|
|
942
|
-
"name": "millisecond",
|
|
943
|
-
"bundle": "core",
|
|
944
|
-
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#millisecond",
|
|
945
|
-
"description": "Vrne milisekundo časa v datumu.",
|
|
946
|
-
"examples": "\n##### Primer\n\nPridobi milisekundo v trenutnem času\n\n```arcade\nMillisecond(Now())\n```\n\n",
|
|
947
|
-
"completion": {
|
|
948
|
-
"label": "Millisecond",
|
|
949
|
-
"detail": "Millisecond(dateValue) -> Number",
|
|
950
|
-
"insertText": "Millisecond(${1:dateValue_})$0",
|
|
951
|
-
"insertTextMode": 2,
|
|
952
|
-
"insertTextFormat": 2,
|
|
953
|
-
"kind": 3,
|
|
954
|
-
"documentation": {
|
|
955
|
-
"kind": "markdown",
|
|
956
|
-
"value": "Vrne milisekundo časa v datumu.\n\n**Parameter**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - Vrednost datuma, iz katere pridobi milisekundo v času.\n\n**Vrnjena vrednost**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
957
|
-
}
|
|
958
|
-
},
|
|
959
|
-
"parametersInfo": {
|
|
960
|
-
"min": 1,
|
|
961
|
-
"max": 1
|
|
962
|
-
}
|
|
963
|
-
},
|
|
964
|
-
{
|
|
965
|
-
"type": "function",
|
|
966
|
-
"name": "minute",
|
|
967
|
-
"bundle": "core",
|
|
968
|
-
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#minute",
|
|
969
|
-
"description": "Vrne minuto časa danega datuma.",
|
|
970
|
-
"examples": "\n##### Primer\n\nPridobi minuto v trenutnem času\n\n```arcade\nMinute(Now())\n```\n\n",
|
|
971
|
-
"completion": {
|
|
972
|
-
"label": "Minute",
|
|
973
|
-
"detail": "Minute(dateValue) -> Number",
|
|
974
|
-
"insertText": "Minute(${1:dateValue_})$0",
|
|
1283
|
+
"detail": "ISOYear(dateValue) -> Number",
|
|
1284
|
+
"insertText": "ISOYear(${1:dateValue_})$0",
|
|
975
1285
|
"insertTextMode": 2,
|
|
976
1286
|
"insertTextFormat": 2,
|
|
977
1287
|
"kind": 3,
|
|
978
1288
|
"documentation": {
|
|
979
1289
|
"kind": "markdown",
|
|
980
|
-
"value": "
|
|
1290
|
+
"value": "**[Od različice 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nVrne leto danega datuma na podlagi tedenskega koledarja standarda ISO 8601.\n\n**Parameter**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) \\| DateOnly - Vrednost datuma, iz katere pridobi leto.\n\n**Vrnjena vrednost**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
981
1291
|
}
|
|
982
1292
|
},
|
|
983
1293
|
"parametersInfo": {
|
|
@@ -985,13 +1295,115 @@
|
|
|
985
1295
|
"max": 1
|
|
986
1296
|
}
|
|
987
1297
|
},
|
|
1298
|
+
[
|
|
1299
|
+
{
|
|
1300
|
+
"type": "function",
|
|
1301
|
+
"name": "millisecond",
|
|
1302
|
+
"bundle": "core",
|
|
1303
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#millisecond1",
|
|
1304
|
+
"description": "Returns the millisecond of the time in the date.",
|
|
1305
|
+
"examples": "\n##### Primer\n\nGets the millisecond of the current time\n\n```arcade\nMillisecond(Now())\n```\n\n",
|
|
1306
|
+
"completion": {
|
|
1307
|
+
"label": "Millisecond",
|
|
1308
|
+
"detail": "Millisecond(dateValue) -> Number",
|
|
1309
|
+
"insertText": "Millisecond(${1:dateValue_})$0",
|
|
1310
|
+
"insertTextMode": 2,
|
|
1311
|
+
"insertTextFormat": 2,
|
|
1312
|
+
"kind": 3,
|
|
1313
|
+
"documentation": {
|
|
1314
|
+
"kind": "markdown",
|
|
1315
|
+
"value": "Returns the millisecond of the time in the date.\n\n**Parameter**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - A Date value from which to get the millisecond of the time.\n\n**Vrnjena vrednost**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
1316
|
+
}
|
|
1317
|
+
},
|
|
1318
|
+
"parametersInfo": {
|
|
1319
|
+
"min": 1,
|
|
1320
|
+
"max": 1
|
|
1321
|
+
}
|
|
1322
|
+
},
|
|
1323
|
+
{
|
|
1324
|
+
"type": "function",
|
|
1325
|
+
"name": "millisecond",
|
|
1326
|
+
"bundle": "core",
|
|
1327
|
+
"sinceVersion": "1.24",
|
|
1328
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#millisecond2",
|
|
1329
|
+
"description": "Returns the millisecond of the given time.",
|
|
1330
|
+
"examples": "\n##### Primer\n\nGets the millisecond of the time\n\n```arcade\nHour(Time(2, 59, 23, 450))\n// returns 450\n```\n\n",
|
|
1331
|
+
"completion": {
|
|
1332
|
+
"label": "Millisecond",
|
|
1333
|
+
"detail": "Millisecond(timeValue) -> Number",
|
|
1334
|
+
"insertText": "Millisecond(${1:timeValue_})$0",
|
|
1335
|
+
"insertTextMode": 2,
|
|
1336
|
+
"insertTextFormat": 2,
|
|
1337
|
+
"kind": 3,
|
|
1338
|
+
"documentation": {
|
|
1339
|
+
"kind": "markdown",
|
|
1340
|
+
"value": "**[Od različice 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nReturns the millisecond of the given time.\n\n**Parameter**\n\n- **timeValue**: Time - A Time value from which to get the millisecond.\n\n**Vrnjena vrednost**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
1341
|
+
}
|
|
1342
|
+
},
|
|
1343
|
+
"parametersInfo": {
|
|
1344
|
+
"min": 1,
|
|
1345
|
+
"max": 1
|
|
1346
|
+
}
|
|
1347
|
+
}
|
|
1348
|
+
],
|
|
1349
|
+
[
|
|
1350
|
+
{
|
|
1351
|
+
"type": "function",
|
|
1352
|
+
"name": "minute",
|
|
1353
|
+
"bundle": "core",
|
|
1354
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#minute1",
|
|
1355
|
+
"description": "Returns the minute of the time in the given date.",
|
|
1356
|
+
"examples": "\n##### Primer\n\nGets the minute of the current time\n\n```arcade\nMinute(Now())\n```\n\n",
|
|
1357
|
+
"completion": {
|
|
1358
|
+
"label": "Minute",
|
|
1359
|
+
"detail": "Minute(dateValue) -> Number",
|
|
1360
|
+
"insertText": "Minute(${1:dateValue_})$0",
|
|
1361
|
+
"insertTextMode": 2,
|
|
1362
|
+
"insertTextFormat": 2,
|
|
1363
|
+
"kind": 3,
|
|
1364
|
+
"documentation": {
|
|
1365
|
+
"kind": "markdown",
|
|
1366
|
+
"value": "Returns the minute of the time in the given date.\n\n**Parameter**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - A Date value from which to get the minute of the time.\n\n**Vrnjena vrednost**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
1367
|
+
}
|
|
1368
|
+
},
|
|
1369
|
+
"parametersInfo": {
|
|
1370
|
+
"min": 1,
|
|
1371
|
+
"max": 1
|
|
1372
|
+
}
|
|
1373
|
+
},
|
|
1374
|
+
{
|
|
1375
|
+
"type": "function",
|
|
1376
|
+
"name": "minute",
|
|
1377
|
+
"bundle": "core",
|
|
1378
|
+
"sinceVersion": "1.24",
|
|
1379
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#minute2",
|
|
1380
|
+
"description": "Returns the minute of the given time.",
|
|
1381
|
+
"examples": "\n##### Primer\n\nGets the minute of the time\n\n```arcade\nHour(Time(2, 59, 23))\n// returns 59\n```\n\n",
|
|
1382
|
+
"completion": {
|
|
1383
|
+
"label": "Minute",
|
|
1384
|
+
"detail": "Minute(timeValue) -> Number",
|
|
1385
|
+
"insertText": "Minute(${1:timeValue_})$0",
|
|
1386
|
+
"insertTextMode": 2,
|
|
1387
|
+
"insertTextFormat": 2,
|
|
1388
|
+
"kind": 3,
|
|
1389
|
+
"documentation": {
|
|
1390
|
+
"kind": "markdown",
|
|
1391
|
+
"value": "**[Od različice 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nReturns the minute of the given time.\n\n**Parameter**\n\n- **timeValue**: Time - A Time value from which to get the minute.\n\n**Vrnjena vrednost**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
1392
|
+
}
|
|
1393
|
+
},
|
|
1394
|
+
"parametersInfo": {
|
|
1395
|
+
"min": 1,
|
|
1396
|
+
"max": 1
|
|
1397
|
+
}
|
|
1398
|
+
}
|
|
1399
|
+
],
|
|
988
1400
|
{
|
|
989
1401
|
"type": "function",
|
|
990
1402
|
"name": "month",
|
|
991
1403
|
"bundle": "core",
|
|
992
1404
|
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#month",
|
|
993
1405
|
"description": "Pridobi mesec danega datuma Vrne razpon 1–11, pri čemer je januar \\\"0\\\" in december \\\"11\\\".",
|
|
994
|
-
"examples": "\n#####
|
|
1406
|
+
"examples": "\n##### Primeri\n\nPridobi mesec danih datumov. Vrne 11 za mesec december.\n\n```arcade\nMonth(Date(1980, 11, 31))\n// returns 11\n```\n\nGets the month of the given DateOnly value.\n\n```arcade\nMonth(DateOnly(1996, 0, 31))\n// returns 0, for the month of January\n```\n\n",
|
|
995
1407
|
"completion": {
|
|
996
1408
|
"label": "Month",
|
|
997
1409
|
"detail": "Month(dateValue) -> Number",
|
|
@@ -1001,7 +1413,7 @@
|
|
|
1001
1413
|
"kind": 3,
|
|
1002
1414
|
"documentation": {
|
|
1003
1415
|
"kind": "markdown",
|
|
1004
|
-
"value": "Pridobi mesec danega datuma Vrne razpon 1–11, pri čemer je januar \\\"0\\\" in december \\\"11\\\".\n\n**Parameter**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - Vrednost datuma, iz katerega pridobi mesec.\n\n**Vrnjena vrednost**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
1416
|
+
"value": "Pridobi mesec danega datuma Vrne razpon 1–11, pri čemer je januar \\\"0\\\" in december \\\"11\\\".\n\n**Parameter**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) \\| DateOnly - Vrednost datuma, iz katerega pridobi mesec.\n\n**Vrnjena vrednost**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
1005
1417
|
}
|
|
1006
1418
|
},
|
|
1007
1419
|
"parametersInfo": {
|
|
@@ -1033,23 +1445,227 @@
|
|
|
1033
1445
|
"max": 0
|
|
1034
1446
|
}
|
|
1035
1447
|
},
|
|
1448
|
+
[
|
|
1449
|
+
{
|
|
1450
|
+
"type": "function",
|
|
1451
|
+
"name": "second",
|
|
1452
|
+
"bundle": "core",
|
|
1453
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#second1",
|
|
1454
|
+
"description": "Returns the second of the time in the date.",
|
|
1455
|
+
"examples": "\n##### Primer\n\nGets the second of the current time\n\n```arcade\nSecond(Now())\n```\n\n",
|
|
1456
|
+
"completion": {
|
|
1457
|
+
"label": "Second",
|
|
1458
|
+
"detail": "Second(dateValue) -> Number",
|
|
1459
|
+
"insertText": "Second(${1:dateValue_})$0",
|
|
1460
|
+
"insertTextMode": 2,
|
|
1461
|
+
"insertTextFormat": 2,
|
|
1462
|
+
"kind": 3,
|
|
1463
|
+
"documentation": {
|
|
1464
|
+
"kind": "markdown",
|
|
1465
|
+
"value": "Returns the second of the time in the date.\n\n**Parameter**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - A Date value from which to get the second of the time.\n\n**Vrnjena vrednost**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
1466
|
+
}
|
|
1467
|
+
},
|
|
1468
|
+
"parametersInfo": {
|
|
1469
|
+
"min": 1,
|
|
1470
|
+
"max": 1
|
|
1471
|
+
}
|
|
1472
|
+
},
|
|
1473
|
+
{
|
|
1474
|
+
"type": "function",
|
|
1475
|
+
"name": "second",
|
|
1476
|
+
"bundle": "core",
|
|
1477
|
+
"sinceVersion": "1.24",
|
|
1478
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#second2",
|
|
1479
|
+
"description": "Returns the second of the given time.",
|
|
1480
|
+
"examples": "\n##### Primer\n\nGets the second of the time\n\n```arcade\nHour(Time(2, 59, 23))\n// returns 23\n```\n\n",
|
|
1481
|
+
"completion": {
|
|
1482
|
+
"label": "Second",
|
|
1483
|
+
"detail": "Second(timeValue) -> Number",
|
|
1484
|
+
"insertText": "Second(${1:timeValue_})$0",
|
|
1485
|
+
"insertTextMode": 2,
|
|
1486
|
+
"insertTextFormat": 2,
|
|
1487
|
+
"kind": 3,
|
|
1488
|
+
"documentation": {
|
|
1489
|
+
"kind": "markdown",
|
|
1490
|
+
"value": "**[Od različice 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nReturns the second of the given time.\n\n**Parameter**\n\n- **timeValue**: Time - A Time value from which to get the second.\n\n**Vrnjena vrednost**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
1491
|
+
}
|
|
1492
|
+
},
|
|
1493
|
+
"parametersInfo": {
|
|
1494
|
+
"min": 1,
|
|
1495
|
+
"max": 1
|
|
1496
|
+
}
|
|
1497
|
+
}
|
|
1498
|
+
],
|
|
1499
|
+
[
|
|
1500
|
+
{
|
|
1501
|
+
"type": "function",
|
|
1502
|
+
"name": "time",
|
|
1503
|
+
"bundle": "core",
|
|
1504
|
+
"sinceVersion": "1.24",
|
|
1505
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#time1",
|
|
1506
|
+
"description": "Creates a Time value representing the current time in the time zone of the profile's execution context.",
|
|
1507
|
+
"examples": "\n##### Primer\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",
|
|
1508
|
+
"completion": {
|
|
1509
|
+
"label": "Time",
|
|
1510
|
+
"detail": "Time() -> Time",
|
|
1511
|
+
"insertText": "Time($0)",
|
|
1512
|
+
"insertTextMode": 2,
|
|
1513
|
+
"insertTextFormat": 2,
|
|
1514
|
+
"kind": 3,
|
|
1515
|
+
"documentation": {
|
|
1516
|
+
"kind": "markdown",
|
|
1517
|
+
"value": "**[Od različice 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**Vrnjena vrednost**: Time"
|
|
1518
|
+
}
|
|
1519
|
+
},
|
|
1520
|
+
"parametersInfo": {
|
|
1521
|
+
"min": 0,
|
|
1522
|
+
"max": 0
|
|
1523
|
+
}
|
|
1524
|
+
},
|
|
1525
|
+
{
|
|
1526
|
+
"type": "function",
|
|
1527
|
+
"name": "time",
|
|
1528
|
+
"bundle": "core",
|
|
1529
|
+
"sinceVersion": "1.24",
|
|
1530
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#time2",
|
|
1531
|
+
"description": "Creates a Time value from a given date.",
|
|
1532
|
+
"examples": "\n##### Primer\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",
|
|
1533
|
+
"completion": {
|
|
1534
|
+
"label": "Time",
|
|
1535
|
+
"detail": "Time(dateValue) -> Time",
|
|
1536
|
+
"insertText": "Time(${1:dateValue_})$0",
|
|
1537
|
+
"insertTextMode": 2,
|
|
1538
|
+
"insertTextFormat": 2,
|
|
1539
|
+
"kind": 3,
|
|
1540
|
+
"documentation": {
|
|
1541
|
+
"kind": "markdown",
|
|
1542
|
+
"value": "**[Od različice 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nCreates a Time value from a given date.\n\n**Parameter**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - The date from which to get the time.\n\n**Vrnjena vrednost**: Time"
|
|
1543
|
+
}
|
|
1544
|
+
},
|
|
1545
|
+
"parametersInfo": {
|
|
1546
|
+
"min": 1,
|
|
1547
|
+
"max": 1
|
|
1548
|
+
}
|
|
1549
|
+
},
|
|
1550
|
+
{
|
|
1551
|
+
"type": "function",
|
|
1552
|
+
"name": "time",
|
|
1553
|
+
"bundle": "core",
|
|
1554
|
+
"sinceVersion": "1.24",
|
|
1555
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#time3",
|
|
1556
|
+
"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`.",
|
|
1557
|
+
"examples": "\n##### Primeri\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",
|
|
1558
|
+
"completion": {
|
|
1559
|
+
"label": "Time",
|
|
1560
|
+
"detail": "Time(numValue) -> Time",
|
|
1561
|
+
"insertText": "Time(${1:numValue_})$0",
|
|
1562
|
+
"insertTextMode": 2,
|
|
1563
|
+
"insertTextFormat": 2,
|
|
1564
|
+
"kind": 3,
|
|
1565
|
+
"documentation": {
|
|
1566
|
+
"kind": "markdown",
|
|
1567
|
+
"value": "**[Od različice 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nCreates a Time value from a given number representing milliseconds since midnight. If the input value is larger than 86,400,000 (the maximum number of milliseconds in a day) or less than 0, the function will return `null`.\n\n**Parameter**\n\n- **numValue**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - The number of milliseconds since midnight.\n\n**Vrnjena vrednost**: Time"
|
|
1568
|
+
}
|
|
1569
|
+
},
|
|
1570
|
+
"parametersInfo": {
|
|
1571
|
+
"min": 1,
|
|
1572
|
+
"max": 1
|
|
1573
|
+
}
|
|
1574
|
+
},
|
|
1575
|
+
{
|
|
1576
|
+
"type": "function",
|
|
1577
|
+
"name": "time",
|
|
1578
|
+
"bundle": "core",
|
|
1579
|
+
"sinceVersion": "1.24",
|
|
1580
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#time4",
|
|
1581
|
+
"description": "Creates a Time value from inputs representing hours, minutes, seconds, and milliseconds.",
|
|
1582
|
+
"examples": "\n##### Primer\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",
|
|
1583
|
+
"completion": {
|
|
1584
|
+
"label": "Time",
|
|
1585
|
+
"detail": "Time(hours, minutes, seconds?, milliseconds?) -> Time",
|
|
1586
|
+
"insertText": "Time(${1:hours_}, ${2:minutes_})$0",
|
|
1587
|
+
"insertTextMode": 2,
|
|
1588
|
+
"insertTextFormat": 2,
|
|
1589
|
+
"kind": 3,
|
|
1590
|
+
"documentation": {
|
|
1591
|
+
"kind": "markdown",
|
|
1592
|
+
"value": "**[Od različice 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**Vrnjena vrednost**: Time"
|
|
1593
|
+
}
|
|
1594
|
+
},
|
|
1595
|
+
"parametersInfo": {
|
|
1596
|
+
"min": 2,
|
|
1597
|
+
"max": 4
|
|
1598
|
+
}
|
|
1599
|
+
},
|
|
1600
|
+
{
|
|
1601
|
+
"type": "function",
|
|
1602
|
+
"name": "time",
|
|
1603
|
+
"bundle": "core",
|
|
1604
|
+
"sinceVersion": "1.24",
|
|
1605
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#time5",
|
|
1606
|
+
"description": "Creates a Time value from a text input representing time, with an optional input indicating the text's format.",
|
|
1607
|
+
"examples": "\n##### Primeri\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",
|
|
1608
|
+
"completion": {
|
|
1609
|
+
"label": "Time",
|
|
1610
|
+
"detail": "Time(timeValue, format?) -> Time",
|
|
1611
|
+
"insertText": "Time(${1:timeValue_})$0",
|
|
1612
|
+
"insertTextMode": 2,
|
|
1613
|
+
"insertTextFormat": 2,
|
|
1614
|
+
"kind": 3,
|
|
1615
|
+
"documentation": {
|
|
1616
|
+
"kind": "markdown",
|
|
1617
|
+
"value": "**[Od različice 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**Vrnjena vrednost**: Time"
|
|
1618
|
+
}
|
|
1619
|
+
},
|
|
1620
|
+
"parametersInfo": {
|
|
1621
|
+
"min": 1,
|
|
1622
|
+
"max": 2
|
|
1623
|
+
}
|
|
1624
|
+
}
|
|
1625
|
+
],
|
|
1626
|
+
{
|
|
1627
|
+
"type": "function",
|
|
1628
|
+
"name": "timestamp",
|
|
1629
|
+
"bundle": "core",
|
|
1630
|
+
"sinceVersion": "1.1",
|
|
1631
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#timestamp",
|
|
1632
|
+
"description": "Ustvari vrednost datuma, ki predstavlja trenutni datum in čas v UTC.",
|
|
1633
|
+
"examples": "\n##### Primer\n\nUstvari datum v času UTC\n\n```arcade\n// Date that represents Jan 27, 2023, 8:41:20 PM UTC\nTimestamp()\n```\n\n",
|
|
1634
|
+
"completion": {
|
|
1635
|
+
"label": "Timestamp",
|
|
1636
|
+
"detail": "Timestamp() -> Date",
|
|
1637
|
+
"insertText": "Timestamp($0)",
|
|
1638
|
+
"insertTextMode": 2,
|
|
1639
|
+
"insertTextFormat": 2,
|
|
1640
|
+
"kind": 3,
|
|
1641
|
+
"documentation": {
|
|
1642
|
+
"kind": "markdown",
|
|
1643
|
+
"value": "**[Od različice 1.1](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nUstvari vrednost datuma, ki predstavlja trenutni datum in čas v UTC.\n\n**Vrnjena vrednost**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)"
|
|
1644
|
+
}
|
|
1645
|
+
},
|
|
1646
|
+
"parametersInfo": {
|
|
1647
|
+
"min": 0,
|
|
1648
|
+
"max": 0
|
|
1649
|
+
}
|
|
1650
|
+
},
|
|
1036
1651
|
{
|
|
1037
1652
|
"type": "function",
|
|
1038
|
-
"name": "
|
|
1653
|
+
"name": "timezone",
|
|
1039
1654
|
"bundle": "core",
|
|
1040
|
-
"
|
|
1041
|
-
"
|
|
1042
|
-
"
|
|
1655
|
+
"sinceVersion": "1.24",
|
|
1656
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#timezone",
|
|
1657
|
+
"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",
|
|
1658
|
+
"examples": "\n##### Primer\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",
|
|
1043
1659
|
"completion": {
|
|
1044
|
-
"label": "
|
|
1045
|
-
"detail": "
|
|
1046
|
-
"insertText": "
|
|
1660
|
+
"label": "TimeZone",
|
|
1661
|
+
"detail": "TimeZone(dateValue) -> Text",
|
|
1662
|
+
"insertText": "TimeZone(${1:dateValue_})$0",
|
|
1047
1663
|
"insertTextMode": 2,
|
|
1048
1664
|
"insertTextFormat": 2,
|
|
1049
1665
|
"kind": 3,
|
|
1050
1666
|
"documentation": {
|
|
1051
1667
|
"kind": "markdown",
|
|
1052
|
-
"value": "
|
|
1668
|
+
"value": "**[Od različice 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nReturns the time zone of the given Date. The time zone will be one of the following:\n- text representing an entry in the [IANA time zone database](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List) (i.e. `America/New_York`)\n- text representing the hours and minutes that should be added to UTC (i.e. `+07:00` or `-03:00`)\n- `system` - time zone will be based on the client or system's local time zone \n- `UTC`\n- `unknown`\n\n\n**Parameter**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - A Date value from which to get the time zone.\n\n**Vrnjena vrednost**: [Text](https://developers.arcgis.com/arcade/guide/types/#text)"
|
|
1053
1669
|
}
|
|
1054
1670
|
},
|
|
1055
1671
|
"parametersInfo": {
|
|
@@ -1059,27 +1675,27 @@
|
|
|
1059
1675
|
},
|
|
1060
1676
|
{
|
|
1061
1677
|
"type": "function",
|
|
1062
|
-
"name": "
|
|
1678
|
+
"name": "timezoneoffset",
|
|
1063
1679
|
"bundle": "core",
|
|
1064
|
-
"sinceVersion": "1.
|
|
1065
|
-
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#
|
|
1066
|
-
"description": "
|
|
1067
|
-
"examples": "\n##### Primer\n\
|
|
1680
|
+
"sinceVersion": "1.24",
|
|
1681
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#timezoneoffset",
|
|
1682
|
+
"description": "Returns the time zone offset in minutes from UTC for the given Date.",
|
|
1683
|
+
"examples": "\n##### Primer\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",
|
|
1068
1684
|
"completion": {
|
|
1069
|
-
"label": "
|
|
1070
|
-
"detail": "
|
|
1071
|
-
"insertText": "
|
|
1685
|
+
"label": "TimeZoneOffset",
|
|
1686
|
+
"detail": "TimeZoneOffset(dateValue) -> Number",
|
|
1687
|
+
"insertText": "TimeZoneOffset(${1:dateValue_})$0",
|
|
1072
1688
|
"insertTextMode": 2,
|
|
1073
1689
|
"insertTextFormat": 2,
|
|
1074
1690
|
"kind": 3,
|
|
1075
1691
|
"documentation": {
|
|
1076
1692
|
"kind": "markdown",
|
|
1077
|
-
"value": "**[Od različice 1.
|
|
1693
|
+
"value": "**[Od različice 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nReturns the time zone offset in minutes from UTC for the given Date.\n\n**Parameter**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - A Date value from which to get the time zone offset.\n\n**Vrnjena vrednost**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
1078
1694
|
}
|
|
1079
1695
|
},
|
|
1080
1696
|
"parametersInfo": {
|
|
1081
|
-
"min":
|
|
1082
|
-
"max":
|
|
1697
|
+
"min": 1,
|
|
1698
|
+
"max": 1
|
|
1083
1699
|
}
|
|
1084
1700
|
},
|
|
1085
1701
|
{
|
|
@@ -1163,7 +1779,7 @@
|
|
|
1163
1779
|
"sinceVersion": "1.14",
|
|
1164
1780
|
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#week",
|
|
1165
1781
|
"description": "Vrne številko tedna v letu danega datuma. Vrednosti segajo od 0 do 53, kjer je prvi teden leta \\\"0\\\" in zadnji teden leta \\\"51\\\", \\\"52\\\" ali \\\"53\\\", odvisno od leta. Prvi in zadnji teden morda nista dolga polnih sedem dni.",
|
|
1166
|
-
"examples": "\n##### Primeri\n\nUporabi privzeti začetek tedna (nedelja)\n\n```arcade\nWeek( Date(1974,0,3) )\n// Returns 0\n```\n\nNastavi začetek tedna na četrtek\n\n```arcade\nWeek( Date(1974,0,3), 4 )\n// Returns 1\n```\n\nNastavi začetek tedna na petek\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",
|
|
1782
|
+
"examples": "\n##### Primeri\n\nUporabi privzeti začetek tedna (nedelja)\n\n```arcade\nWeek( Date(1974,0,3) )\n// Returns 0\n```\n\nNastavi začetek tedna na četrtek\n\n```arcade\nWeek( Date(1974,0,3), 4 )\n// Returns 1\n```\n\nNastavi začetek tedna na petek\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",
|
|
1167
1783
|
"completion": {
|
|
1168
1784
|
"label": "Week",
|
|
1169
1785
|
"detail": "Week(dateValue, startDay?) -> Number",
|
|
@@ -1173,7 +1789,7 @@
|
|
|
1173
1789
|
"kind": 3,
|
|
1174
1790
|
"documentation": {
|
|
1175
1791
|
"kind": "markdown",
|
|
1176
|
-
"value": "**[Od različice 1.14](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nVrne številko tedna v letu danega datuma. Vrednosti segajo od 0 do 53, kjer je prvi teden leta \\\"0\\\" in zadnji teden leta \\\"51\\\", \\\"52\\\" ali \\\"53\\\", odvisno od leta. Prvi in zadnji teden morda nista dolga polnih sedem dni.\n\n**Parametri**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - Vrednost datuma, iz katere se pridobi teden.\n- **startDay** (_Optional_): [Number](https://developers.arcgis.com/arcade/guide/types/#number) - Številka, ki predstavlja začetni dan tedna. Nedelja = 0; Ponedeljek = 1; Torek = 2; Sreda = 3; Četrtek = 4; Petek = 5; Sobota = 6. Privzeta nastavitev je \\\"0\\\" (nedelja).\n\n**Vrnjena vrednost**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
1792
|
+
"value": "**[Od različice 1.14](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nVrne številko tedna v letu danega datuma. Vrednosti segajo od 0 do 53, kjer je prvi teden leta \\\"0\\\" in zadnji teden leta \\\"51\\\", \\\"52\\\" ali \\\"53\\\", odvisno od leta. Prvi in zadnji teden morda nista dolga polnih sedem dni.\n\n**Parametri**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) \\| DateOnly - Vrednost datuma, iz katere se pridobi teden.\n- **startDay** (_Optional_): [Number](https://developers.arcgis.com/arcade/guide/types/#number) - Številka, ki predstavlja začetni dan tedna. Nedelja = 0; Ponedeljek = 1; Torek = 2; Sreda = 3; Četrtek = 4; Petek = 5; Sobota = 6. Privzeta nastavitev je \\\"0\\\" (nedelja).\n\n**Vrnjena vrednost**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
1177
1793
|
}
|
|
1178
1794
|
},
|
|
1179
1795
|
"parametersInfo": {
|
|
@@ -1187,7 +1803,7 @@
|
|
|
1187
1803
|
"bundle": "core",
|
|
1188
1804
|
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#weekday",
|
|
1189
1805
|
"description": "Vrne dan v tednu danega datuma. Vrne razpon vrednosti 0–6, pri čemer je ponedeljek \\\"0\\\" in nedelja \\\"6\\\".",
|
|
1190
|
-
"examples": "\n#####
|
|
1806
|
+
"examples": "\n##### Primeri\n\nVrne dan v tednu danega datuma. Vrne \\\"3\\\" za sredo.\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",
|
|
1191
1807
|
"completion": {
|
|
1192
1808
|
"label": "Weekday",
|
|
1193
1809
|
"detail": "Weekday(dateValue) -> Number",
|
|
@@ -1197,7 +1813,7 @@
|
|
|
1197
1813
|
"kind": 3,
|
|
1198
1814
|
"documentation": {
|
|
1199
1815
|
"kind": "markdown",
|
|
1200
|
-
"value": "Vrne dan v tednu danega datuma. Vrne razpon vrednosti 0–6, pri čemer je ponedeljek \\\"0\\\" in nedelja \\\"6\\\".\n\n**Parameter**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - Vrednost datuma, iz katere vrne dan v tednu.\n\n**Vrnjena vrednost**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
1816
|
+
"value": "Vrne dan v tednu danega datuma. Vrne razpon vrednosti 0–6, pri čemer je ponedeljek \\\"0\\\" in nedelja \\\"6\\\".\n\n**Parameter**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) \\| DateOnly - Vrednost datuma, iz katere vrne dan v tednu.\n\n**Vrnjena vrednost**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
1201
1817
|
}
|
|
1202
1818
|
},
|
|
1203
1819
|
"parametersInfo": {
|
|
@@ -1211,7 +1827,7 @@
|
|
|
1211
1827
|
"bundle": "core",
|
|
1212
1828
|
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#year",
|
|
1213
1829
|
"description": "Vrne leto v določenem datumu.",
|
|
1214
|
-
"examples": "\n#####
|
|
1830
|
+
"examples": "\n##### Primeri\n\nPridobi leto trenutnega datuma\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",
|
|
1215
1831
|
"completion": {
|
|
1216
1832
|
"label": "Year",
|
|
1217
1833
|
"detail": "Year(dateValue) -> Number",
|
|
@@ -1221,7 +1837,7 @@
|
|
|
1221
1837
|
"kind": 3,
|
|
1222
1838
|
"documentation": {
|
|
1223
1839
|
"kind": "markdown",
|
|
1224
|
-
"value": "Vrne leto v določenem datumu.\n\n**Parameter**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - Vrednost datuma, iz katere pridobi leto.\n\n**Vrnjena vrednost**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
1840
|
+
"value": "Vrne leto v določenem datumu.\n\n**Parameter**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) \\| DateOnly - Vrednost datuma, iz katere pridobi leto.\n\n**Vrnjena vrednost**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
1225
1841
|
}
|
|
1226
1842
|
},
|
|
1227
1843
|
"parametersInfo": {
|
|
@@ -2865,6 +3481,31 @@
|
|
|
2865
3481
|
"max": 4
|
|
2866
3482
|
}
|
|
2867
3483
|
},
|
|
3484
|
+
{
|
|
3485
|
+
"type": "function",
|
|
3486
|
+
"name": "featuresetbyrelationshipclass",
|
|
3487
|
+
"bundle": "data-access",
|
|
3488
|
+
"sinceVersion": "1.24",
|
|
3489
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/featureset_functions/#featuresetbyrelationshipclass",
|
|
3490
|
+
"description": "Returns the related records for a given feature as a FeatureSet based on the class name of the relationship.",
|
|
3491
|
+
"examples": "\n##### Primer\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",
|
|
3492
|
+
"completion": {
|
|
3493
|
+
"label": "FeatureSetByRelationshipClass",
|
|
3494
|
+
"detail": "FeatureSetByRelationshipClass(inputFeature, relationshipClass, fieldNames?, includeGeometry?) -> FeatureSet",
|
|
3495
|
+
"insertText": "FeatureSetByRelationshipClass(${1:inputFeature_}, ${2:relationshipClass_})$0",
|
|
3496
|
+
"insertTextMode": 2,
|
|
3497
|
+
"insertTextFormat": 2,
|
|
3498
|
+
"kind": 3,
|
|
3499
|
+
"documentation": {
|
|
3500
|
+
"kind": "markdown",
|
|
3501
|
+
"value": "**[Od različice 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**Vrnjena vrednost**: [FeatureSet](https://developers.arcgis.com/arcade/guide/types/#featureset)"
|
|
3502
|
+
}
|
|
3503
|
+
},
|
|
3504
|
+
"parametersInfo": {
|
|
3505
|
+
"min": 2,
|
|
3506
|
+
"max": 4
|
|
3507
|
+
}
|
|
3508
|
+
},
|
|
2868
3509
|
{
|
|
2869
3510
|
"type": "function",
|
|
2870
3511
|
"name": "featuresetbyrelationshipname",
|
|
@@ -5354,6 +5995,31 @@
|
|
|
5354
5995
|
"max": 2
|
|
5355
5996
|
}
|
|
5356
5997
|
},
|
|
5998
|
+
{
|
|
5999
|
+
"type": "function",
|
|
6000
|
+
"name": "equals",
|
|
6001
|
+
"bundle": "core",
|
|
6002
|
+
"sinceVersion": "1.24",
|
|
6003
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/logical_functions/#equals",
|
|
6004
|
+
"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.",
|
|
6005
|
+
"examples": "\n##### Primer\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",
|
|
6006
|
+
"completion": {
|
|
6007
|
+
"label": "Equals",
|
|
6008
|
+
"detail": "Equals(value1, value2) -> Boolean",
|
|
6009
|
+
"insertText": "Equals(${1:value1_}, ${2:value2_})$0",
|
|
6010
|
+
"insertTextMode": 2,
|
|
6011
|
+
"insertTextFormat": 2,
|
|
6012
|
+
"kind": 3,
|
|
6013
|
+
"documentation": {
|
|
6014
|
+
"kind": "markdown",
|
|
6015
|
+
"value": "**[Od različice 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**Vrnjena vrednost**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean)"
|
|
6016
|
+
}
|
|
6017
|
+
},
|
|
6018
|
+
"parametersInfo": {
|
|
6019
|
+
"min": 2,
|
|
6020
|
+
"max": 2
|
|
6021
|
+
}
|
|
6022
|
+
},
|
|
5357
6023
|
{
|
|
5358
6024
|
"type": "function",
|
|
5359
6025
|
"name": "iif",
|
|
@@ -5789,7 +6455,7 @@
|
|
|
5789
6455
|
"kind": 3,
|
|
5790
6456
|
"documentation": {
|
|
5791
6457
|
"kind": "markdown",
|
|
5792
|
-
"value": "**[Od različice 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nUstvari zgoščeno vrednost kode za dano spremenljivko.\n\n**Parameter**\n\n- **value**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) \\| [Number](https://developers.arcgis.com/arcade/guide/types/#number) \\| [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean) \\| [Date](https://developers.arcgis.com/arcade/guide/types/#date) \\| [Array](https://developers.arcgis.com/arcade/guide/types/#array)<[Any](https://developers.arcgis.com/arcade/guide/types/#any)> \\| [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) \\| [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) - Spremenljivka, ki bo zgoščena.\n\n**Vrnjena vrednost**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
6458
|
+
"value": "**[Od različice 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nUstvari zgoščeno vrednost kode za dano spremenljivko.\n\n**Parameter**\n\n- **value**: [Text](https://developers.arcgis.com/arcade/guide/types/#text) \\| [Number](https://developers.arcgis.com/arcade/guide/types/#number) \\| [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean) \\| [Date](https://developers.arcgis.com/arcade/guide/types/#date) \\| [Array](https://developers.arcgis.com/arcade/guide/types/#array)<[Any](https://developers.arcgis.com/arcade/guide/types/#any)> \\| [Dictionary](https://developers.arcgis.com/arcade/guide/types/#dictionary) \\| [Geometry](https://developers.arcgis.com/arcade/guide/types/#geometry) \\| DateOnly \\| Time - Spremenljivka, ki bo zgoščena.\n\n**Vrnjena vrednost**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
5793
6459
|
}
|
|
5794
6460
|
},
|
|
5795
6461
|
"parametersInfo": {
|