@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
|
@@ -180,29 +180,54 @@
|
|
|
180
180
|
"id": "date_functions",
|
|
181
181
|
"title": "Funkcije datuma",
|
|
182
182
|
"items": [
|
|
183
|
+
{
|
|
184
|
+
"type": "function",
|
|
185
|
+
"name": "changetimezone",
|
|
186
|
+
"bundle": "core",
|
|
187
|
+
"sinceVersion": "1.24",
|
|
188
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#changetimezone",
|
|
189
|
+
"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`.",
|
|
190
|
+
"examples": "\n##### Primjeri\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",
|
|
191
|
+
"completion": {
|
|
192
|
+
"label": "ChangeTimeZone",
|
|
193
|
+
"detail": "ChangeTimeZone(dateValue, newTimeZone) -> Date",
|
|
194
|
+
"insertText": "ChangeTimeZone(${1:dateValue_}, ${2:newTimeZone_})$0",
|
|
195
|
+
"insertTextMode": 2,
|
|
196
|
+
"insertTextFormat": 2,
|
|
197
|
+
"kind": 3,
|
|
198
|
+
"documentation": {
|
|
199
|
+
"kind": "markdown",
|
|
200
|
+
"value": "**[Od verzije 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**Povratna vrijednost**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)"
|
|
201
|
+
}
|
|
202
|
+
},
|
|
203
|
+
"parametersInfo": {
|
|
204
|
+
"min": 2,
|
|
205
|
+
"max": 2
|
|
206
|
+
}
|
|
207
|
+
},
|
|
183
208
|
[
|
|
184
209
|
{
|
|
185
210
|
"type": "function",
|
|
186
211
|
"name": "date",
|
|
187
212
|
"bundle": "core",
|
|
188
213
|
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#date1",
|
|
189
|
-
"description": "
|
|
190
|
-
"examples": "\n##### Primjeri\n\
|
|
214
|
+
"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.",
|
|
215
|
+
"examples": "\n##### Primjeri\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",
|
|
191
216
|
"completion": {
|
|
192
217
|
"label": "Date",
|
|
193
|
-
"detail": "Date(year, month, day, hour?, minute?, second?, millisecond?) -> Date",
|
|
218
|
+
"detail": "Date(year, month, day, hour?, minute?, second?, millisecond?, timeZone?) -> Date",
|
|
194
219
|
"insertText": "Date(${1:year_}, ${2:month_}, ${3:day_})$0",
|
|
195
220
|
"insertTextMode": 2,
|
|
196
221
|
"insertTextFormat": 2,
|
|
197
222
|
"kind": 3,
|
|
198
223
|
"documentation": {
|
|
199
224
|
"kind": "markdown",
|
|
200
|
-
"value": "
|
|
225
|
+
"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**Povratna vrijednost**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)"
|
|
201
226
|
}
|
|
202
227
|
},
|
|
203
228
|
"parametersInfo": {
|
|
204
229
|
"min": 3,
|
|
205
|
-
"max":
|
|
230
|
+
"max": 8
|
|
206
231
|
}
|
|
207
232
|
},
|
|
208
233
|
{
|
|
@@ -210,8 +235,8 @@
|
|
|
210
235
|
"name": "date",
|
|
211
236
|
"bundle": "core",
|
|
212
237
|
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#date2",
|
|
213
|
-
"description": "
|
|
214
|
-
"examples": "\n#####
|
|
238
|
+
"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.",
|
|
239
|
+
"examples": "\n##### Primjeri\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",
|
|
215
240
|
"completion": {
|
|
216
241
|
"label": "Date",
|
|
217
242
|
"detail": "Date(epoch?) -> Date",
|
|
@@ -221,7 +246,7 @@
|
|
|
221
246
|
"kind": 3,
|
|
222
247
|
"documentation": {
|
|
223
248
|
"kind": "markdown",
|
|
224
|
-
"value": "
|
|
249
|
+
"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**Parametar**\n\n- **epoch** (_Optional_): [Number](https://developers.arcgis.com/arcade/guide/types/#number) - The number of milliseconds since January 1, 1970 UTC.\n\n**Povratna vrijednost**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)"
|
|
225
250
|
}
|
|
226
251
|
},
|
|
227
252
|
"parametersInfo": {
|
|
@@ -234,8 +259,8 @@
|
|
|
234
259
|
"name": "date",
|
|
235
260
|
"bundle": "core",
|
|
236
261
|
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#date3",
|
|
237
|
-
"description": "
|
|
238
|
-
"examples": "\n#####
|
|
262
|
+
"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.",
|
|
263
|
+
"examples": "\n##### Primjeri\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",
|
|
239
264
|
"completion": {
|
|
240
265
|
"label": "Date",
|
|
241
266
|
"detail": "Date(timestamp?) -> Date",
|
|
@@ -245,70 +270,376 @@
|
|
|
245
270
|
"kind": 3,
|
|
246
271
|
"documentation": {
|
|
247
272
|
"kind": "markdown",
|
|
248
|
-
"value": "
|
|
273
|
+
"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**Parametar**\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**Povratna vrijednost**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)"
|
|
249
274
|
}
|
|
250
275
|
},
|
|
251
276
|
"parametersInfo": {
|
|
252
277
|
"min": 0,
|
|
253
278
|
"max": 1
|
|
254
279
|
}
|
|
280
|
+
},
|
|
281
|
+
{
|
|
282
|
+
"type": "function",
|
|
283
|
+
"name": "date",
|
|
284
|
+
"bundle": "core",
|
|
285
|
+
"sinceVersion": "1.24",
|
|
286
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#date4",
|
|
287
|
+
"description": "Creates a Date from a DateOnly value, with an optional Time and time zone value.",
|
|
288
|
+
"examples": "\n##### Primjer\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",
|
|
289
|
+
"completion": {
|
|
290
|
+
"label": "Date",
|
|
291
|
+
"detail": "Date(dateOnlyValue, timeValue?, timeZone?) -> Date",
|
|
292
|
+
"insertText": "Date(${1:dateOnlyValue_})$0",
|
|
293
|
+
"insertTextMode": 2,
|
|
294
|
+
"insertTextFormat": 2,
|
|
295
|
+
"kind": 3,
|
|
296
|
+
"documentation": {
|
|
297
|
+
"kind": "markdown",
|
|
298
|
+
"value": "**[Od verzije 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**Povratna vrijednost**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)"
|
|
299
|
+
}
|
|
300
|
+
},
|
|
301
|
+
"parametersInfo": {
|
|
302
|
+
"min": 1,
|
|
303
|
+
"max": 3
|
|
304
|
+
}
|
|
305
|
+
},
|
|
306
|
+
{
|
|
307
|
+
"type": "function",
|
|
308
|
+
"name": "date",
|
|
309
|
+
"bundle": "core",
|
|
310
|
+
"sinceVersion": "1.24",
|
|
311
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#date5",
|
|
312
|
+
"description": "Creates a copy of the given Date.",
|
|
313
|
+
"examples": "\n##### Primjer\n\nCreates a copy of the current Date value\n\n```arcade\nvar copiedDate = Date(Now())\n```\n\n",
|
|
314
|
+
"completion": {
|
|
315
|
+
"label": "Date",
|
|
316
|
+
"detail": "Date(dateValue) -> Date",
|
|
317
|
+
"insertText": "Date(${1:dateValue_})$0",
|
|
318
|
+
"insertTextMode": 2,
|
|
319
|
+
"insertTextFormat": 2,
|
|
320
|
+
"kind": 3,
|
|
321
|
+
"documentation": {
|
|
322
|
+
"kind": "markdown",
|
|
323
|
+
"value": "**[Od verzije 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nCreates a copy of the given Date.\n\n**Parametar**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - The Date to copy.\n\n**Povratna vrijednost**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)"
|
|
324
|
+
}
|
|
325
|
+
},
|
|
326
|
+
"parametersInfo": {
|
|
327
|
+
"min": 1,
|
|
328
|
+
"max": 1
|
|
329
|
+
}
|
|
255
330
|
}
|
|
256
331
|
],
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
"
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
"
|
|
273
|
-
|
|
332
|
+
[
|
|
333
|
+
{
|
|
334
|
+
"type": "function",
|
|
335
|
+
"name": "dateadd",
|
|
336
|
+
"bundle": "core",
|
|
337
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#dateadd1",
|
|
338
|
+
"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.",
|
|
339
|
+
"examples": "\n##### Primjer\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",
|
|
340
|
+
"completion": {
|
|
341
|
+
"label": "DateAdd",
|
|
342
|
+
"detail": "DateAdd(dateValue, addValue, units?) -> Date",
|
|
343
|
+
"insertText": "DateAdd(${1:dateValue_}, ${2:addValue_})$0",
|
|
344
|
+
"insertTextMode": 2,
|
|
345
|
+
"insertTextFormat": 2,
|
|
346
|
+
"kind": 3,
|
|
347
|
+
"documentation": {
|
|
348
|
+
"kind": "markdown",
|
|
349
|
+
"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**Povratna vrijednost**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)"
|
|
350
|
+
}
|
|
351
|
+
},
|
|
352
|
+
"parametersInfo": {
|
|
353
|
+
"min": 2,
|
|
354
|
+
"max": 3
|
|
274
355
|
}
|
|
275
356
|
},
|
|
276
|
-
|
|
277
|
-
"
|
|
278
|
-
"
|
|
357
|
+
{
|
|
358
|
+
"type": "function",
|
|
359
|
+
"name": "dateadd",
|
|
360
|
+
"bundle": "core",
|
|
361
|
+
"sinceVersion": "1.24",
|
|
362
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#dateadd2",
|
|
363
|
+
"description": "Adds a specified amount of time in the given units to a DateOnly value and returns a new DateOnly value.",
|
|
364
|
+
"examples": "\n##### Primjeri\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",
|
|
365
|
+
"completion": {
|
|
366
|
+
"label": "DateAdd",
|
|
367
|
+
"detail": "DateAdd(dateOnlyValue, addValue, units?) -> DateOnly",
|
|
368
|
+
"insertText": "DateAdd(${1:dateOnlyValue_}, ${2:addValue_})$0",
|
|
369
|
+
"insertTextMode": 2,
|
|
370
|
+
"insertTextFormat": 2,
|
|
371
|
+
"kind": 3,
|
|
372
|
+
"documentation": {
|
|
373
|
+
"kind": "markdown",
|
|
374
|
+
"value": "**[Od verzije 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**Povratna vrijednost**: DateOnly"
|
|
375
|
+
}
|
|
376
|
+
},
|
|
377
|
+
"parametersInfo": {
|
|
378
|
+
"min": 2,
|
|
379
|
+
"max": 3
|
|
380
|
+
}
|
|
381
|
+
},
|
|
382
|
+
{
|
|
383
|
+
"type": "function",
|
|
384
|
+
"name": "dateadd",
|
|
385
|
+
"bundle": "core",
|
|
386
|
+
"sinceVersion": "1.24",
|
|
387
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#dateadd3",
|
|
388
|
+
"description": "Adds a specified amount of time in the given units to a Time value and returns a new Time value.",
|
|
389
|
+
"examples": "\n##### Primjeri\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",
|
|
390
|
+
"completion": {
|
|
391
|
+
"label": "DateAdd",
|
|
392
|
+
"detail": "DateAdd(timeValue, addValue, units?) -> Time",
|
|
393
|
+
"insertText": "DateAdd(${1:timeValue_}, ${2:addValue_})$0",
|
|
394
|
+
"insertTextMode": 2,
|
|
395
|
+
"insertTextFormat": 2,
|
|
396
|
+
"kind": 3,
|
|
397
|
+
"documentation": {
|
|
398
|
+
"kind": "markdown",
|
|
399
|
+
"value": "**[Od verzije 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**Povratna vrijednost**: Time"
|
|
400
|
+
}
|
|
401
|
+
},
|
|
402
|
+
"parametersInfo": {
|
|
403
|
+
"min": 2,
|
|
404
|
+
"max": 3
|
|
405
|
+
}
|
|
279
406
|
}
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
"
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
"
|
|
297
|
-
|
|
407
|
+
],
|
|
408
|
+
[
|
|
409
|
+
{
|
|
410
|
+
"type": "function",
|
|
411
|
+
"name": "datediff",
|
|
412
|
+
"bundle": "core",
|
|
413
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#datediff1",
|
|
414
|
+
"description": "Subtracts two Dates, and returns the difference in the specified units.",
|
|
415
|
+
"examples": "\n##### Primjeri\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",
|
|
416
|
+
"completion": {
|
|
417
|
+
"label": "DateDiff",
|
|
418
|
+
"detail": "DateDiff(date1, date2, units?, timeZone?) -> Number",
|
|
419
|
+
"insertText": "DateDiff(${1:date1_}, ${2:date2_})$0",
|
|
420
|
+
"insertTextMode": 2,
|
|
421
|
+
"insertTextFormat": 2,
|
|
422
|
+
"kind": 3,
|
|
423
|
+
"documentation": {
|
|
424
|
+
"kind": "markdown",
|
|
425
|
+
"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**Povratna vrijednost**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
426
|
+
}
|
|
427
|
+
},
|
|
428
|
+
"parametersInfo": {
|
|
429
|
+
"min": 2,
|
|
430
|
+
"max": 4
|
|
298
431
|
}
|
|
299
432
|
},
|
|
300
|
-
|
|
301
|
-
"
|
|
302
|
-
"
|
|
433
|
+
{
|
|
434
|
+
"type": "function",
|
|
435
|
+
"name": "datediff",
|
|
436
|
+
"bundle": "core",
|
|
437
|
+
"sinceVersion": "1.24",
|
|
438
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#datediff2",
|
|
439
|
+
"description": "Subtracts two DateOnly values, and returns the difference in the specified units.",
|
|
440
|
+
"examples": "\n##### Primjer\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",
|
|
441
|
+
"completion": {
|
|
442
|
+
"label": "DateDiff",
|
|
443
|
+
"detail": "DateDiff(dateOnly1, dateOnly2, units?) -> Number",
|
|
444
|
+
"insertText": "DateDiff(${1:dateOnly1_}, ${2:dateOnly2_})$0",
|
|
445
|
+
"insertTextMode": 2,
|
|
446
|
+
"insertTextFormat": 2,
|
|
447
|
+
"kind": 3,
|
|
448
|
+
"documentation": {
|
|
449
|
+
"kind": "markdown",
|
|
450
|
+
"value": "**[Od verzije 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**Povratna vrijednost**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
451
|
+
}
|
|
452
|
+
},
|
|
453
|
+
"parametersInfo": {
|
|
454
|
+
"min": 2,
|
|
455
|
+
"max": 3
|
|
456
|
+
}
|
|
457
|
+
},
|
|
458
|
+
{
|
|
459
|
+
"type": "function",
|
|
460
|
+
"name": "datediff",
|
|
461
|
+
"bundle": "core",
|
|
462
|
+
"sinceVersion": "1.24",
|
|
463
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#datediff3",
|
|
464
|
+
"description": "Subtracts two Time values, and returns the difference in the specified units.",
|
|
465
|
+
"examples": "\n##### Primjer\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",
|
|
466
|
+
"completion": {
|
|
467
|
+
"label": "DateDiff",
|
|
468
|
+
"detail": "DateDiff(time1, time2, units?) -> Number",
|
|
469
|
+
"insertText": "DateDiff(${1:time1_}, ${2:time2_})$0",
|
|
470
|
+
"insertTextMode": 2,
|
|
471
|
+
"insertTextFormat": 2,
|
|
472
|
+
"kind": 3,
|
|
473
|
+
"documentation": {
|
|
474
|
+
"kind": "markdown",
|
|
475
|
+
"value": "**[Od verzije 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**Povratna vrijednost**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
476
|
+
}
|
|
477
|
+
},
|
|
478
|
+
"parametersInfo": {
|
|
479
|
+
"min": 2,
|
|
480
|
+
"max": 3
|
|
481
|
+
}
|
|
303
482
|
}
|
|
304
|
-
|
|
483
|
+
],
|
|
484
|
+
[
|
|
485
|
+
{
|
|
486
|
+
"type": "function",
|
|
487
|
+
"name": "dateonly",
|
|
488
|
+
"bundle": "core",
|
|
489
|
+
"sinceVersion": "1.24",
|
|
490
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#dateonly1",
|
|
491
|
+
"description": "Creates a DateOnly value based on the current date in the time zone of the profile's execution context.",
|
|
492
|
+
"examples": "\n##### Primjer\n\nReturns the current DateOnly (no time)\n\n```arcade\nDateOnly()\n// returns the current date, i.e. 2023-09-12\n```\n\n",
|
|
493
|
+
"completion": {
|
|
494
|
+
"label": "DateOnly",
|
|
495
|
+
"detail": "DateOnly() -> DateOnly",
|
|
496
|
+
"insertText": "DateOnly($0)",
|
|
497
|
+
"insertTextMode": 2,
|
|
498
|
+
"insertTextFormat": 2,
|
|
499
|
+
"kind": 3,
|
|
500
|
+
"documentation": {
|
|
501
|
+
"kind": "markdown",
|
|
502
|
+
"value": "**[Od verzije 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**Povratna vrijednost**: DateOnly"
|
|
503
|
+
}
|
|
504
|
+
},
|
|
505
|
+
"parametersInfo": {
|
|
506
|
+
"min": 0,
|
|
507
|
+
"max": 0
|
|
508
|
+
}
|
|
509
|
+
},
|
|
510
|
+
{
|
|
511
|
+
"type": "function",
|
|
512
|
+
"name": "dateonly",
|
|
513
|
+
"bundle": "core",
|
|
514
|
+
"sinceVersion": "1.24",
|
|
515
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#dateonly2",
|
|
516
|
+
"description": "Creates a DateOnly value from a given date.",
|
|
517
|
+
"examples": "\n##### Primjer\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",
|
|
518
|
+
"completion": {
|
|
519
|
+
"label": "DateOnly",
|
|
520
|
+
"detail": "DateOnly(dateValue) -> DateOnly",
|
|
521
|
+
"insertText": "DateOnly(${1:dateValue_})$0",
|
|
522
|
+
"insertTextMode": 2,
|
|
523
|
+
"insertTextFormat": 2,
|
|
524
|
+
"kind": 3,
|
|
525
|
+
"documentation": {
|
|
526
|
+
"kind": "markdown",
|
|
527
|
+
"value": "**[Od verzije 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nCreates a DateOnly value from a given date.\n\n**Parametar**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - The date from which to create the DateOnly value.\n\n**Povratna vrijednost**: DateOnly"
|
|
528
|
+
}
|
|
529
|
+
},
|
|
530
|
+
"parametersInfo": {
|
|
531
|
+
"min": 1,
|
|
532
|
+
"max": 1
|
|
533
|
+
}
|
|
534
|
+
},
|
|
535
|
+
{
|
|
536
|
+
"type": "function",
|
|
537
|
+
"name": "dateonly",
|
|
538
|
+
"bundle": "core",
|
|
539
|
+
"sinceVersion": "1.24",
|
|
540
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#dateonly3",
|
|
541
|
+
"description": "Creates a DateOnly date with the given Unix epoch number.",
|
|
542
|
+
"examples": "\n##### Primjer\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",
|
|
543
|
+
"completion": {
|
|
544
|
+
"label": "DateOnly",
|
|
545
|
+
"detail": "DateOnly(epoch) -> DateOnly",
|
|
546
|
+
"insertText": "DateOnly(${1:epoch_})$0",
|
|
547
|
+
"insertTextMode": 2,
|
|
548
|
+
"insertTextFormat": 2,
|
|
549
|
+
"kind": 3,
|
|
550
|
+
"documentation": {
|
|
551
|
+
"kind": "markdown",
|
|
552
|
+
"value": "**[Od verzije 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nCreates a DateOnly date with the given Unix epoch number.\n\n**Parametar**\n\n- **epoch**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - The number of milliseconds since January 1, 1970 UTC.\n\n**Povratna vrijednost**: DateOnly"
|
|
553
|
+
}
|
|
554
|
+
},
|
|
555
|
+
"parametersInfo": {
|
|
556
|
+
"min": 1,
|
|
557
|
+
"max": 1
|
|
558
|
+
}
|
|
559
|
+
},
|
|
560
|
+
{
|
|
561
|
+
"type": "function",
|
|
562
|
+
"name": "dateonly",
|
|
563
|
+
"bundle": "core",
|
|
564
|
+
"sinceVersion": "1.24",
|
|
565
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#dateonly4",
|
|
566
|
+
"description": "Creates a DateOnly value from inputs representing the year, month, and day.",
|
|
567
|
+
"examples": "\n##### Primjer\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",
|
|
568
|
+
"completion": {
|
|
569
|
+
"label": "DateOnly",
|
|
570
|
+
"detail": "DateOnly(year, month, day) -> DateOnly",
|
|
571
|
+
"insertText": "DateOnly(${1:year_}, ${2:month_}, ${3:day_})$0",
|
|
572
|
+
"insertTextMode": 2,
|
|
573
|
+
"insertTextFormat": 2,
|
|
574
|
+
"kind": 3,
|
|
575
|
+
"documentation": {
|
|
576
|
+
"kind": "markdown",
|
|
577
|
+
"value": "**[Od verzije 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**Povratna vrijednost**: DateOnly"
|
|
578
|
+
}
|
|
579
|
+
},
|
|
580
|
+
"parametersInfo": {
|
|
581
|
+
"min": 3,
|
|
582
|
+
"max": 3
|
|
583
|
+
}
|
|
584
|
+
},
|
|
585
|
+
{
|
|
586
|
+
"type": "function",
|
|
587
|
+
"name": "dateonly",
|
|
588
|
+
"bundle": "core",
|
|
589
|
+
"sinceVersion": "1.24",
|
|
590
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#dateonly5",
|
|
591
|
+
"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.",
|
|
592
|
+
"examples": "\n##### Primjeri\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",
|
|
593
|
+
"completion": {
|
|
594
|
+
"label": "DateOnly",
|
|
595
|
+
"detail": "DateOnly(dateValue, format?) -> DateOnly",
|
|
596
|
+
"insertText": "DateOnly(${1:dateValue_})$0",
|
|
597
|
+
"insertTextMode": 2,
|
|
598
|
+
"insertTextFormat": 2,
|
|
599
|
+
"kind": 3,
|
|
600
|
+
"documentation": {
|
|
601
|
+
"kind": "markdown",
|
|
602
|
+
"value": "**[Od verzije 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**Povratna vrijednost**: DateOnly"
|
|
603
|
+
}
|
|
604
|
+
},
|
|
605
|
+
"parametersInfo": {
|
|
606
|
+
"min": 1,
|
|
607
|
+
"max": 2
|
|
608
|
+
}
|
|
609
|
+
},
|
|
610
|
+
{
|
|
611
|
+
"type": "function",
|
|
612
|
+
"name": "dateonly",
|
|
613
|
+
"bundle": "core",
|
|
614
|
+
"sinceVersion": "1.24",
|
|
615
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#dateonly6",
|
|
616
|
+
"description": "Creates a copy of a DateOnly value.",
|
|
617
|
+
"examples": "\n##### Primjer\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",
|
|
618
|
+
"completion": {
|
|
619
|
+
"label": "DateOnly",
|
|
620
|
+
"detail": "DateOnly(dateOnlyValue) -> DateOnly",
|
|
621
|
+
"insertText": "DateOnly(${1:dateOnlyValue_})$0",
|
|
622
|
+
"insertTextMode": 2,
|
|
623
|
+
"insertTextFormat": 2,
|
|
624
|
+
"kind": 3,
|
|
625
|
+
"documentation": {
|
|
626
|
+
"kind": "markdown",
|
|
627
|
+
"value": "**[Od verzije 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nCreates a copy of a DateOnly value.\n\n**Parametar**\n\n- **dateOnlyValue**: DateOnly - The DateOnly value to copy.\n\n**Povratna vrijednost**: DateOnly"
|
|
628
|
+
}
|
|
629
|
+
},
|
|
630
|
+
"parametersInfo": {
|
|
631
|
+
"min": 1,
|
|
632
|
+
"max": 1
|
|
633
|
+
}
|
|
634
|
+
}
|
|
635
|
+
],
|
|
305
636
|
{
|
|
306
637
|
"type": "function",
|
|
307
638
|
"name": "day",
|
|
308
639
|
"bundle": "core",
|
|
309
640
|
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#day",
|
|
310
641
|
"description": "Vraća dan u mjesecu za dani datum.",
|
|
311
|
-
"examples": "\n#####
|
|
642
|
+
"examples": "\n##### Primjeri\n\nDohvaća dan u mjesecu za trenutni datum\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",
|
|
312
643
|
"completion": {
|
|
313
644
|
"label": "Day",
|
|
314
645
|
"detail": "Day(dateValue) -> Number",
|
|
@@ -318,7 +649,7 @@
|
|
|
318
649
|
"kind": 3,
|
|
319
650
|
"documentation": {
|
|
320
651
|
"kind": "markdown",
|
|
321
|
-
"value": "Vraća dan u mjesecu za dani datum.\n\n**Parametar**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - Vrijednost datuma za dobivanje dana u mjesecu.\n\n**Povratna vrijednost**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
652
|
+
"value": "Vraća dan u mjesecu za dani datum.\n\n**Parametar**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) \\| DateOnly - Vrijednost datuma za dobivanje dana u mjesecu.\n\n**Povratna vrijednost**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
322
653
|
}
|
|
323
654
|
},
|
|
324
655
|
"parametersInfo": {
|
|
@@ -326,30 +657,57 @@
|
|
|
326
657
|
"max": 1
|
|
327
658
|
}
|
|
328
659
|
},
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
"
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
"
|
|
345
|
-
|
|
660
|
+
[
|
|
661
|
+
{
|
|
662
|
+
"type": "function",
|
|
663
|
+
"name": "hour",
|
|
664
|
+
"bundle": "core",
|
|
665
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#hour1",
|
|
666
|
+
"description": "Returns the hour of the time in the given date (0-23).",
|
|
667
|
+
"examples": "\n##### Primjer\n\nGets the hour of the current time\n\n```arcade\nHour(Now())\n```\n\n",
|
|
668
|
+
"completion": {
|
|
669
|
+
"label": "Hour",
|
|
670
|
+
"detail": "Hour(dateValue) -> Number",
|
|
671
|
+
"insertText": "Hour(${1:dateValue_})$0",
|
|
672
|
+
"insertTextMode": 2,
|
|
673
|
+
"insertTextFormat": 2,
|
|
674
|
+
"kind": 3,
|
|
675
|
+
"documentation": {
|
|
676
|
+
"kind": "markdown",
|
|
677
|
+
"value": "Returns the hour of the time in the given date (0-23).\n\n**Parametar**\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**Povratna vrijednost**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
678
|
+
}
|
|
679
|
+
},
|
|
680
|
+
"parametersInfo": {
|
|
681
|
+
"min": 1,
|
|
682
|
+
"max": 1
|
|
346
683
|
}
|
|
347
684
|
},
|
|
348
|
-
|
|
349
|
-
"
|
|
350
|
-
"
|
|
685
|
+
{
|
|
686
|
+
"type": "function",
|
|
687
|
+
"name": "hour",
|
|
688
|
+
"bundle": "core",
|
|
689
|
+
"sinceVersion": "1.24",
|
|
690
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#hour2",
|
|
691
|
+
"description": "Returns the hour of the given time (0-23).",
|
|
692
|
+
"examples": "\n##### Primjer\n\nGets the hour of the time\n\n```arcade\nHour(Time(2, 59, 23))\n// returns 2\n```\n\n",
|
|
693
|
+
"completion": {
|
|
694
|
+
"label": "Hour",
|
|
695
|
+
"detail": "Hour(timeValue) -> Number",
|
|
696
|
+
"insertText": "Hour(${1:timeValue_})$0",
|
|
697
|
+
"insertTextMode": 2,
|
|
698
|
+
"insertTextFormat": 2,
|
|
699
|
+
"kind": 3,
|
|
700
|
+
"documentation": {
|
|
701
|
+
"kind": "markdown",
|
|
702
|
+
"value": "**[Od verzije 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nReturns the hour of the given time (0-23).\n\n**Parametar**\n\n- **timeValue**: Time - A Time value from which to get the hour.\n\n**Povratna vrijednost**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
703
|
+
}
|
|
704
|
+
},
|
|
705
|
+
"parametersInfo": {
|
|
706
|
+
"min": 1,
|
|
707
|
+
"max": 1
|
|
708
|
+
}
|
|
351
709
|
}
|
|
352
|
-
|
|
710
|
+
],
|
|
353
711
|
{
|
|
354
712
|
"type": "function",
|
|
355
713
|
"name": "isomonth",
|
|
@@ -357,7 +715,7 @@
|
|
|
357
715
|
"sinceVersion": "1.12",
|
|
358
716
|
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#isomonth",
|
|
359
717
|
"description": "Vraća mjesec navedenog datuma na temelju norme ISO 8601. Vrijednosti se kreću od 1-12, gdje je siječanj `1`, a prosinac` 12`.",
|
|
360
|
-
"examples": "\n#####
|
|
718
|
+
"examples": "\n##### Primjeri\n\nDohvaća mjesec navedenog datuma na temelju norme ISO 8601. Vraća 12, za mjesec prosinac.\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",
|
|
361
719
|
"completion": {
|
|
362
720
|
"label": "ISOMonth",
|
|
363
721
|
"detail": "ISOMonth(dateValue) -> Number",
|
|
@@ -367,7 +725,7 @@
|
|
|
367
725
|
"kind": 3,
|
|
368
726
|
"documentation": {
|
|
369
727
|
"kind": "markdown",
|
|
370
|
-
"value": "**[Od verzije 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nVraća mjesec navedenog datuma na temelju norme ISO 8601. Vrijednosti se kreću od 1-12, gdje je siječanj `1`, a prosinac` 12`.\n\n**Parametar**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - Vrijednost datuma za dobivanje mjeseca.\n\n**Povratna vrijednost**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
728
|
+
"value": "**[Od verzije 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nVraća mjesec navedenog datuma na temelju norme ISO 8601. Vrijednosti se kreću od 1-12, gdje je siječanj `1`, a prosinac` 12`.\n\n**Parametar**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) \\| DateOnly - Vrijednost datuma za dobivanje mjeseca.\n\n**Povratna vrijednost**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
371
729
|
}
|
|
372
730
|
},
|
|
373
731
|
"parametersInfo": {
|
|
@@ -382,7 +740,7 @@
|
|
|
382
740
|
"sinceVersion": "1.12",
|
|
383
741
|
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#isoweek",
|
|
384
742
|
"description": "Vraća tjedan u godini navedenog datuma na temelju kalendara tjedna ISO 8601. Vrijednosti se kreću od 1-53, gdje je prvi tjedan u godini `1`, a zadnji tjedan u godini` 52` ili `53`, ovisno o godini.",
|
|
385
|
-
"examples": "\n#####
|
|
743
|
+
"examples": "\n##### Primjeri\n\nDohvaća tjedan navedenog datuma na temelju norme ISO 8601. Vraća `1`, jer je ovaj datum uključen u prvi tjedan sljedeće godine.\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",
|
|
386
744
|
"completion": {
|
|
387
745
|
"label": "ISOWeek",
|
|
388
746
|
"detail": "ISOWeek(dateValue) -> Number",
|
|
@@ -392,7 +750,7 @@
|
|
|
392
750
|
"kind": 3,
|
|
393
751
|
"documentation": {
|
|
394
752
|
"kind": "markdown",
|
|
395
|
-
"value": "**[Od verzije 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nVraća tjedan u godini navedenog datuma na temelju kalendara tjedna ISO 8601. Vrijednosti se kreću od 1-53, gdje je prvi tjedan u godini `1`, a zadnji tjedan u godini` 52` ili `53`, ovisno o godini.\n\n**Parametar**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - Vrijednost datuma za dobivanje tjedna.\n\n**Povratna vrijednost**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
753
|
+
"value": "**[Od verzije 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nVraća tjedan u godini navedenog datuma na temelju kalendara tjedna ISO 8601. Vrijednosti se kreću od 1-53, gdje je prvi tjedan u godini `1`, a zadnji tjedan u godini` 52` ili `53`, ovisno o godini.\n\n**Parametar**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) \\| DateOnly - Vrijednost datuma za dobivanje tjedna.\n\n**Povratna vrijednost**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
396
754
|
}
|
|
397
755
|
},
|
|
398
756
|
"parametersInfo": {
|
|
@@ -407,7 +765,7 @@
|
|
|
407
765
|
"sinceVersion": "1.12",
|
|
408
766
|
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#isoweekday",
|
|
409
767
|
"description": "Vraća dan u tjednu navedenog datuma na temelju norme ISO 8601. Vrijednosti se kreću od 1-7, gdje je ponedjeljak `1`, a nedjelja` 7`.",
|
|
410
|
-
"examples": "\n#####
|
|
768
|
+
"examples": "\n##### Primjeri\n\nVraća dan u tjednu navedenog datuma na temelju norme ISO 8601. Vraća `3`, za srijedu.\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",
|
|
411
769
|
"completion": {
|
|
412
770
|
"label": "ISOWeekday",
|
|
413
771
|
"detail": "ISOWeekday(dateValue) -> Number",
|
|
@@ -417,7 +775,7 @@
|
|
|
417
775
|
"kind": 3,
|
|
418
776
|
"documentation": {
|
|
419
777
|
"kind": "markdown",
|
|
420
|
-
"value": "**[Od verzije 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nVraća dan u tjednu navedenog datuma na temelju norme ISO 8601. Vrijednosti se kreću od 1-7, gdje je ponedjeljak `1`, a nedjelja` 7`.\n\n**Parametar**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - Vrijednost datuma iz kojeg će se vratiti dan u tjednu.\n\n**Povratna vrijednost**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
778
|
+
"value": "**[Od verzije 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nVraća dan u tjednu navedenog datuma na temelju norme ISO 8601. Vrijednosti se kreću od 1-7, gdje je ponedjeljak `1`, a nedjelja` 7`.\n\n**Parametar**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) \\| DateOnly - Vrijednost datuma iz kojeg će se vratiti dan u tjednu.\n\n**Povratna vrijednost**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
421
779
|
}
|
|
422
780
|
},
|
|
423
781
|
"parametersInfo": {
|
|
@@ -432,65 +790,17 @@
|
|
|
432
790
|
"sinceVersion": "1.12",
|
|
433
791
|
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#isoyear",
|
|
434
792
|
"description": "Vraća godinu navedenog datuma na temelju kalendara tjedna ISO 8601.",
|
|
435
|
-
"examples": "\n#####
|
|
793
|
+
"examples": "\n##### Primjeri\n\nDohvaća godinu navedenog datuma na temelju kalendara tjedna ISO 8601. Vraća `1981`, jer je ovaj datum uključen u prvi tjedan sljedeće godine.\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",
|
|
436
794
|
"completion": {
|
|
437
795
|
"label": "ISOYear",
|
|
438
|
-
"detail": "ISOYear(dateValue) -> Number",
|
|
439
|
-
"insertText": "ISOYear(${1:dateValue_})$0",
|
|
440
|
-
"insertTextMode": 2,
|
|
441
|
-
"insertTextFormat": 2,
|
|
442
|
-
"kind": 3,
|
|
443
|
-
"documentation": {
|
|
444
|
-
"kind": "markdown",
|
|
445
|
-
"value": "**[Od verzije 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nVraća godinu navedenog datuma na temelju kalendara tjedna ISO 8601.\n\n**Parametar**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - Vrijednost datuma za dobivanje godine.\n\n**Povratna vrijednost**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
446
|
-
}
|
|
447
|
-
},
|
|
448
|
-
"parametersInfo": {
|
|
449
|
-
"min": 1,
|
|
450
|
-
"max": 1
|
|
451
|
-
}
|
|
452
|
-
},
|
|
453
|
-
{
|
|
454
|
-
"type": "function",
|
|
455
|
-
"name": "millisecond",
|
|
456
|
-
"bundle": "core",
|
|
457
|
-
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#millisecond",
|
|
458
|
-
"description": "Vraća milisekundu u vremenu za datum.",
|
|
459
|
-
"examples": "\n##### Primjer\n\nDohvaća milisekundu trenutnog vremena\n\n```arcade\nMillisecond(Now())\n```\n\n",
|
|
460
|
-
"completion": {
|
|
461
|
-
"label": "Millisecond",
|
|
462
|
-
"detail": "Millisecond(dateValue) -> Number",
|
|
463
|
-
"insertText": "Millisecond(${1:dateValue_})$0",
|
|
464
|
-
"insertTextMode": 2,
|
|
465
|
-
"insertTextFormat": 2,
|
|
466
|
-
"kind": 3,
|
|
467
|
-
"documentation": {
|
|
468
|
-
"kind": "markdown",
|
|
469
|
-
"value": "Vraća milisekundu u vremenu za datum.\n\n**Parametar**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - Vrijednost datuma za dobivanje milisekunde u vremenu.\n\n**Povratna vrijednost**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
470
|
-
}
|
|
471
|
-
},
|
|
472
|
-
"parametersInfo": {
|
|
473
|
-
"min": 1,
|
|
474
|
-
"max": 1
|
|
475
|
-
}
|
|
476
|
-
},
|
|
477
|
-
{
|
|
478
|
-
"type": "function",
|
|
479
|
-
"name": "minute",
|
|
480
|
-
"bundle": "core",
|
|
481
|
-
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#minute",
|
|
482
|
-
"description": "Vraća minutu u vremenu za dani datum.",
|
|
483
|
-
"examples": "\n##### Primjer\n\nDohvaća minutu trenutnog vremena\n\n```arcade\nMinute(Now())\n```\n\n",
|
|
484
|
-
"completion": {
|
|
485
|
-
"label": "Minute",
|
|
486
|
-
"detail": "Minute(dateValue) -> Number",
|
|
487
|
-
"insertText": "Minute(${1:dateValue_})$0",
|
|
796
|
+
"detail": "ISOYear(dateValue) -> Number",
|
|
797
|
+
"insertText": "ISOYear(${1:dateValue_})$0",
|
|
488
798
|
"insertTextMode": 2,
|
|
489
799
|
"insertTextFormat": 2,
|
|
490
800
|
"kind": 3,
|
|
491
801
|
"documentation": {
|
|
492
802
|
"kind": "markdown",
|
|
493
|
-
"value": "
|
|
803
|
+
"value": "**[Od verzije 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nVraća godinu navedenog datuma na temelju kalendara tjedna ISO 8601.\n\n**Parametar**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) \\| DateOnly - Vrijednost datuma za dobivanje godine.\n\n**Povratna vrijednost**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
494
804
|
}
|
|
495
805
|
},
|
|
496
806
|
"parametersInfo": {
|
|
@@ -498,13 +808,115 @@
|
|
|
498
808
|
"max": 1
|
|
499
809
|
}
|
|
500
810
|
},
|
|
811
|
+
[
|
|
812
|
+
{
|
|
813
|
+
"type": "function",
|
|
814
|
+
"name": "millisecond",
|
|
815
|
+
"bundle": "core",
|
|
816
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#millisecond1",
|
|
817
|
+
"description": "Returns the millisecond of the time in the date.",
|
|
818
|
+
"examples": "\n##### Primjer\n\nGets the millisecond of the current time\n\n```arcade\nMillisecond(Now())\n```\n\n",
|
|
819
|
+
"completion": {
|
|
820
|
+
"label": "Millisecond",
|
|
821
|
+
"detail": "Millisecond(dateValue) -> Number",
|
|
822
|
+
"insertText": "Millisecond(${1:dateValue_})$0",
|
|
823
|
+
"insertTextMode": 2,
|
|
824
|
+
"insertTextFormat": 2,
|
|
825
|
+
"kind": 3,
|
|
826
|
+
"documentation": {
|
|
827
|
+
"kind": "markdown",
|
|
828
|
+
"value": "Returns the millisecond of the time in the date.\n\n**Parametar**\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**Povratna vrijednost**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
829
|
+
}
|
|
830
|
+
},
|
|
831
|
+
"parametersInfo": {
|
|
832
|
+
"min": 1,
|
|
833
|
+
"max": 1
|
|
834
|
+
}
|
|
835
|
+
},
|
|
836
|
+
{
|
|
837
|
+
"type": "function",
|
|
838
|
+
"name": "millisecond",
|
|
839
|
+
"bundle": "core",
|
|
840
|
+
"sinceVersion": "1.24",
|
|
841
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#millisecond2",
|
|
842
|
+
"description": "Returns the millisecond of the given time.",
|
|
843
|
+
"examples": "\n##### Primjer\n\nGets the millisecond of the time\n\n```arcade\nHour(Time(2, 59, 23, 450))\n// returns 450\n```\n\n",
|
|
844
|
+
"completion": {
|
|
845
|
+
"label": "Millisecond",
|
|
846
|
+
"detail": "Millisecond(timeValue) -> Number",
|
|
847
|
+
"insertText": "Millisecond(${1:timeValue_})$0",
|
|
848
|
+
"insertTextMode": 2,
|
|
849
|
+
"insertTextFormat": 2,
|
|
850
|
+
"kind": 3,
|
|
851
|
+
"documentation": {
|
|
852
|
+
"kind": "markdown",
|
|
853
|
+
"value": "**[Od verzije 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nReturns the millisecond of the given time.\n\n**Parametar**\n\n- **timeValue**: Time - A Time value from which to get the millisecond.\n\n**Povratna vrijednost**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
854
|
+
}
|
|
855
|
+
},
|
|
856
|
+
"parametersInfo": {
|
|
857
|
+
"min": 1,
|
|
858
|
+
"max": 1
|
|
859
|
+
}
|
|
860
|
+
}
|
|
861
|
+
],
|
|
862
|
+
[
|
|
863
|
+
{
|
|
864
|
+
"type": "function",
|
|
865
|
+
"name": "minute",
|
|
866
|
+
"bundle": "core",
|
|
867
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#minute1",
|
|
868
|
+
"description": "Returns the minute of the time in the given date.",
|
|
869
|
+
"examples": "\n##### Primjer\n\nGets the minute of the current time\n\n```arcade\nMinute(Now())\n```\n\n",
|
|
870
|
+
"completion": {
|
|
871
|
+
"label": "Minute",
|
|
872
|
+
"detail": "Minute(dateValue) -> Number",
|
|
873
|
+
"insertText": "Minute(${1:dateValue_})$0",
|
|
874
|
+
"insertTextMode": 2,
|
|
875
|
+
"insertTextFormat": 2,
|
|
876
|
+
"kind": 3,
|
|
877
|
+
"documentation": {
|
|
878
|
+
"kind": "markdown",
|
|
879
|
+
"value": "Returns the minute of the time in the given date.\n\n**Parametar**\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**Povratna vrijednost**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
880
|
+
}
|
|
881
|
+
},
|
|
882
|
+
"parametersInfo": {
|
|
883
|
+
"min": 1,
|
|
884
|
+
"max": 1
|
|
885
|
+
}
|
|
886
|
+
},
|
|
887
|
+
{
|
|
888
|
+
"type": "function",
|
|
889
|
+
"name": "minute",
|
|
890
|
+
"bundle": "core",
|
|
891
|
+
"sinceVersion": "1.24",
|
|
892
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#minute2",
|
|
893
|
+
"description": "Returns the minute of the given time.",
|
|
894
|
+
"examples": "\n##### Primjer\n\nGets the minute of the time\n\n```arcade\nHour(Time(2, 59, 23))\n// returns 59\n```\n\n",
|
|
895
|
+
"completion": {
|
|
896
|
+
"label": "Minute",
|
|
897
|
+
"detail": "Minute(timeValue) -> Number",
|
|
898
|
+
"insertText": "Minute(${1:timeValue_})$0",
|
|
899
|
+
"insertTextMode": 2,
|
|
900
|
+
"insertTextFormat": 2,
|
|
901
|
+
"kind": 3,
|
|
902
|
+
"documentation": {
|
|
903
|
+
"kind": "markdown",
|
|
904
|
+
"value": "**[Od verzije 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nReturns the minute of the given time.\n\n**Parametar**\n\n- **timeValue**: Time - A Time value from which to get the minute.\n\n**Povratna vrijednost**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
905
|
+
}
|
|
906
|
+
},
|
|
907
|
+
"parametersInfo": {
|
|
908
|
+
"min": 1,
|
|
909
|
+
"max": 1
|
|
910
|
+
}
|
|
911
|
+
}
|
|
912
|
+
],
|
|
501
913
|
{
|
|
502
914
|
"type": "function",
|
|
503
915
|
"name": "month",
|
|
504
916
|
"bundle": "core",
|
|
505
917
|
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#month",
|
|
506
918
|
"description": "Vraća mjesec za dani datum. Vrijednosti se kreću od 0-11, gdje je siječanj `0`, a prosinac` 11`.",
|
|
507
|
-
"examples": "\n#####
|
|
919
|
+
"examples": "\n##### Primjeri\n\nDohvaća mjesec za navedeni datum Vraća 11, za mjesec prosinac.\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",
|
|
508
920
|
"completion": {
|
|
509
921
|
"label": "Month",
|
|
510
922
|
"detail": "Month(dateValue) -> Number",
|
|
@@ -514,7 +926,7 @@
|
|
|
514
926
|
"kind": 3,
|
|
515
927
|
"documentation": {
|
|
516
928
|
"kind": "markdown",
|
|
517
|
-
"value": "Vraća mjesec za dani datum. Vrijednosti se kreću od 0-11, gdje je siječanj `0`, a prosinac` 11`.\n\n**Parametar**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - Vrijednost datuma za dobivanje mjeseca.\n\n**Povratna vrijednost**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
929
|
+
"value": "Vraća mjesec za dani datum. Vrijednosti se kreću od 0-11, gdje je siječanj `0`, a prosinac` 11`.\n\n**Parametar**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) \\| DateOnly - Vrijednost datuma za dobivanje mjeseca.\n\n**Povratna vrijednost**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
518
930
|
}
|
|
519
931
|
},
|
|
520
932
|
"parametersInfo": {
|
|
@@ -546,23 +958,227 @@
|
|
|
546
958
|
"max": 0
|
|
547
959
|
}
|
|
548
960
|
},
|
|
961
|
+
[
|
|
962
|
+
{
|
|
963
|
+
"type": "function",
|
|
964
|
+
"name": "second",
|
|
965
|
+
"bundle": "core",
|
|
966
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#second1",
|
|
967
|
+
"description": "Returns the second of the time in the date.",
|
|
968
|
+
"examples": "\n##### Primjer\n\nGets the second of the current time\n\n```arcade\nSecond(Now())\n```\n\n",
|
|
969
|
+
"completion": {
|
|
970
|
+
"label": "Second",
|
|
971
|
+
"detail": "Second(dateValue) -> Number",
|
|
972
|
+
"insertText": "Second(${1:dateValue_})$0",
|
|
973
|
+
"insertTextMode": 2,
|
|
974
|
+
"insertTextFormat": 2,
|
|
975
|
+
"kind": 3,
|
|
976
|
+
"documentation": {
|
|
977
|
+
"kind": "markdown",
|
|
978
|
+
"value": "Returns the second of the time in the date.\n\n**Parametar**\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**Povratna vrijednost**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
979
|
+
}
|
|
980
|
+
},
|
|
981
|
+
"parametersInfo": {
|
|
982
|
+
"min": 1,
|
|
983
|
+
"max": 1
|
|
984
|
+
}
|
|
985
|
+
},
|
|
986
|
+
{
|
|
987
|
+
"type": "function",
|
|
988
|
+
"name": "second",
|
|
989
|
+
"bundle": "core",
|
|
990
|
+
"sinceVersion": "1.24",
|
|
991
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#second2",
|
|
992
|
+
"description": "Returns the second of the given time.",
|
|
993
|
+
"examples": "\n##### Primjer\n\nGets the second of the time\n\n```arcade\nHour(Time(2, 59, 23))\n// returns 23\n```\n\n",
|
|
994
|
+
"completion": {
|
|
995
|
+
"label": "Second",
|
|
996
|
+
"detail": "Second(timeValue) -> Number",
|
|
997
|
+
"insertText": "Second(${1:timeValue_})$0",
|
|
998
|
+
"insertTextMode": 2,
|
|
999
|
+
"insertTextFormat": 2,
|
|
1000
|
+
"kind": 3,
|
|
1001
|
+
"documentation": {
|
|
1002
|
+
"kind": "markdown",
|
|
1003
|
+
"value": "**[Od verzije 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nReturns the second of the given time.\n\n**Parametar**\n\n- **timeValue**: Time - A Time value from which to get the second.\n\n**Povratna vrijednost**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
1004
|
+
}
|
|
1005
|
+
},
|
|
1006
|
+
"parametersInfo": {
|
|
1007
|
+
"min": 1,
|
|
1008
|
+
"max": 1
|
|
1009
|
+
}
|
|
1010
|
+
}
|
|
1011
|
+
],
|
|
1012
|
+
[
|
|
1013
|
+
{
|
|
1014
|
+
"type": "function",
|
|
1015
|
+
"name": "time",
|
|
1016
|
+
"bundle": "core",
|
|
1017
|
+
"sinceVersion": "1.24",
|
|
1018
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#time1",
|
|
1019
|
+
"description": "Creates a Time value representing the current time in the time zone of the profile's execution context.",
|
|
1020
|
+
"examples": "\n##### Primjer\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",
|
|
1021
|
+
"completion": {
|
|
1022
|
+
"label": "Time",
|
|
1023
|
+
"detail": "Time() -> Time",
|
|
1024
|
+
"insertText": "Time($0)",
|
|
1025
|
+
"insertTextMode": 2,
|
|
1026
|
+
"insertTextFormat": 2,
|
|
1027
|
+
"kind": 3,
|
|
1028
|
+
"documentation": {
|
|
1029
|
+
"kind": "markdown",
|
|
1030
|
+
"value": "**[Od verzije 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**Povratna vrijednost**: Time"
|
|
1031
|
+
}
|
|
1032
|
+
},
|
|
1033
|
+
"parametersInfo": {
|
|
1034
|
+
"min": 0,
|
|
1035
|
+
"max": 0
|
|
1036
|
+
}
|
|
1037
|
+
},
|
|
1038
|
+
{
|
|
1039
|
+
"type": "function",
|
|
1040
|
+
"name": "time",
|
|
1041
|
+
"bundle": "core",
|
|
1042
|
+
"sinceVersion": "1.24",
|
|
1043
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#time2",
|
|
1044
|
+
"description": "Creates a Time value from a given date.",
|
|
1045
|
+
"examples": "\n##### Primjer\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",
|
|
1046
|
+
"completion": {
|
|
1047
|
+
"label": "Time",
|
|
1048
|
+
"detail": "Time(dateValue) -> Time",
|
|
1049
|
+
"insertText": "Time(${1:dateValue_})$0",
|
|
1050
|
+
"insertTextMode": 2,
|
|
1051
|
+
"insertTextFormat": 2,
|
|
1052
|
+
"kind": 3,
|
|
1053
|
+
"documentation": {
|
|
1054
|
+
"kind": "markdown",
|
|
1055
|
+
"value": "**[Od verzije 1.24](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nCreates a Time value from a given date.\n\n**Parametar**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - The date from which to get the time.\n\n**Povratna vrijednost**: Time"
|
|
1056
|
+
}
|
|
1057
|
+
},
|
|
1058
|
+
"parametersInfo": {
|
|
1059
|
+
"min": 1,
|
|
1060
|
+
"max": 1
|
|
1061
|
+
}
|
|
1062
|
+
},
|
|
1063
|
+
{
|
|
1064
|
+
"type": "function",
|
|
1065
|
+
"name": "time",
|
|
1066
|
+
"bundle": "core",
|
|
1067
|
+
"sinceVersion": "1.24",
|
|
1068
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#time3",
|
|
1069
|
+
"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`.",
|
|
1070
|
+
"examples": "\n##### Primjeri\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",
|
|
1071
|
+
"completion": {
|
|
1072
|
+
"label": "Time",
|
|
1073
|
+
"detail": "Time(numValue) -> Time",
|
|
1074
|
+
"insertText": "Time(${1:numValue_})$0",
|
|
1075
|
+
"insertTextMode": 2,
|
|
1076
|
+
"insertTextFormat": 2,
|
|
1077
|
+
"kind": 3,
|
|
1078
|
+
"documentation": {
|
|
1079
|
+
"kind": "markdown",
|
|
1080
|
+
"value": "**[Od verzije 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**Parametar**\n\n- **numValue**: [Number](https://developers.arcgis.com/arcade/guide/types/#number) - The number of milliseconds since midnight.\n\n**Povratna vrijednost**: Time"
|
|
1081
|
+
}
|
|
1082
|
+
},
|
|
1083
|
+
"parametersInfo": {
|
|
1084
|
+
"min": 1,
|
|
1085
|
+
"max": 1
|
|
1086
|
+
}
|
|
1087
|
+
},
|
|
1088
|
+
{
|
|
1089
|
+
"type": "function",
|
|
1090
|
+
"name": "time",
|
|
1091
|
+
"bundle": "core",
|
|
1092
|
+
"sinceVersion": "1.24",
|
|
1093
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#time4",
|
|
1094
|
+
"description": "Creates a Time value from inputs representing hours, minutes, seconds, and milliseconds.",
|
|
1095
|
+
"examples": "\n##### Primjer\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",
|
|
1096
|
+
"completion": {
|
|
1097
|
+
"label": "Time",
|
|
1098
|
+
"detail": "Time(hours, minutes, seconds?, milliseconds?) -> Time",
|
|
1099
|
+
"insertText": "Time(${1:hours_}, ${2:minutes_})$0",
|
|
1100
|
+
"insertTextMode": 2,
|
|
1101
|
+
"insertTextFormat": 2,
|
|
1102
|
+
"kind": 3,
|
|
1103
|
+
"documentation": {
|
|
1104
|
+
"kind": "markdown",
|
|
1105
|
+
"value": "**[Od verzije 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**Povratna vrijednost**: Time"
|
|
1106
|
+
}
|
|
1107
|
+
},
|
|
1108
|
+
"parametersInfo": {
|
|
1109
|
+
"min": 2,
|
|
1110
|
+
"max": 4
|
|
1111
|
+
}
|
|
1112
|
+
},
|
|
1113
|
+
{
|
|
1114
|
+
"type": "function",
|
|
1115
|
+
"name": "time",
|
|
1116
|
+
"bundle": "core",
|
|
1117
|
+
"sinceVersion": "1.24",
|
|
1118
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#time5",
|
|
1119
|
+
"description": "Creates a Time value from a text input representing time, with an optional input indicating the text's format.",
|
|
1120
|
+
"examples": "\n##### Primjeri\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",
|
|
1121
|
+
"completion": {
|
|
1122
|
+
"label": "Time",
|
|
1123
|
+
"detail": "Time(timeValue, format?) -> Time",
|
|
1124
|
+
"insertText": "Time(${1:timeValue_})$0",
|
|
1125
|
+
"insertTextMode": 2,
|
|
1126
|
+
"insertTextFormat": 2,
|
|
1127
|
+
"kind": 3,
|
|
1128
|
+
"documentation": {
|
|
1129
|
+
"kind": "markdown",
|
|
1130
|
+
"value": "**[Od verzije 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**Povratna vrijednost**: Time"
|
|
1131
|
+
}
|
|
1132
|
+
},
|
|
1133
|
+
"parametersInfo": {
|
|
1134
|
+
"min": 1,
|
|
1135
|
+
"max": 2
|
|
1136
|
+
}
|
|
1137
|
+
}
|
|
1138
|
+
],
|
|
1139
|
+
{
|
|
1140
|
+
"type": "function",
|
|
1141
|
+
"name": "timestamp",
|
|
1142
|
+
"bundle": "core",
|
|
1143
|
+
"sinceVersion": "1.1",
|
|
1144
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#timestamp",
|
|
1145
|
+
"description": "Stvara vrijednost datuma koja predstavlja trenutni datum i vrijeme u UTC-u.",
|
|
1146
|
+
"examples": "\n##### Primjer\n\nStvara datum u UTC vremenu\n\n```arcade\n// Date that represents Jan 27, 2023, 8:41:20 PM UTC\nTimestamp()\n```\n\n",
|
|
1147
|
+
"completion": {
|
|
1148
|
+
"label": "Timestamp",
|
|
1149
|
+
"detail": "Timestamp() -> Date",
|
|
1150
|
+
"insertText": "Timestamp($0)",
|
|
1151
|
+
"insertTextMode": 2,
|
|
1152
|
+
"insertTextFormat": 2,
|
|
1153
|
+
"kind": 3,
|
|
1154
|
+
"documentation": {
|
|
1155
|
+
"kind": "markdown",
|
|
1156
|
+
"value": "**[Od verzije 1.1](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nStvara vrijednost datuma koja predstavlja trenutni datum i vrijeme u UTC-u.\n\n**Povratna vrijednost**: [Date](https://developers.arcgis.com/arcade/guide/types/#date)"
|
|
1157
|
+
}
|
|
1158
|
+
},
|
|
1159
|
+
"parametersInfo": {
|
|
1160
|
+
"min": 0,
|
|
1161
|
+
"max": 0
|
|
1162
|
+
}
|
|
1163
|
+
},
|
|
549
1164
|
{
|
|
550
1165
|
"type": "function",
|
|
551
|
-
"name": "
|
|
1166
|
+
"name": "timezone",
|
|
552
1167
|
"bundle": "core",
|
|
553
|
-
"
|
|
554
|
-
"
|
|
555
|
-
"
|
|
1168
|
+
"sinceVersion": "1.24",
|
|
1169
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#timezone",
|
|
1170
|
+
"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",
|
|
1171
|
+
"examples": "\n##### Primjer\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",
|
|
556
1172
|
"completion": {
|
|
557
|
-
"label": "
|
|
558
|
-
"detail": "
|
|
559
|
-
"insertText": "
|
|
1173
|
+
"label": "TimeZone",
|
|
1174
|
+
"detail": "TimeZone(dateValue) -> Text",
|
|
1175
|
+
"insertText": "TimeZone(${1:dateValue_})$0",
|
|
560
1176
|
"insertTextMode": 2,
|
|
561
1177
|
"insertTextFormat": 2,
|
|
562
1178
|
"kind": 3,
|
|
563
1179
|
"documentation": {
|
|
564
1180
|
"kind": "markdown",
|
|
565
|
-
"value": "
|
|
1181
|
+
"value": "**[Od verzije 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**Parametar**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - A Date value from which to get the time zone.\n\n**Povratna vrijednost**: [Text](https://developers.arcgis.com/arcade/guide/types/#text)"
|
|
566
1182
|
}
|
|
567
1183
|
},
|
|
568
1184
|
"parametersInfo": {
|
|
@@ -572,27 +1188,27 @@
|
|
|
572
1188
|
},
|
|
573
1189
|
{
|
|
574
1190
|
"type": "function",
|
|
575
|
-
"name": "
|
|
1191
|
+
"name": "timezoneoffset",
|
|
576
1192
|
"bundle": "core",
|
|
577
|
-
"sinceVersion": "1.
|
|
578
|
-
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#
|
|
579
|
-
"description": "
|
|
580
|
-
"examples": "\n##### Primjer\n\
|
|
1193
|
+
"sinceVersion": "1.24",
|
|
1194
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#timezoneoffset",
|
|
1195
|
+
"description": "Returns the time zone offset in minutes from UTC for the given Date.",
|
|
1196
|
+
"examples": "\n##### Primjer\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",
|
|
581
1197
|
"completion": {
|
|
582
|
-
"label": "
|
|
583
|
-
"detail": "
|
|
584
|
-
"insertText": "
|
|
1198
|
+
"label": "TimeZoneOffset",
|
|
1199
|
+
"detail": "TimeZoneOffset(dateValue) -> Number",
|
|
1200
|
+
"insertText": "TimeZoneOffset(${1:dateValue_})$0",
|
|
585
1201
|
"insertTextMode": 2,
|
|
586
1202
|
"insertTextFormat": 2,
|
|
587
1203
|
"kind": 3,
|
|
588
1204
|
"documentation": {
|
|
589
1205
|
"kind": "markdown",
|
|
590
|
-
"value": "**[Od verzije 1.
|
|
1206
|
+
"value": "**[Od verzije 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**Parametar**\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**Povratna vrijednost**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
591
1207
|
}
|
|
592
1208
|
},
|
|
593
1209
|
"parametersInfo": {
|
|
594
|
-
"min":
|
|
595
|
-
"max":
|
|
1210
|
+
"min": 1,
|
|
1211
|
+
"max": 1
|
|
596
1212
|
}
|
|
597
1213
|
},
|
|
598
1214
|
{
|
|
@@ -676,7 +1292,7 @@
|
|
|
676
1292
|
"sinceVersion": "1.14",
|
|
677
1293
|
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#week",
|
|
678
1294
|
"description": "Vraća broj tjedna u godini navedenog datuma. Vrijednosti se kreću od 0 do 53 gdje je prvi tjedan u godini `0\\\", a zadnji tjedan u godini `51`, `52` ili `53`, ovisno o godini. Prvi i posljednji tjedan možda ne traju punih sedam dana.",
|
|
679
|
-
"examples": "\n##### Primjeri\n\nKoristite zadani početak tjedna (nedjelja)\n\n```arcade\nWeek( Date(1974,0,3) )\n// Returns 0\n```\n\nPočetak tjedna postavite na četvrtak\n\n```arcade\nWeek( Date(1974,0,3), 4 )\n// Returns 1\n```\n\nPočetak tjedna postavite na petak\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",
|
|
1295
|
+
"examples": "\n##### Primjeri\n\nKoristite zadani početak tjedna (nedjelja)\n\n```arcade\nWeek( Date(1974,0,3) )\n// Returns 0\n```\n\nPočetak tjedna postavite na četvrtak\n\n```arcade\nWeek( Date(1974,0,3), 4 )\n// Returns 1\n```\n\nPočetak tjedna postavite na petak\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",
|
|
680
1296
|
"completion": {
|
|
681
1297
|
"label": "Week",
|
|
682
1298
|
"detail": "Week(dateValue, startDay?) -> Number",
|
|
@@ -686,7 +1302,7 @@
|
|
|
686
1302
|
"kind": 3,
|
|
687
1303
|
"documentation": {
|
|
688
1304
|
"kind": "markdown",
|
|
689
|
-
"value": "**[Od verzije 1.14](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nVraća broj tjedna u godini navedenog datuma. Vrijednosti se kreću od 0 do 53 gdje je prvi tjedan u godini `0\\\", a zadnji tjedan u godini `51`, `52` ili `53`, ovisno o godini. Prvi i posljednji tjedan možda ne traju punih sedam dana.\n\n**Parametri**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - Vrijednost datuma za dobivanje tjedna.\n- **startDay** (_Optional_): [Number](https://developers.arcgis.com/arcade/guide/types/#number) - Broj koji predstavlja dan početka tjedna. Nedjelja = 0; Ponedjeljak = 1; Utorak = 2; Srijeda = 3; Četvrtak = 4; Petak = 5; Subota = 6. Zadana vrijednost je `0` (nedjelja).\n\n**Povratna vrijednost**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
1305
|
+
"value": "**[Od verzije 1.14](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nVraća broj tjedna u godini navedenog datuma. Vrijednosti se kreću od 0 do 53 gdje je prvi tjedan u godini `0\\\", a zadnji tjedan u godini `51`, `52` ili `53`, ovisno o godini. Prvi i posljednji tjedan možda ne traju punih sedam dana.\n\n**Parametri**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) \\| DateOnly - Vrijednost datuma za dobivanje tjedna.\n- **startDay** (_Optional_): [Number](https://developers.arcgis.com/arcade/guide/types/#number) - Broj koji predstavlja dan početka tjedna. Nedjelja = 0; Ponedjeljak = 1; Utorak = 2; Srijeda = 3; Četvrtak = 4; Petak = 5; Subota = 6. Zadana vrijednost je `0` (nedjelja).\n\n**Povratna vrijednost**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
690
1306
|
}
|
|
691
1307
|
},
|
|
692
1308
|
"parametersInfo": {
|
|
@@ -700,7 +1316,7 @@
|
|
|
700
1316
|
"bundle": "core",
|
|
701
1317
|
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#weekday",
|
|
702
1318
|
"description": "Vraća dan u tjednu za navedeni datum Vrijednosti se kreću od 0-6, gdje je nedjelja `0`, a subota `6`.",
|
|
703
|
-
"examples": "\n#####
|
|
1319
|
+
"examples": "\n##### Primjeri\n\nVraća dan u tjednu za navedeni datum Vraća `3`, za srijedu.\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",
|
|
704
1320
|
"completion": {
|
|
705
1321
|
"label": "Weekday",
|
|
706
1322
|
"detail": "Weekday(dateValue) -> Number",
|
|
@@ -710,7 +1326,7 @@
|
|
|
710
1326
|
"kind": 3,
|
|
711
1327
|
"documentation": {
|
|
712
1328
|
"kind": "markdown",
|
|
713
|
-
"value": "Vraća dan u tjednu za navedeni datum Vrijednosti se kreću od 0-6, gdje je nedjelja `0`, a subota `6`.\n\n**Parametar**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - Vrijednost datuma iz kojeg će se vratiti dan u tjednu.\n\n**Povratna vrijednost**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
1329
|
+
"value": "Vraća dan u tjednu za navedeni datum Vrijednosti se kreću od 0-6, gdje je nedjelja `0`, a subota `6`.\n\n**Parametar**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) \\| DateOnly - Vrijednost datuma iz kojeg će se vratiti dan u tjednu.\n\n**Povratna vrijednost**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
714
1330
|
}
|
|
715
1331
|
},
|
|
716
1332
|
"parametersInfo": {
|
|
@@ -724,7 +1340,7 @@
|
|
|
724
1340
|
"bundle": "core",
|
|
725
1341
|
"link": "https://developers.arcgis.com/arcade/function-reference/date_functions/#year",
|
|
726
1342
|
"description": "Vraća godinu za dani datum.",
|
|
727
|
-
"examples": "\n#####
|
|
1343
|
+
"examples": "\n##### Primjeri\n\nDohvaća godinu za trenutni datum\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",
|
|
728
1344
|
"completion": {
|
|
729
1345
|
"label": "Year",
|
|
730
1346
|
"detail": "Year(dateValue) -> Number",
|
|
@@ -734,7 +1350,7 @@
|
|
|
734
1350
|
"kind": 3,
|
|
735
1351
|
"documentation": {
|
|
736
1352
|
"kind": "markdown",
|
|
737
|
-
"value": "Vraća godinu za dani datum.\n\n**Parametar**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) - Vrijednost datuma za dobivanje godine.\n\n**Povratna vrijednost**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
1353
|
+
"value": "Vraća godinu za dani datum.\n\n**Parametar**\n\n- **dateValue**: [Date](https://developers.arcgis.com/arcade/guide/types/#date) \\| DateOnly - Vrijednost datuma za dobivanje godine.\n\n**Povratna vrijednost**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
738
1354
|
}
|
|
739
1355
|
},
|
|
740
1356
|
"parametersInfo": {
|
|
@@ -4112,6 +4728,31 @@
|
|
|
4112
4728
|
"max": 4
|
|
4113
4729
|
}
|
|
4114
4730
|
},
|
|
4731
|
+
{
|
|
4732
|
+
"type": "function",
|
|
4733
|
+
"name": "featuresetbyrelationshipclass",
|
|
4734
|
+
"bundle": "data-access",
|
|
4735
|
+
"sinceVersion": "1.24",
|
|
4736
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/featureset_functions/#featuresetbyrelationshipclass",
|
|
4737
|
+
"description": "Returns the related records for a given feature as a FeatureSet based on the class name of the relationship.",
|
|
4738
|
+
"examples": "\n##### Primjer\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",
|
|
4739
|
+
"completion": {
|
|
4740
|
+
"label": "FeatureSetByRelationshipClass",
|
|
4741
|
+
"detail": "FeatureSetByRelationshipClass(inputFeature, relationshipClass, fieldNames?, includeGeometry?) -> FeatureSet",
|
|
4742
|
+
"insertText": "FeatureSetByRelationshipClass(${1:inputFeature_}, ${2:relationshipClass_})$0",
|
|
4743
|
+
"insertTextMode": 2,
|
|
4744
|
+
"insertTextFormat": 2,
|
|
4745
|
+
"kind": 3,
|
|
4746
|
+
"documentation": {
|
|
4747
|
+
"kind": "markdown",
|
|
4748
|
+
"value": "**[Od verzije 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**Povratna vrijednost**: [FeatureSet](https://developers.arcgis.com/arcade/guide/types/#featureset)"
|
|
4749
|
+
}
|
|
4750
|
+
},
|
|
4751
|
+
"parametersInfo": {
|
|
4752
|
+
"min": 2,
|
|
4753
|
+
"max": 4
|
|
4754
|
+
}
|
|
4755
|
+
},
|
|
4115
4756
|
{
|
|
4116
4757
|
"type": "function",
|
|
4117
4758
|
"name": "featuresetbyrelationshipname",
|
|
@@ -5242,6 +5883,31 @@
|
|
|
5242
5883
|
"max": 2
|
|
5243
5884
|
}
|
|
5244
5885
|
},
|
|
5886
|
+
{
|
|
5887
|
+
"type": "function",
|
|
5888
|
+
"name": "equals",
|
|
5889
|
+
"bundle": "core",
|
|
5890
|
+
"sinceVersion": "1.24",
|
|
5891
|
+
"link": "https://developers.arcgis.com/arcade/function-reference/logical_functions/#equals",
|
|
5892
|
+
"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.",
|
|
5893
|
+
"examples": "\n##### Primjer\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",
|
|
5894
|
+
"completion": {
|
|
5895
|
+
"label": "Equals",
|
|
5896
|
+
"detail": "Equals(value1, value2) -> Boolean",
|
|
5897
|
+
"insertText": "Equals(${1:value1_}, ${2:value2_})$0",
|
|
5898
|
+
"insertTextMode": 2,
|
|
5899
|
+
"insertTextFormat": 2,
|
|
5900
|
+
"kind": 3,
|
|
5901
|
+
"documentation": {
|
|
5902
|
+
"kind": "markdown",
|
|
5903
|
+
"value": "**[Od verzije 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**Povratna vrijednost**: [Boolean](https://developers.arcgis.com/arcade/guide/types/#boolean)"
|
|
5904
|
+
}
|
|
5905
|
+
},
|
|
5906
|
+
"parametersInfo": {
|
|
5907
|
+
"min": 2,
|
|
5908
|
+
"max": 2
|
|
5909
|
+
}
|
|
5910
|
+
},
|
|
5245
5911
|
{
|
|
5246
5912
|
"type": "function",
|
|
5247
5913
|
"name": "iif",
|
|
@@ -5677,7 +6343,7 @@
|
|
|
5677
6343
|
"kind": 3,
|
|
5678
6344
|
"documentation": {
|
|
5679
6345
|
"kind": "markdown",
|
|
5680
|
-
"value": "**[Od verzije 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nGenerira raspršenu vrijednost koda za danu varijablu.\n\n**Parametar**\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) - Varijabla koju treba raspršiti.\n\n**Povratna vrijednost**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
6346
|
+
"value": "**[Od verzije 1.12](https://developers.arcgis.com/arcade/guide/version-matrix)**\n\nGenerira raspršenu vrijednost koda za danu varijablu.\n\n**Parametar**\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 - Varijabla koju treba raspršiti.\n\n**Povratna vrijednost**: [Number](https://developers.arcgis.com/arcade/guide/types/#number)"
|
|
5681
6347
|
}
|
|
5682
6348
|
},
|
|
5683
6349
|
"parametersInfo": {
|
|
@@ -6531,7 +7197,7 @@
|
|
|
6531
7197
|
"bundle": "core",
|
|
6532
7198
|
"link": "https://developers.arcgis.com/arcade/function-reference/text_functions/#text",
|
|
6533
7199
|
"description": "Pretvara svoj argument u tekstualnu vrijednost i opcionalno ga oblikuje. Vraća vrijednost \\\"nula\\\" ako je neuspješno.",
|
|
6534
|
-
"examples": "\n##### Primjeri\n\nIspunite broj s lijeve strane decimale\n\n```arcade\nText(123, '0000') // '0123'\n```\n\nOgraničite broj s lijeve strane decimale\n\n```arcade\nText(123, '00') // '23'\n```\n\nGrupirajte broj prema tisućama\n\n```arcade\nText(1234, '#,###') // '1,234'\n```\n\nZaokružite broj na dva decimalna mjesta\n\n```arcade\nText(12345678.123, '#,###.00') // '12,345,678.12'\n```\n\nFormatirajte broj kao valutu\n\n```arcade\nText(1234.55, '$#,###.00') // '$1,234.55'\n```\n\nZaokružite broj na dva decimalna mjesta\n\n```arcade\nText(1.236, '#.00') // '1.24'\n```\n\nZadržite značajne znamenke i grupirajte prema tisućama\n\n```arcade\nText(1234.5678, '#,##0.00#') // '1,234.568'\n```\n\nFormatirajte broj i formatirajte pozitivno/negativno - ako postoji negativni podobrazac, služi samo za određivanje negativnog prefiksa i sufiksa\n\n```arcade\nText(-2, 'Floor #;Basement #') // 'Basement 2'\n```\n\n\n\n```arcade\nText(2, 'Floor #;Basement #') // 'Floor 2'\n```\n\nPomnožite sa 100 i formatirajte kao postotak\n\n```arcade\nText(0.3, '#%') // '30%'\n```\n\nFormat datuma i vremena u ovom trenutku. npr. 'utorak, 25. listopada 2016. u 08:43:11'\n\n```arcade\nText(Now(), 'dddd, MMMM D, Y @ h:m:s')\n```\n\nDatum pohranjen u polju `datetime` već predstavlja lokalno vrijeme, ali Arcade pretpostavlja da je UTC Mijenja lokalno vrijeme u UTC kako bi se izbjegla dvostruka primjena pomaka vremenske zone.\n\n```arcade\nText(
|
|
7200
|
+
"examples": "\n##### Primjeri\n\nIspunite broj s lijeve strane decimale\n\n```arcade\nText(123, '0000') // '0123'\n```\n\nOgraničite broj s lijeve strane decimale\n\n```arcade\nText(123, '00') // '23'\n```\n\nGrupirajte broj prema tisućama\n\n```arcade\nText(1234, '#,###') // '1,234'\n```\n\nZaokružite broj na dva decimalna mjesta\n\n```arcade\nText(12345678.123, '#,###.00') // '12,345,678.12'\n```\n\nFormatirajte broj kao valutu\n\n```arcade\nText(1234.55, '$#,###.00') // '$1,234.55'\n```\n\nZaokružite broj na dva decimalna mjesta\n\n```arcade\nText(1.236, '#.00') // '1.24'\n```\n\nZadržite značajne znamenke i grupirajte prema tisućama\n\n```arcade\nText(1234.5678, '#,##0.00#') // '1,234.568'\n```\n\nFormatirajte broj i formatirajte pozitivno/negativno - ako postoji negativni podobrazac, služi samo za određivanje negativnog prefiksa i sufiksa\n\n```arcade\nText(-2, 'Floor #;Basement #') // 'Basement 2'\n```\n\n\n\n```arcade\nText(2, 'Floor #;Basement #') // 'Floor 2'\n```\n\nPomnožite sa 100 i formatirajte kao postotak\n\n```arcade\nText(0.3, '#%') // '30%'\n```\n\nFormat datuma i vremena u ovom trenutku. npr. 'utorak, 25. listopada 2016. u 08:43:11'\n\n```arcade\nText(Now(), 'dddd, MMMM D, Y @ h:m:s')\n```\n\nDatum pohranjen u polju `datetime` već predstavlja lokalno vrijeme, ali Arcade pretpostavlja da je UTC Mijenja lokalno vrijeme u UTC kako bi se izbjegla dvostruka primjena pomaka vremenske zone.\n\n```arcade\nText(startDate, 'ddd, MMM D, Y h:mm:ss A ZZZZ')\n// returns Thu, Sep 14, 2023 10:04:49 AM PDT\n```\n\n",
|
|
6535
7201
|
"completion": {
|
|
6536
7202
|
"label": "Text",
|
|
6537
7203
|
"detail": "Text(value, format?) -> Text",
|